Kernel32SuspendThread32(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 = "Wow64SuspendThread",
SetLastError = true)]
public static int SuspendThread32(
SafeAccessTokenHandle hThread
)
<DllImportAttribute("Kernel32.dll", EntryPoint := "Wow64SuspendThread",
SetLastError := true>]
Public Shared Function SuspendThread32 (
hThread As SafeAccessTokenHandle
) As Integer
Dim hThread As SafeAccessTokenHandle
Dim returnValue As Integer
returnValue = Kernel32.SuspendThread32(hThread)
public:
[DllImportAttribute(L"Kernel32.dll", EntryPoint = L"Wow64SuspendThread",
SetLastError = true)]
static int SuspendThread32(
SafeAccessTokenHandle^ hThread
)
[<DllImportAttribute("Kernel32.dll", EntryPoint = "Wow64SuspendThread",
SetLastError = true)>]
static member SuspendThread32 :
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.