Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Application invisibility (https://forum.exetools.com/showthread.php?t=3602)

UncleV 03-07-2004 01:02

Application invisibility
 
Hi! How to make main 32-bit application Window [for example: ;-) Handle: 000F024A, Class: Afx:400000:8:10011:0:ba4029d, Caption: IcqSnif] initially invisible?

KiinG 03-08-2004 06:15

How do you create this window ? If you create it with CreateWindow() do not use the WS_VISIBLE flag.
If you are trying to hide the window of another application use ShowWindow:

BOOL ShowWindow(
HWND hWnd, // handle to window
int nCmdShow // show state
);

UncleV 03-08-2004 15:20

Reverse E.
 
This is already compiled program. I have no source code. In other words - how to find Main aplication window structure in executable (except step-by-step debugging)?

Satyric0n 03-08-2004 17:48

Use FindWindow:
Code:

HWND FindWindow(
    LPCTSTR lpClassName,
    LPCTSTR lpWindowName
);

Or FindWindowEx:
Code:

HWND FindWindowEx(
    HWND hwndParent,
    HWND hwndChildAfter,
    LPCTSTR lpszClass,
    LPCTSTR lpszWindow
);

Or even EnumWindows:
Code:

BOOL EnumWindows(
    WNDENUMPROC lpEnumFunc,
    LPARAM lParam
);

Regards

least 03-08-2004 17:51

Make a little proggie using function EnumWindows:

BOOL EnumWindows(
WNDENUMPROC lpEnumFunc, // pointer to callback function
LPARAM lParam // application-defined value
);

This enumerates all windows on the screen, and your callback gets handle to each, so you can find and do anything you need:)


All times are GMT +8. The time now is 21:46.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX