WindowsOS.c
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- ////////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "globals.h"
- #include "WindowsOS.h"
- wp_GetMonitorInfo pfnGetMonitorInfo;
- wp_MonitorFromWindow pfnMonitorFromWindow;
- wp_TrackMouseEvent pfnTrackMouseEvent;
- ////////////////////////////////////////////////////////////////////////////////
- //
- //
- //
- void CP_InitWindowsRoutines()
- {
- HMODULE hmUser32 = GetModuleHandle("USER32");
- pfnGetMonitorInfo = (wp_GetMonitorInfo)GetProcAddress(hmUser32, "GetMonitorInfoA");
- pfnMonitorFromWindow = (wp_MonitorFromWindow)GetProcAddress(hmUser32, "MonitorFromWindow");
- pfnTrackMouseEvent = (wp_TrackMouseEvent)GetProcAddress(hmUser32, "TrackMouseEvent");
- }
- //
- //
- //