Delays execution for a specific duration of time.
DWORD WD_Sleep(
HANDLE hWD,
WD_SLEEP *pSleep);
| Name | Type | Input/Output |
|---|---|---|
| hWD | HANDLE | Input |
| pSleep | WD_SLEEP* | |
| • dwMicroSeconds | DWORD | Input |
| • dwOptions | DWORD | Input |
| Name | Description |
|---|---|
| hWD | Handle to WinDriver's kernel-mode driver as
received from WD_Open() |
| pSleep | Pointer to a sleep information structure |
| • dwMicroSeconds | Sleep time in microseconds — 1/1,000,000 of a second |
| • dwOptions |
A bit-mask, which can be set to either of the following values:
|
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate
error code otherwise
Example usage: to access slow response hardware.
WD_Sleep slp; BZERO(slp); slp.dwMicroSeconds = 200; WD_Sleep(hWD, &slp);