Kernel32GetThreadDescription Method

Retrieves the description that was assigned to a thread by calling SetThreadDescription(IntPtr, String).

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
public static HResult GetThreadDescription(
	IntPtr hThread,
	out string refThreadDescription
)

Parameters

hThread  IntPtr
A handle to the thread for which to retrieve the description. The handle must have QueryLimitedInformation access.
refThreadDescription  String
A Unicode string that contains the description of the thread.

Return Value

HResult
If the function succeeds, the return value is the HResult that denotes a successful operation.

If the function fails, the return value is an HResult that denotes the error.

Remarks

See Also