Ole32CoGetCurrentProcess Method
Returns a value that is unique to the current thread.
CoGetCurrentProcess can be used to avoid thread ID reuse problems.
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("Ole32.dll", ExactSpelling = true)]
public static uint CoGetCurrentProcess()
<DllImportAttribute("Ole32.dll", ExactSpelling := true>]
Public Shared Function CoGetCurrentProcess As UInteger
Dim returnValue As UInteger
returnValue = Ole32.CoGetCurrentProcess()
public:
[DllImportAttribute(L"Ole32.dll", ExactSpelling = true)]
static unsigned int CoGetCurrentProcess()
[<DllImportAttribute("Ole32.dll", ExactSpelling = true)>]
static member CoGetCurrentProcess : unit -> uint32
No code example is currently available or this language may not be supported.
Return Value
UInt32
The function returns the unique identifier of the current thread.