JCL Help:GetProcessNameFromWnd
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: GetProcessNameFromWnd Function
Search in JCL Help
Search in all projects
Summary
Returns the name of the process which owns a specific window.
Pascal
function GetProcessNameFromWnd(Wnd: THandle): string;
Parameters
Parameters | Description |
Wnd: THandle | Handle of the window for which to return the process name. This can be any type of window, including child windows such as buttons or edit boxes. |
Return Value
If the function succeeds it returns the name of the process that owns the windows, if it fails the result is an empty string.
Description
GetProcessNameFrmWnd returns the name of the process which owns the window as specified by the window's handle. Note that in order to find the process identifier of the process that owns the specified window, you can use the GetWindowThreadProcessId API function.
See Also
GetPidFromProcessName GetProcessNameFromPid
About
Unit
Donator
Petr Vones
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page