Browse Source

Add TIMECAPS stuff
Summary:

Test Plan:

Elusive Porpoise 2 years ago
parent
commit
4a54676f31
1 changed files with 7 additions and 0 deletions
  1. 7 0
      core/sys/windows/winmm.odin

+ 7 - 0
core/sys/windows/winmm.odin

@@ -5,7 +5,14 @@ foreign import winmm "system:Winmm.lib"
 
 
 @(default_calling_convention="stdcall")
 @(default_calling_convention="stdcall")
 foreign winmm {
 foreign winmm {
+	timeGetDevCaps  :: proc(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT ---
 	timeBeginPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
 	timeBeginPeriod :: proc(uPeriod: UINT) -> MMRESULT ---
 	timeEndPeriod   :: proc(uPeriod: UINT) -> MMRESULT ---
 	timeEndPeriod   :: proc(uPeriod: UINT) -> MMRESULT ---
 	timeGetTime     :: proc() -> DWORD ---
 	timeGetTime     :: proc() -> DWORD ---
 }
 }
+
+LPTIMECAPS :: ^TIMECAPS
+TIMECAPS :: struct {
+	wPeriodMin: UINT,
+	wPeriodMax: UINT,
+}