2017-05-16 09:07:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-11-23 18:17:44 +00:00
|
|
|
#include "linux/windows/wincompat.h"
|
|
|
|
#include "linux/windows/resources.h"
|
|
|
|
#include "linux/windows/bitmap.h"
|
|
|
|
|
2017-09-29 21:39:55 +01:00
|
|
|
#include <string>
|
|
|
|
|
2017-07-02 20:53:03 +01:00
|
|
|
// Resources
|
|
|
|
|
|
|
|
HRSRC FindResource(void *, const std::string & filename, const char *);
|
2019-11-23 18:17:44 +00:00
|
|
|
|
|
|
|
// Bitmap
|
2019-11-20 21:23:27 +00:00
|
|
|
HBITMAP LoadBitmap(HINSTANCE hInstance, const std::string & filename);
|
|
|
|
LONG GetBitmapBits(HBITMAP hbit, LONG cb, LPVOID lpvBits);
|
|
|
|
|
2017-07-02 20:53:03 +01:00
|
|
|
|
2017-05-16 09:07:55 +01:00
|
|
|
// Frame
|
|
|
|
|
|
|
|
void FrameDrawDiskLEDS(HDC x);
|
|
|
|
void FrameDrawDiskStatus(HDC x);
|
|
|
|
void FrameRefreshStatus(int x, bool);
|
|
|
|
|
|
|
|
// Keyboard
|
|
|
|
|
|
|
|
BYTE KeybGetKeycode ();
|
2018-08-25 21:17:55 +01:00
|
|
|
BYTE KeybReadData();
|
|
|
|
BYTE KeybReadFlag();
|
2017-05-21 20:23:48 +01:00
|
|
|
|
|
|
|
// Joystick
|
|
|
|
|
2018-04-14 18:46:00 +01:00
|
|
|
BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
|
|
|
|
BYTE __stdcall JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
|
2019-04-19 21:13:00 +01:00
|
|
|
void JoyResetPosition(ULONG uExecutedCycles);
|
2017-05-23 17:52:41 +01:00
|
|
|
|
|
|
|
// Speaker
|
|
|
|
|
2018-04-14 18:46:00 +01:00
|
|
|
BYTE __stdcall SpkrToggle (WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
|
2017-10-10 14:26:40 +01:00
|
|
|
|
|
|
|
// 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);
|
2017-10-15 18:58:23 +01:00
|
|
|
|
|
|
|
// MessageBox
|
|
|
|
|
|
|
|
int MessageBox(HWND, const char * text, const char * caption, UINT type);
|