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
CreateWaitableTimer
..msdn    Add comment     W32 Constants      Translate this page
Creates or opens a waitable timer object.
Code examples:
How to suspend or hibernate your system
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-04-17 13:15:10
Modified: 2006-04-17 13:17:02
Visited in last 7 days: 11
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.81.79.128)
1 sec.Function: 'FindNextVolume'
3 sec.
Function group: 'Mouse Input'
7 sec.Function: 'GdipBitmapSetResolution'
8 sec.Function: 'StretchDIBits'
11 sec.Function: 'PathFindExtension'
13 sec.Function: 'GetBoundsRect'
16 sec.Function: 'RegEnumValue'
19 sec.Function: 'GetSystemTimeAdjustment'
22 sec.Function: 'GetFileNameFromBrowse'
25 sec.Function: 'GetShellWindow'
Google
Advertise here!