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: 14
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (50.17.109.248)
1.4 hrs.Example: 'Reading parameters of streams in AVI file'
2.67 hrs.Example: 'Obtaining I/O counts for the current process'
 Example: 'Displaying the drive type value'
4.15 hrs.Example: 'Simple Window Viewer'
 Function: 'GdipCreateMatrix'
Function group: 'GDI+ Matrix'
4.96 hrs.Function: 'SetFocus'
5.44 hrs.Example: 'How to run FoxPro application under different user name (impersonating user)'
 Example: 'Retrieving information about all users currently logged on to the workstation (WinNT only)'
 Function: 'DeleteEnhMetaFile'
Function group: 'Metafile'
7.63 hrs.Function: 'PathIsRelative'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
Google
Advertise here!