![Xcalibur Systems LLC Logo](../icons/logo.png) |
ProcessHelperWaitForSingleObjectEx Method |
Waits until the specified object is in the signaled state, an I/O completion routine or
asynchronous procedure call (APC) is queued to the thread, or the time-out interval elapses.
WaitForSingleObjectEx function Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax[DllImportAttribute("kernel32.dll", SetLastError = true)]
public static long WaitForSingleObjectEx(
IntPtr handle,
uint milliseconds,
bool alertable
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function WaitForSingleObjectEx (
handle As IntPtr,
milliseconds As UInteger,
alertable As Boolean
) As Long
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static long long WaitForSingleObjectEx(
IntPtr handle,
unsigned int milliseconds,
bool alertable
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member WaitForSingleObjectEx :
handle : IntPtr *
milliseconds : uint32 *
alertable : bool -> int64
Parameters
- handle IntPtr
- A handle to the object.
- 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, the function will
return only when the object is signaled.
- alertable Boolean
- If this parameter is TRUE and the thread is in the waiting state,
the function returns when the system queues an I/O completion routine or APC, and the
thread runs the routine or function. Otherwise, the function does not return, and the
completion routine or APC function is not executed.
Return Value
Int64 result.
See Also