|
Previous Top Next |
Prototype: | (Long pHwnd),IT_DWORD |
pHwnd | Handle to a window. |
Returns | Returns the Process ID (PID) for the process that owns the window. |
This method returns the process ID of a window. It can be useful to identify what process a window belongs to in order to get process information.
Example:
ITW ITWindowsClass
PID IT_DWORD
Code
PID = ITW.GetPIDFromWindowHandle(0{Prop:Handle})
Message('Process ID of this window is: ' & PID,'GetPIDFromWindowHandle',ICON:Exclamation)
See also: