Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.28 KB

Sleep.md

File metadata and controls

50 lines (34 loc) · 1.28 KB

Home

Function name : Sleep

Group: Process and Thread - Library: kernel32


The Sleep function suspends the execution of the current thread for the specified interval


Code examples:

How to make the caption of a VFP application flashing in the Windows task bar
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
How to play MIDI notes
GDI+ fun: roach-infested desktop
How to control Adobe Reader 9.0 (SDI mode) from VFP application

Declaration:

VOID Sleep(
	DWORD dwMilliseconds   // sleep time
);  

FoxPro declaration:

DECLARE Sleep IN kernel32 INTEGER dwMilliseconds  

Parameters:

dwMilliseconds [in] Specifies the time, in milliseconds, for which to suspend execution


Return value:

This function does not return a value


Comments:

A value INFINITE = DWORD(0xffffffff) causes the infinite delay for the thread (the process for the VFP).