Kernel32GetThreadDescription Method
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Unicode, ExactSpelling := true>]
Public Shared Function GetThreadDescription (
hThread As IntPtr,
<OutAttribute> ByRef refThreadDescription As String
) As HResult
Dim hThread As IntPtr
Dim refThreadDescription As String
Dim returnValue As HResult
returnValue = Kernel32.GetThreadDescription(hThread,
refThreadDescription)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Unicode, ExactSpelling = true)]
static HResult GetThreadDescription(
IntPtr hThread,
[OutAttribute] String^% refThreadDescription
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)>]
static member GetThreadDescription :
hThread : IntPtr *
refThreadDescription : string byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
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.