5dee29fbf9
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "linux/windows/wincompat.h"
|
|
#include "linux/windows/dsound.h"
|
|
#include "linux/windows/resources.h"
|
|
#include "linux/windows/bitmap.h"
|
|
|
|
#include <string>
|
|
|
|
// Resources
|
|
|
|
HRSRC FindResource(void *, const std::string & filename, const char *);
|
|
|
|
// Bitmap
|
|
HBITMAP LoadBitmap(HINSTANCE hInstance, const std::string & 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);
|
|
|
|
// Speaker
|
|
|
|
BYTE SpkrToggle (WORD pc, WORD addr, BYTE bWrite, BYTE d, 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);
|