 |
GetWindowThreadProcessId ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GetWindowThreadProcessId(
HWND hWnd, // handle to window
LPDWORD lpdwProcessId // process identifier
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetWindowThreadProcessId IN user32;
INTEGER hWnd,;
INTEGER @ lpdwProcId
|
 |
 |
 |
| Parameters: |
 |
hWnd
[in] Handle to the window.
lpdwProcessId
[out] Pointer to a variable that receives the process identifier. |
 |
 |
| Return value: |
 |
| The return value is the identifier of the thread that created the window. |
 |
 |
| My comment: |
 |
| It would be interesting to compare thread Ids obtained from this function for the GetActiveWindow (main VFP window) and the GetFocus, applied to an active VFP form. Will it be just one thread or two different ones? |
 |
 |
| Word Index links for the GetWindowThreadProcessId : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-01-08 07:15:15 | | Modified: | 2002-01-08 07:20:03 | Visited in last 7 days: 20 |