|
|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
|
|
|
|
|
namespace dvl { |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_OFS_MAXPATHNAME = 128; |
|
|
|
|
static constexpr auto DVL_MAX_PATH = 260; |
|
|
|
|
constexpr auto DVL_OFS_MAXPATHNAME = 128; |
|
|
|
|
constexpr auto DVL_MAX_PATH = 260; |
|
|
|
|
|
|
|
|
|
typedef char CHAR; |
|
|
|
|
typedef uint16_t SHORT; |
|
|
|
|
@ -668,108 +668,108 @@ extern void LoadAndPlaySound(char *FilePath, int lVolume, int lPan);
|
|
|
|
|
extern void DrawArtWithMask(int SX, int SY, int SW, int SH, int nFrame, BYTE bMask, void *pBuffer); |
|
|
|
|
extern BOOL __cdecl LoadArtWithPal(char *pszFile, void **pBuffer, int frames, DWORD *data); |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_WM_ACTIVATEAPP = 0x001C; |
|
|
|
|
static const auto DVL_HFILE_ERROR = (HFILE)-1; |
|
|
|
|
static constexpr auto DVL_DRIVE_CDROM = 5; |
|
|
|
|
static constexpr auto DVL_WM_DESTROY = 0x0002; |
|
|
|
|
static constexpr auto DVL_HORZRES = 8; |
|
|
|
|
static constexpr auto DVL_VERTRES = 10; |
|
|
|
|
static constexpr auto DVL_VER_PLATFORM_WIN32_NT = 2; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_CREATE_ALWAYS = 2; |
|
|
|
|
static constexpr auto DVL_GENERIC_READ = 0x80000000L; |
|
|
|
|
static constexpr auto DVL_GENERIC_WRITE = 0x40000000L; |
|
|
|
|
static constexpr auto DVL_OPEN_EXISTING = 3; |
|
|
|
|
static constexpr auto DVL_FILE_BEGIN = 0; |
|
|
|
|
static constexpr auto DVL_FILE_CURRENT = 1; |
|
|
|
|
static constexpr auto DVL_ERROR_FILE_NOT_FOUND = 2; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_PM_NOREMOVE = 0x0000; |
|
|
|
|
static constexpr auto DVL_PM_REMOVE = 0x0001; |
|
|
|
|
static constexpr auto DVL_WM_QUIT = 0x0012; |
|
|
|
|
static constexpr auto DVL_INFINITE = 0xFFFFFFFF; |
|
|
|
|
constexpr auto DVL_WM_ACTIVATEAPP = 0x001C; |
|
|
|
|
const auto DVL_HFILE_ERROR = (HFILE)-1; |
|
|
|
|
constexpr auto DVL_DRIVE_CDROM = 5; |
|
|
|
|
constexpr auto DVL_WM_DESTROY = 0x0002; |
|
|
|
|
constexpr auto DVL_HORZRES = 8; |
|
|
|
|
constexpr auto DVL_VERTRES = 10; |
|
|
|
|
constexpr auto DVL_VER_PLATFORM_WIN32_NT = 2; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_CREATE_ALWAYS = 2; |
|
|
|
|
constexpr auto DVL_GENERIC_READ = 0x80000000L; |
|
|
|
|
constexpr auto DVL_GENERIC_WRITE = 0x40000000L; |
|
|
|
|
constexpr auto DVL_OPEN_EXISTING = 3; |
|
|
|
|
constexpr auto DVL_FILE_BEGIN = 0; |
|
|
|
|
constexpr auto DVL_FILE_CURRENT = 1; |
|
|
|
|
constexpr auto DVL_ERROR_FILE_NOT_FOUND = 2; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_PM_NOREMOVE = 0x0000; |
|
|
|
|
constexpr auto DVL_PM_REMOVE = 0x0001; |
|
|
|
|
constexpr auto DVL_WM_QUIT = 0x0012; |
|
|
|
|
constexpr auto DVL_INFINITE = 0xFFFFFFFF; |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Events
|
|
|
|
|
//
|
|
|
|
|
static constexpr auto DVL_WM_MOUSEFIRST = 0x0200; |
|
|
|
|
static constexpr auto DVL_WM_MOUSEMOVE = 0x0200; |
|
|
|
|
static constexpr auto DVL_WM_LBUTTONDOWN = 0x0201; |
|
|
|
|
static constexpr auto DVL_WM_LBUTTONUP = 0x0202; |
|
|
|
|
static constexpr auto DVL_WM_RBUTTONDOWN = 0x0204; |
|
|
|
|
static constexpr auto DVL_WM_RBUTTONUP = 0x0205; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_WM_KEYFIRST = 0x0100; |
|
|
|
|
static constexpr auto DVL_WM_KEYDOWN = 0x0100; |
|
|
|
|
static constexpr auto DVL_WM_KEYUP = 0x0101; |
|
|
|
|
static constexpr auto DVL_WM_SYSKEYDOWN = 0x0104; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_WM_INITDIALOG = 0x0110; |
|
|
|
|
static constexpr auto DVL_WM_COMMAND = 0x0111; |
|
|
|
|
static constexpr auto DVL_WM_SYSCOMMAND = 0x0112; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_WM_CHAR = 0x0102; |
|
|
|
|
static constexpr auto DVL_WM_CAPTURECHANGED = 0x0215; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_WM_CREATE = 0x0001; |
|
|
|
|
static constexpr auto DVL_WM_PAINT = 0x000F; |
|
|
|
|
static constexpr auto DVL_WM_CLOSE = 0x0010; |
|
|
|
|
static constexpr auto DVL_WM_QUERYENDSESSION = 0x0011; |
|
|
|
|
static constexpr auto DVL_WM_ERASEBKGND = 0x0014; |
|
|
|
|
static constexpr auto DVL_WM_QUERYNEWPALETTE = 0x030F; |
|
|
|
|
static constexpr auto DVL_WM_PALETTECHANGED = 0x0311; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_SC_CLOSE = 0xF060; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_VK_RETURN = 0x0D; |
|
|
|
|
static constexpr auto DVL_VK_BACK = 0x08; |
|
|
|
|
static constexpr auto DVL_VK_SHIFT = 0x10; |
|
|
|
|
static constexpr auto DVL_VK_ESCAPE = 0x1B; |
|
|
|
|
static constexpr auto DVL_VK_SPACE = 0x20; |
|
|
|
|
static constexpr auto DVL_VK_LEFT = 0x25; |
|
|
|
|
static constexpr auto DVL_VK_UP = 0x26; |
|
|
|
|
static constexpr auto DVL_VK_RIGHT = 0x27; |
|
|
|
|
static constexpr auto DVL_VK_DOWN = 0x28; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_VK_F1 = 0x70; |
|
|
|
|
static constexpr auto DVL_VK_F2 = 0x71; |
|
|
|
|
static constexpr auto DVL_VK_F3 = 0x72; |
|
|
|
|
static constexpr auto DVL_VK_F4 = 0x73; |
|
|
|
|
static constexpr auto DVL_VK_F5 = 0x74; |
|
|
|
|
static constexpr auto DVL_VK_F6 = 0x75; |
|
|
|
|
static constexpr auto DVL_VK_F7 = 0x76; |
|
|
|
|
static constexpr auto DVL_VK_F8 = 0x77; |
|
|
|
|
static constexpr auto DVL_VK_F9 = 0x78; |
|
|
|
|
static constexpr auto DVL_VK_F10 = 0x79; |
|
|
|
|
static constexpr auto DVL_VK_F11 = 0x7A; |
|
|
|
|
static constexpr auto DVL_VK_F12 = 0x7B; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_VK_TAB = 0x09; |
|
|
|
|
static constexpr auto DVL_VK_PAUSE = 0x13; |
|
|
|
|
static constexpr auto DVL_VK_PRIOR = 0x21; |
|
|
|
|
static constexpr auto DVL_VK_NEXT = 0x22; |
|
|
|
|
static constexpr auto DVL_VK_SNAPSHOT = 0x2C; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_VK_OEM_1 = 0xBA; |
|
|
|
|
static constexpr auto DVL_VK_OEM_PLUS = 0xBB; |
|
|
|
|
static constexpr auto DVL_VK_OEM_COMMA = 0xBC; |
|
|
|
|
static constexpr auto DVL_VK_OEM_MINUS = 0xBD; |
|
|
|
|
static constexpr auto DVL_VK_OEM_PERIOD = 0xBE; |
|
|
|
|
static constexpr auto DVL_VK_OEM_2 = 0xBF; |
|
|
|
|
static constexpr auto DVL_VK_OEM_3 = 0xC0; |
|
|
|
|
static constexpr auto DVL_VK_OEM_4 = 0xDB; |
|
|
|
|
static constexpr auto DVL_VK_OEM_5 = 0xDC; |
|
|
|
|
static constexpr auto DVL_VK_OEM_6 = 0xDD; |
|
|
|
|
static constexpr auto DVL_VK_OEM_7 = 0xDE; |
|
|
|
|
//static constexpr auto DVL_VK_OEM_8 = 0xDF;
|
|
|
|
|
//static constexpr auto DVL_VK_OEM_102 = 0xE2;
|
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_MK_SHIFT = 0x0004; |
|
|
|
|
static constexpr auto DVL_MK_LBUTTON = 0x0001; |
|
|
|
|
static constexpr auto DVL_MK_RBUTTON = 0x0002; |
|
|
|
|
|
|
|
|
|
static constexpr auto DVL_MB_TASKMODAL = 0x00002000L; |
|
|
|
|
static constexpr auto DVL_MB_ICONHAND = 0x00000010L; |
|
|
|
|
static constexpr auto DVL_MB_ICONEXCLAMATION = 0x00000030L; |
|
|
|
|
constexpr auto DVL_WM_MOUSEFIRST = 0x0200; |
|
|
|
|
constexpr auto DVL_WM_MOUSEMOVE = 0x0200; |
|
|
|
|
constexpr auto DVL_WM_LBUTTONDOWN = 0x0201; |
|
|
|
|
constexpr auto DVL_WM_LBUTTONUP = 0x0202; |
|
|
|
|
constexpr auto DVL_WM_RBUTTONDOWN = 0x0204; |
|
|
|
|
constexpr auto DVL_WM_RBUTTONUP = 0x0205; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_WM_KEYFIRST = 0x0100; |
|
|
|
|
constexpr auto DVL_WM_KEYDOWN = 0x0100; |
|
|
|
|
constexpr auto DVL_WM_KEYUP = 0x0101; |
|
|
|
|
constexpr auto DVL_WM_SYSKEYDOWN = 0x0104; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_WM_INITDIALOG = 0x0110; |
|
|
|
|
constexpr auto DVL_WM_COMMAND = 0x0111; |
|
|
|
|
constexpr auto DVL_WM_SYSCOMMAND = 0x0112; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_WM_CHAR = 0x0102; |
|
|
|
|
constexpr auto DVL_WM_CAPTURECHANGED = 0x0215; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_WM_CREATE = 0x0001; |
|
|
|
|
constexpr auto DVL_WM_PAINT = 0x000F; |
|
|
|
|
constexpr auto DVL_WM_CLOSE = 0x0010; |
|
|
|
|
constexpr auto DVL_WM_QUERYENDSESSION = 0x0011; |
|
|
|
|
constexpr auto DVL_WM_ERASEBKGND = 0x0014; |
|
|
|
|
constexpr auto DVL_WM_QUERYNEWPALETTE = 0x030F; |
|
|
|
|
constexpr auto DVL_WM_PALETTECHANGED = 0x0311; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_SC_CLOSE = 0xF060; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_VK_RETURN = 0x0D; |
|
|
|
|
constexpr auto DVL_VK_BACK = 0x08; |
|
|
|
|
constexpr auto DVL_VK_SHIFT = 0x10; |
|
|
|
|
constexpr auto DVL_VK_ESCAPE = 0x1B; |
|
|
|
|
constexpr auto DVL_VK_SPACE = 0x20; |
|
|
|
|
constexpr auto DVL_VK_LEFT = 0x25; |
|
|
|
|
constexpr auto DVL_VK_UP = 0x26; |
|
|
|
|
constexpr auto DVL_VK_RIGHT = 0x27; |
|
|
|
|
constexpr auto DVL_VK_DOWN = 0x28; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_VK_F1 = 0x70; |
|
|
|
|
constexpr auto DVL_VK_F2 = 0x71; |
|
|
|
|
constexpr auto DVL_VK_F3 = 0x72; |
|
|
|
|
constexpr auto DVL_VK_F4 = 0x73; |
|
|
|
|
constexpr auto DVL_VK_F5 = 0x74; |
|
|
|
|
constexpr auto DVL_VK_F6 = 0x75; |
|
|
|
|
constexpr auto DVL_VK_F7 = 0x76; |
|
|
|
|
constexpr auto DVL_VK_F8 = 0x77; |
|
|
|
|
constexpr auto DVL_VK_F9 = 0x78; |
|
|
|
|
constexpr auto DVL_VK_F10 = 0x79; |
|
|
|
|
constexpr auto DVL_VK_F11 = 0x7A; |
|
|
|
|
constexpr auto DVL_VK_F12 = 0x7B; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_VK_TAB = 0x09; |
|
|
|
|
constexpr auto DVL_VK_PAUSE = 0x13; |
|
|
|
|
constexpr auto DVL_VK_PRIOR = 0x21; |
|
|
|
|
constexpr auto DVL_VK_NEXT = 0x22; |
|
|
|
|
constexpr auto DVL_VK_SNAPSHOT = 0x2C; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_VK_OEM_1 = 0xBA; |
|
|
|
|
constexpr auto DVL_VK_OEM_PLUS = 0xBB; |
|
|
|
|
constexpr auto DVL_VK_OEM_COMMA = 0xBC; |
|
|
|
|
constexpr auto DVL_VK_OEM_MINUS = 0xBD; |
|
|
|
|
constexpr auto DVL_VK_OEM_PERIOD = 0xBE; |
|
|
|
|
constexpr auto DVL_VK_OEM_2 = 0xBF; |
|
|
|
|
constexpr auto DVL_VK_OEM_3 = 0xC0; |
|
|
|
|
constexpr auto DVL_VK_OEM_4 = 0xDB; |
|
|
|
|
constexpr auto DVL_VK_OEM_5 = 0xDC; |
|
|
|
|
constexpr auto DVL_VK_OEM_6 = 0xDD; |
|
|
|
|
constexpr auto DVL_VK_OEM_7 = 0xDE; |
|
|
|
|
//constexpr auto DVL_VK_OEM_8 = 0xDF;
|
|
|
|
|
//constexpr auto DVL_VK_OEM_102 = 0xE2;
|
|
|
|
|
|
|
|
|
|
constexpr auto DVL_MK_SHIFT = 0x0004; |
|
|
|
|
constexpr auto DVL_MK_LBUTTON = 0x0001; |
|
|
|
|
constexpr auto DVL_MK_RBUTTON = 0x0002; |
|
|
|
|
|
|
|
|
|
constexpr auto DVL_MB_TASKMODAL = 0x00002000L; |
|
|
|
|
constexpr auto DVL_MB_ICONHAND = 0x00000010L; |
|
|
|
|
constexpr auto DVL_MB_ICONEXCLAMATION = 0x00000030L; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|