|
Previous Top Next |
Prototype: | (Long pHwnd),String |
pHwnd | Handle to a window. |
Returns | Returns EXE filename that owns the window passed to the method |
This method returns the name of the process that owns the window handle that is passed to the method. This can be very useful if you know a handle but need to find the executable that it belongs to.
Example:
Mn CString(2049)
ITW ITWindowsClass
Code
Mn = ITW.GetExeFromWindowHandle(0{Prop:Handle})
Message('Owner of this window is: ' & Mn,'GetExeFromWindowHandle',ICON:Exclamation)
See also: