 |
CreateWaitableTimer ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Creates or opens a waitable timer object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HANDLE WINAPI CreateWaitableTimer(
LPSECURITY_ATTRIBUTES lpTimerAttributes,
BOOL bManualReset,
LPCTSTR lpTimerName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CreateWaitableTimer IN kernel32;
INTEGER lpTimerAttrib,;
INTEGER bManualReset,;
STRING lpTimerName
|
 |
 |
 |
| Parameters: |
 |
lpTimerAttributes
[in] A pointer to a SECURITY_ATTRIBUTES structure that specifies a security descriptor for the new timer object and determines whether child processes can inherit the returned handle.
bManualReset
[in] If this parameter is TRUE, the timer is a manual-reset notification timer. Otherwise, the timer is a synchronization timer.
lpTimerName
[in] The name of the timer object. The name is limited to MAX_PATH characters. Name comparison is case sensitive. If lpTimerName is NULL, the timer object is created without a name.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a handle to the timer object. |
 |
 |
| My comment: |
 |
| Use the CloseHandle function to close the handle. The system closes the handle automatically when the process terminates. The timer object is destroyed when its last handle has been closed. |
 |
 |
| Word Index links for the CreateWaitableTimer : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-04-17 13:15:10 | | Modified: | 2006-04-17 13:17:02 | Visited in last 7 days: 14 |