|
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.WindowsAssembly: 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
)
<DllImportAttribute("user32.dll">]
Public Shared Function GetWindowThreadProcessId (
windowHandle As IntPtr,
<OutAttribute> ByRef processId As Integer
) As Integer
public:
[DllImportAttribute(L"user32.dll")]
static int GetWindowThreadProcessId(
IntPtr windowHandle,
[OutAttribute] int% processId
)
[<DllImportAttribute("user32.dll")>]
static member GetWindowThreadProcessId :
windowHandle : IntPtr *
processId : int byref -> int
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
Int32See Also