Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperWaitForSingleObject Method

Waits until the specified object is in the signaled state or the time-out interval elapses.

WaitForSingleObject 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 WaitForSingleObject(
	IntPtr handle,
	uint milliseconds
)

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.

Return Value

Int64
result.
See Also