 |
OpenWaitableTimer ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Opens an existing named waitable timer object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HANDLE WINAPI OpenWaitableTimer(
DWORD dwDesiredAccess,
BOOL bInheritHandle,
LPCTSTR lpTimerName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER OpenWaitableTimer IN kernel32;
LONG dwDesiredAccess,;
INTEGER bInheritHandle,;
STRING lpTimerName
|
 |
 |
 |
| Parameters: |
 |
dwDesiredAccess
[in] Access to the timer object. The function fails if the security descriptor of the specified object does not permit the requested access for the calling process.
bInheritHandle
[in] If this value is TRUE, processes created by this process will inherit the handle.
lpTimerName
[in] Pointer to a null-terminated string specifying the name of the timer object. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a handle to the timer object. |
 |
 |
| My comment: |
 |
The OpenWaitableTimer function enables multiple processes to open handles to the same timer object. The function succeeds only if some process has already created the timer using the CreateWaitableTimer function.
The returned handle can be duplicated by using the DuplicateHandle function. 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 OpenWaitableTimer : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-04-17 13:17:40 | | Modified: | 2006-04-17 13:19:46 | Visited in last 7 days: 14 |