Table of Contents

Method GetWindowThreadProcessId

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

GetWindowThreadProcessId(IntPtr)

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

public static uint GetWindowThreadProcessId(IntPtr wnd)

Parameters

wnd IntPtr

A handle to the window.

Returns

uint

If the function succeeds, the return value is the identifier of the thread that created the window. If the window handle is invalid, the return value is zero.