Kernel32SuspendThread64(SafeAccessTokenHandle) 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", EntryPoint = "SuspendThread", SetLastError = true)]
public static int SuspendThread64(
SafeAccessTokenHandle hThread
)
<DllImportAttribute("Kernel32.dll", EntryPoint := "SuspendThread", SetLastError := true>]
Public Shared Function SuspendThread64 (
hThread As SafeAccessTokenHandle
) As Integer
Dim hThread As SafeAccessTokenHandle
Dim returnValue As Integer
returnValue = Kernel32.SuspendThread64(hThread)
public:
[DllImportAttribute(L"Kernel32.dll", EntryPoint = L"SuspendThread", SetLastError = true)]
static int SuspendThread64(
SafeAccessTokenHandle^ hThread
)
[<DllImportAttribute("Kernel32.dll", EntryPoint = "SuspendThread", SetLastError = true)>]
static member SuspendThread64 :
hThread : SafeAccessTokenHandle -> int
No code example is currently available or this language may not be supported.
- hThread SafeAccessTokenHandle
-
A handle to the thread that is to be suspended.
The handle must have the SuspendResume access right
Int32
If the function succeeds, the return value is the thread's previous suspend count; otherwise, it is
-1.
To get extended error information, call
GetLastWin32Error.