Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelperGetWindowThreadProcessId Method

Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.

GetWindowThreadProcessId function


Namespace: Xcalibur.NativeMethods.V2.Windows
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll")]
public static int GetWindowThreadProcessId(
	IntPtr windowHandle,
	out int processId
)

Parameters

windowHandle  IntPtr
A handle to the window.
processId  Int32
A pointer to a variable that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the variable; otherwise, it does not.

Return Value

Int32
See Also