|
Last change
on this file since 4302 was 756, checked in by phaller, 26 years ago |
|
Add: added timeBeginPeriod and timeEndPeriod
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /* $Id: time.h,v 1.1 1999-08-31 15:04:11 phaller Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | *
|
|---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 | #ifndef __WINTIMER_H__
|
|---|
| 9 | #define __WINTIMER_H__
|
|---|
| 10 |
|
|---|
| 11 | #define TIMERR_BASE 96
|
|---|
| 12 |
|
|---|
| 13 | #define TIMERR_NOERROR (0)
|
|---|
| 14 | #define TIMERR_NOCANDO (TIMERR_BASE+1)
|
|---|
| 15 | #define TIMERR_STRUCT (TIMERR_BASE+33)
|
|---|
| 16 |
|
|---|
| 17 | typedef void (CALLBACK TIMECALLBACK)(UINT uTimerID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2);
|
|---|
| 18 | typedef TIMECALLBACK *LPTIMECALLBACK;
|
|---|
| 19 |
|
|---|
| 20 | #define TIME_ONESHOT 0x0000
|
|---|
| 21 | #define TIME_PERIODIC 0x0001
|
|---|
| 22 | #define TIME_CALLBACK_FUNCTION 0x0000
|
|---|
| 23 | #define TIME_CALLBACK_EVENT_SET 0x0010
|
|---|
| 24 | #define TIME_CALLBACK_EVENT_PULSE 0x0020
|
|---|
| 25 |
|
|---|
| 26 | #if 0
|
|---|
| 27 | typedef struct
|
|---|
| 28 | {
|
|---|
| 29 | UINT wPeriodMin;
|
|---|
| 30 | UINT wPeriodMax;
|
|---|
| 31 | } TIMECAPS, *LPTIMECAPS;
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | typedef struct mmtime_tag
|
|---|
| 35 | {
|
|---|
| 36 | UINT wType;
|
|---|
| 37 |
|
|---|
| 38 | union
|
|---|
| 39 | {
|
|---|
| 40 | DWORD ms;
|
|---|
| 41 | DWORD sample;
|
|---|
| 42 | DWORD cb;
|
|---|
| 43 | DWORD ticks;
|
|---|
| 44 |
|
|---|
| 45 | struct
|
|---|
| 46 | {
|
|---|
| 47 | BYTE hour;
|
|---|
| 48 | BYTE min;
|
|---|
| 49 | BYTE sec;
|
|---|
| 50 | BYTE frame;
|
|---|
| 51 | BYTE fps;
|
|---|
| 52 | BYTE dummy;
|
|---|
| 53 | BYTE pad[2];
|
|---|
| 54 | } smpte;
|
|---|
| 55 |
|
|---|
| 56 | struct
|
|---|
| 57 | {
|
|---|
| 58 | DWORD songptrpos;
|
|---|
| 59 | } midi;
|
|---|
| 60 | } u;
|
|---|
| 61 | } MMTIME, *PMMTIME, *LPMMTIME;
|
|---|
| 62 | #endif
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.