Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2004, 01:02
UncleV
 
Posts: n/a
Question 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?
Reply With Quote
  #2  
Old 03-08-2004, 06:15
KiinG
 
Posts: n/a
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
);
Reply With Quote
  #3  
Old 03-08-2004, 15:20
UncleV
 
Posts: n/a
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)?
Reply With Quote
  #4  
Old 03-08-2004, 17:48
Satyric0n
 
Posts: n/a
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

Last edited by Satyric0n; 03-08-2004 at 17:51.
Reply With Quote
  #5  
Old 03-08-2004, 17:51
least
 
Posts: n/a
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loader for x64 application ? Mahmoudnia General Discussion 4 02-02-2017 14:17
Can anyone unpack this application arslanbhatti General Discussion 4 03-21-2009 06:15


All times are GMT +8. The time now is 04:01.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )