Kernel32WaitForSingleObject 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", SetLastError = true)]
public static WaitObjectResult WaitForSingleObject(
IntPtr handle,
uint milliseconds
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function WaitForSingleObject (
handle As IntPtr,
milliseconds As UInteger
) As WaitObjectResult
Dim handle As IntPtr
Dim milliseconds As UInteger
Dim returnValue As WaitObjectResult
returnValue = Kernel32.WaitForSingleObject(handle,
milliseconds)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static WaitObjectResult WaitForSingleObject(
IntPtr handle,
unsigned int milliseconds
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member WaitForSingleObject :
handle : IntPtr *
milliseconds : uint32 -> WaitObjectResult
No code example is currently available or this language may not be supported.
- handle IntPtr
-
A handle to the object.
If this handle is closed while the wait is still pending, the function's behavior is undefined.
The handle must have the SYNCHRONIZE access right.
- milliseconds UInt32
-
The time-out interval, in milliseconds.
If a nonzero value is specified, the function waits until the object is signaled or the interval elapses.
If dwMilliseconds is zero, the function does not enter a wait state if the object is not signaled;
it always returns immediately.
If milliseconds is INFINITE (0xFFFFFFFF),
the function will return only when the object is signaled.
WaitObjectResult
If the function succeeds, the return value indicates the event that caused the function to return.