www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Windows Class: GetPIDFromWindowHandle

Previous  Top  Next  


Prototype: (Long pHwnd),IT_DWORD

 

pHwndHandle to a window.

 

ReturnsReturns 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:

EnumTopWin

EnumModuleWin

EnumChildWin

EnumChildWindowsProc

EnumTopWindowsProc

GetExeFromWindowHandle

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getpidfromwindowhandle_window.htm