|
|
|
|
WinAPI: hWnd des Hauptfensters einer Exe |
Medusa
Senior Member
Dabei seit: 10.09.2001
Beiträge: 356
Herkunft: ...von da, wo mein Haus wohnt...
|
|
WinAPI: hWnd des Hauptfensters einer Exe |
|
Hi ihr...
Weiß jemand, wie ich das Hauptfenster (bzw. aktive Fenster) eines Processes bekomme?
Also z.b. abc.exe
ich will jetzt von der abc.exe das Fenster-Handel des deren aktiven Fensters.
Geht das überhaupt?
Thx
__________________ Grüßle, Medi
|
|
29.01.2003 17:45 |
|
|
CDW
eine Simulation
Dabei seit: 12.10.2002
Beiträge: 1.329
Herkunft: CreateRemoteThread
|
|
The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.
HWND FindWindow(
LPCTSTR lpClassName, // pointer to class name
LPCTSTR lpWindowName // pointer to window name
);
|
|
29.01.2003 17:53 |
|
|
CDW
eine Simulation
Dabei seit: 12.10.2002
Beiträge: 1.329
Herkunft: CreateRemoteThread
|
|
naja, wenn du es schon gelöst hast... ansonsten ist mir noch das hier eingefallen:
Zitat: |
The GetActiveWindow function retrieves the window handle to the active window associated with the calling thread's message queue.
HWND GetActiveWindow(VOID)
|
|
|
30.01.2003 19:54 |
|
|
|
|
|
|