'NtWaitForSingleObject function
Applies to: desktop apps only
Deprecated. Waits until the specified object attains a state of
signaled. NtWaitForSingleObject is superseded by WaitForSingleObject.
Syntax
NTSTATUS WINAPI NtWaitForSingleObject( __in HANDLE Handle, __in BOOLEAN Alertable, __in PLARGE_INTEGER Timeout );
Parameters
- Handle [in]
-
The handle to the wait object.
- Alertable [in]
-
Specifies whether an alert can be delivered when the object is waiting.
- Timeout [in]
-
A pointer to an absolute or relative time over which the wait is to occur. Can be null. If a timeout is specified, and the object has not attained a state of
signaledwhen the timeout expires, then the wait is automatically satisfied. If an explicit timeout value of zero is specified, then no wait occurs if the wait cannot be satisfied immediately.
Return value
The wait completion status. The various NTSTATUS values are defined in NTSTATUS.H, which is distributed with the Windows DDK.
| Return code | Description |
|---|---|
|
The specified object satisfied the wait. |
|
A timeout occurred. |
|
The wait was aborted to deliver an alert to the current thread. |
|
The wait was aborted to deliver a user Asynchronous Procedure Call (APC) to the current thread. |
Remarks
Because there is no import library for this function, you must use GetProcAddress.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
DLL |
|
Build date: 4/6/2012