Consultor Eletrônico



Kbase 17937: How to Call WIN32 API Function: Sleep
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/15/1998
How to Call WIN32 API Function: Sleep

DISCLAIMER:
===========
The code example in this knowledgebase is for informational purposes
only. If you have specific questions about which API calls would be
best suited to your design goals, please consult your Microsoft
documentation.

INTRODUCTION:
=============
The following sample code shows how to call the Win32 API function
called Sleep. This function suspends execution of the current
thread (i.e. Progress) for a specified interval.

This code has been tested on Windows NT 4.0 Workstation only.


PROCEDURE Sleep EXTERNAL "KERNEL32.DLL":
DEFINE INPUT PARAMETER intMilliseconds AS LONG.
END PROCEDURE.

RUN Sleep (1000). /* Pause for one (1) second */