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

Windows Class: GetExeFromWindowHandle

Previous  Top  Next  


Prototype: (Long pHwnd),String

 

pHwndHandle to a window.

 

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

EnumTopWin

EnumModuleWin

EnumChildWin

EnumChildWindowsProc

EnumTopWindowsProc

GetPIDFromWindowHandle

 

 

 



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