#pragma once #include "linux/windows/wincompat.h" #include "linux/windows/dsound.h" #include "linux/windows/resources.h" #include "linux/windows/bitmap.h" #include // Resources HRSRC FindResource(void *, const char * filename, const char *); // Bitmap HBITMAP LoadBitmap(HINSTANCE hInstance, const char * filename); LONG GetBitmapBits(HBITMAP hbit, LONG cb, LPVOID lpvBits); // Frame void FrameDrawDiskLEDS(HDC x); void FrameDrawDiskStatus(HDC x); void FrameRefreshStatus(int x, bool); // Keyboard BYTE KeybGetKeycode (); BYTE KeybReadData(); BYTE KeybReadFlag(); // Joystick BYTE JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles); BYTE JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles); void JoyResetPosition(ULONG uExecutedCycles); // Registry BOOL RegLoadString (LPCTSTR section, LPCTSTR key, BOOL peruser, LPTSTR buffer, DWORD chars); BOOL RegLoadValue (LPCTSTR section, LPCTSTR key, BOOL peruser, DWORD *value); BOOL RegLoadValue (LPCTSTR section, LPCTSTR key, BOOL peruser, BOOL *value); void RegSaveString (LPCTSTR section, LPCTSTR key, BOOL peruser, LPCTSTR buffer); void RegSaveValue (LPCTSTR section, LPCTSTR key, BOOL peruser, DWORD value); // MessageBox int MessageBox(HWND, const char * text, const char * caption, UINT type); // Mockingboard void registerSoundBuffer(IDirectSoundBuffer * buffer); void unregisterSoundBuffer(IDirectSoundBuffer * buffer);