Added SetTimer, KillTimer and TimerProc bindings.

This commit is contained in:
the_fiddler 2009-10-07 13:03:32 +00:00
parent c47eacee05
commit eaac78008b

View file

@ -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 ---