I try to use the Windows API Function SetWaitableTimer() together with WaitForMultipleObjects() so the program waits either for a timeout or for some other action (a change in a certain folder).
Description of SetWaitableTimer:
BOOL WINAPI SetWaitableTimer(
__in HANDLE hTimer,
__in const LARGE_INTEGER *pDueTime,
__in LONG lPeriod,
__in_opt PTIMERAPCROUTINE pfnCompletionRoutine,
__in_opt LPVOID lpArgToCompletionRoutine,
__in BOOL fResume
);
The parameter pDueTime should be a FILETIME structure. Does anyone know how to create this FILETIME structure in VFP?
Thanks.
Description of SetWaitableTimer:
BOOL WINAPI SetWaitableTimer(
__in HANDLE hTimer,
__in const LARGE_INTEGER *pDueTime,
__in LONG lPeriod,
__in_opt PTIMERAPCROUTINE pfnCompletionRoutine,
__in_opt LPVOID lpArgToCompletionRoutine,
__in BOOL fResume
);
The parameter pDueTime should be a FILETIME structure. Does anyone know how to create this FILETIME structure in VFP?
Thanks.