mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 21:26:48 +00:00
Added SetTimer, KillTimer and TimerProc bindings.
This commit is contained in:
parent
c47eacee05
commit
eaac78008b
|
@ -61,6 +61,10 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
using HRESULT = System.IntPtr;
|
||||
|
||||
using UINT_PTR = System.UIntPtr;
|
||||
|
||||
using TIMERPROC = Functions.TimerProc;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
@ -1385,6 +1389,19 @@ namespace OpenTK.Platform.Windows
|
|||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Timer Functions
|
||||
|
||||
[DllImport("user32.dll", SetLastError=true)]
|
||||
public static extern UINT_PTR SetTimer(HWND hWnd, UINT_PTR nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc);
|
||||
|
||||
[DllImport("user32.dll", SetLastError=true)]
|
||||
public static extern BOOL KillTimer(HWND hWnd, UINT_PTR uIDEvent);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
|
||||
public delegate void TimerProc(HWND hwnd, WindowMessage uMsg, UINT_PTR idEvent, DWORD dwTime);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region --- Constants ---
|
||||
|
|
Loading…
Reference in a new issue