ID watku z uchwytu okna(winapi)

0

Witam
mam pytanie jak znajac uchwyt okna moge uzyskac ID lub uchwyt watku?
z gory dzieki za odpowiedz

0

10 sekund szukania:

The GetWindowThreadProcessId function retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window. This function supersedes the GetWindowTask function.

DWORD GetWindowThreadProcessId(

    HWND hWnd,	// handle of window
    LPDWORD lpdwProcessId 	// address of variable for process identifier
   );	

Parameters

hWnd

Identifies the window.

lpdwProcessId

Points to a 32-bit value that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the 32-bit value; otherwise, it does not.

Return Values

The return value is the identifier of the thread that created the window.

1 użytkowników online, w tym zalogowanych: 0, gości: 1