2017-05-30 03:38:38 +02:00
|
|
|
/*
|
2023-01-06 15:36:05 -05:00
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
2017-05-30 03:38:38 +02:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* This file is part of the 86Box distribution.
|
2017-05-30 03:38:38 +02:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Platform support defintions for Win32.
|
2017-05-30 03:38:38 +02:00
|
|
|
*
|
2020-03-25 00:46:02 +02:00
|
|
|
*
|
2017-10-07 00:46:54 -04:00
|
|
|
*
|
2023-01-06 15:36:29 -05:00
|
|
|
* Authors: Sarah Walker, <https://pcem-emulator.co.uk/>
|
2023-01-06 15:36:05 -05:00
|
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
2017-10-08 19:14:46 -04:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Copyright 2008-2019 Sarah Walker.
|
|
|
|
|
* Copyright 2016-2019 Miran Grca.
|
|
|
|
|
* Copyright 2017-2019 Fred N. van Kempen.
|
|
|
|
|
* Copyright 2021 Laci bá'
|
2017-05-30 03:38:38 +02:00
|
|
|
*/
|
2022-02-18 19:42:21 -05:00
|
|
|
|
2017-10-19 04:27:04 -04:00
|
|
|
#ifndef PLAT_WIN_H
|
2022-07-27 17:00:34 -04:00
|
|
|
#define PLAT_WIN_H
|
|
|
|
|
|
2022-09-02 16:53:53 +08:00
|
|
|
#ifndef UNICODE
|
2022-09-18 17:15:38 -04:00
|
|
|
# define UNICODE
|
2022-09-02 16:53:53 +08:00
|
|
|
#endif
|
2022-07-27 17:00:34 -04:00
|
|
|
#include <windows.h>
|
2021-04-23 16:09:45 +03:00
|
|
|
|
2019-11-03 03:18:30 +01:00
|
|
|
/* Application-specific window messages.
|
|
|
|
|
|
|
|
|
|
A dialog sends 0x8895 with WPARAM = 1 followed by 0x8896 with WPARAM = 1 on open,
|
|
|
|
|
and 0x8895 with WPARAM = <previous pause status> followed by 0x8896 with WPARAM = 0.
|
|
|
|
|
|
|
|
|
|
All shutdowns will send an 0x8897. */
|
2022-07-27 17:00:34 -04:00
|
|
|
#define WM_LEAVEFULLSCREEN WM_USER
|
|
|
|
|
#define WM_SAVESETTINGS 0x8888
|
|
|
|
|
#define WM_SHOWSETTINGS 0x8889
|
|
|
|
|
#define WM_PAUSE 0x8890
|
|
|
|
|
#define WM_SENDHWND 0x8891
|
|
|
|
|
#define WM_HARDRESET 0x8892
|
|
|
|
|
#define WM_SHUTDOWN 0x8893
|
|
|
|
|
#define WM_CTRLALTDEL 0x8894
|
2018-10-23 19:45:05 +02:00
|
|
|
/* Pause/resume status: WPARAM = 1 for paused, 0 for resumed. */
|
2022-07-27 17:00:34 -04:00
|
|
|
#define WM_SENDSTATUS 0x8895
|
2019-11-03 03:18:30 +01:00
|
|
|
/* Dialog (Settings or message box) status: WPARAM = 1 for open, 0 for closed. */
|
2022-07-27 17:00:34 -04:00
|
|
|
#define WM_SENDDLGSTATUS 0x8896
|
2019-11-03 03:18:30 +01:00
|
|
|
/* The emulator has shut down. */
|
2022-07-27 17:00:34 -04:00
|
|
|
#define WM_HAS_SHUTDOWN 0x8897
|
2017-05-27 03:53:32 +02:00
|
|
|
|
2022-07-27 17:00:34 -04:00
|
|
|
#endif /*PLAT_WIN_H*/
|