Using Win32 functions in Visual FoxPro Image Gallery
Synchronization
..msdn
CreateEvent
CreateMutex
CreateSemaphore
CreateWaitableTimer
OpenEvent
OpenSemaphore
OpenWaitableTimer
ReleaseMutex
ReleaseSemaphore
ResetEvent
SetEvent
SetWaitableTimer
WaitForSingleObject
Code examples:
How to suspend or hibernate your system
OpenWaitableTimer
..msdn    Add comment     W32 Constants      Translate this page
Opens an existing named waitable timer object.
Code examples:
How to suspend or hibernate your system
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-04-17 13:17:40
Modified: 2006-04-17 13:19:46
Visited in last 7 days: 14
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
15 sec.Function: 'PrinterProperties'
29 sec.Function: 'CreateCompatibleBitmap'
42 sec.Function: 'GetBestInterface'
55 sec.Function: 'ClipCursor'
1.15 min.Function: 'SetConsoleCursorPosition'
1.38 min.Function: 'GetCursorInfo'
1.6 min.Function: 'GetWindowThreadProcessId'
1.83 min.Function: 'DestroyWindow'
2.07 min.Function: 'CryptEncrypt'
2.33 min.Function: 'HeapValidate'
Google
Advertise here!