Click or drag to resize
Xcalibur Systems LLC Logo

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.Processes
Assembly: 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
)

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