![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Explain this code please
now i've found out how to hide and application so that it doesn't appear in the taskbar:
#include <windows.h> #include <stdio.h> #include <winuser.h> #include <windowsx.h> HWND stealth; AllocConsole(); stealth=FindWindowA("ConsoleWindowClass",NULL); ShowWindow(stealth,0); However, i don't completly understand what is going on. I really don't like to copy and past code. So can someone please tell me what is going on line by line. Maybe a link to this, if the explanation is too long. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,207
Rep Power: 5
![]() |
If you look in the win32 help file (which has been provided with most compilers targeting windows over the last few years) you will be able to find information on the functions being called in your code. You can also do a search on the MSDN site.
FindWindowA() would be listed as FindWindow() in the help file (FindWindow() is usually a macro that expands to a call to FindWindowA() internally). |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|