Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2001 - 2007 Pekka Riikonen
+ Copyright (C) 2001 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
GNU General Public License for more details.
*/
-/* $Id$ */
-#include "silc.h"
+#include "silcruntime.h"
const SilcScheduleOps schedule_ops;
static LRESULT CALLBACK
silc_schedule_wnd_proc(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
{
- SilcSchedule schedule = (SilcSchedule)GetWindowLong(hwnd, GWL_USERDATA);
+ SilcSchedule schedule = (SilcSchedule)GetWindowLongPtr(hwnd, GWL_USERDATA);
SilcWin32Scheduler internal;
SilcUInt32 fd;
SilcTaskFd task;
}
/* Set the scheduler as the window's context */
- SetWindowLong(internal->window, GWL_USERDATA, (void *)schedule);
+ SetWindowLongPtr(internal->window, GWL_USERDATA, (void *)schedule);
SetWindowPos(internal->window, HWND_BOTTOM, 0, 0, 0, 0, SWP_FRAMECHANGED);
internal->wakeup_sema = CreateSemaphore(NULL, 0, 100, NULL);