| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | |
| 7 | #ifndef _MMISCAPI2_H_ |
| 8 | #define _MMISCAPI2_H_ |
| 9 | |
| 10 | #include <apiset.h> |
| 11 | #include <apisetcconv.h> |
| 12 | |
| 13 | #include <mmsyscom.h> |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
| 19 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| 20 | |
| 21 | typedef void (CALLBACK TIMECALLBACK)(UINT uTimerID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); |
| 22 | typedef TIMECALLBACK *LPTIMECALLBACK; |
| 23 | |
| 24 | #define TIME_ONESHOT 0x0000 |
| 25 | #define TIME_PERIODIC 0x0001 |
| 26 | |
| 27 | #define TIME_CALLBACK_FUNCTION 0x0000 |
| 28 | #define TIME_CALLBACK_EVENT_SET 0x0010 |
| 29 | #define TIME_CALLBACK_EVENT_PULSE 0x0020 |
| 30 | #define TIME_KILL_SYNCHRONOUS 0x0100 |
| 31 | |
| 32 | WINMMAPI MMRESULT WINAPI timeSetEvent(UINT uDelay, UINT uResolution, LPTIMECALLBACK fptc, DWORD_PTR dwUser, UINT fuEvent); |
| 33 | WINMMAPI MMRESULT WINAPI timeKillEvent(UINT uTimerID); |
| 34 | |
| 35 | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| 36 | |
| 37 | #ifdef __cplusplus |
| 38 | } |
| 39 | #endif |
| 40 | |
| 41 | #endif /* _MMISCAPI2_H_ */ |