On 02.06.2012 14:35, Kevin Cox wrote:

On Jun 2, 2012 6:33 AM, "John Chapman" <[email protected]
<mailto:[email protected]>> wrote:
 >
 > On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
 >>
 >> On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
 >
 > Just add these declarations to the appropriate module:
 >
 > extern(Windows) {
 >
 > alias void function(HWND, uint, uint, uint) TIMERPROC;

Better check this callback definition - it might be extern(System) or extern(C).

 >
 > uint SetTimer(HWND hWnd, uint uIDEvent, uint uElapse, TIMERPROC
lpTimerFunc);
 >
 > BOOL KillTimer(HWND hWnd, uint uIDEvent);
 > }

Better yet, put them into std.windows and submit a pull request :P



--
Dmitry Olshansky

Reply via email to