#ifndef WIN32_H #define WIN32_H #define WIN32_LEAN_AND_MEAN #include #define DIRECTDRAW_VERSION 0x0300 #include #define DIRECTINPUT_VERSION 0x0300 #include #include #define DIRECTSOUND_VERSION 0x0300 #include #include typedef HRESULT(__stdcall DirectDrawCreateProc)(GUID*, LPDIRECTDRAW*, IUnknown*); typedef HRESULT(__stdcall DirectInputCreateAProc)(HINSTANCE, DWORD, LPDIRECTINPUTA*, IUnknown*); typedef HRESULT(__stdcall DirectSoundCreateProc)(GUID*, LPDIRECTSOUND*, IUnknown*); extern DirectDrawCreateProc* gDirectDrawCreateProc; extern DirectInputCreateAProc* gDirectInputCreateAProc; extern DirectSoundCreateProc* gDirectSoundCreateProc; extern HWND gProgramWindow; extern HINSTANCE gInstance; extern LPSTR gCmdLine; extern int gCmdShow; extern bool gProgramIsActive; extern HANDLE _GNW95_mutex; extern HMODULE gDDrawDLL; extern HMODULE gDInputDLL; extern HMODULE gDSoundDLL; ATOM _InitClass(HINSTANCE hInstance); bool _InitInstance(); bool _LoadDirectX(); void _UnloadDirectX(void); void _SignalHandler(int sig); LRESULT CALLBACK _WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); #endif /* WIN32_H */