Files
CPP/common/windows.hpp
2025-08-10 11:35:20 -04:00

73 lines
1.9 KiB
C++
Executable File

#ifndef _COMMON_WINDOWS_HPP_
#define _COMMON_WINDOWS_HPP_
#ifndef _MSC_VER
#define _MSC_VER 1200
#endif
#define WIN32_LEAN_AND_MEAN
#define NOSERVICE
#define NOKANJI
#define NOCRYPT
#define NOMCX
#define NOLSTRING
#define NODBCS
#define NOMETAFILE
#define NOPROFILER
#define NOLANGUAGE
#define NOLOGERROR
#define NOMCX
#define NOIME
#define NOCOMM
// for backwards compatibility
typedef unsigned short USHORT;
//typedef unsigned int DWORD;
typedef unsigned long DWORD;
typedef unsigned short WORD;
typedef unsigned char BYTE;
typedef bool BOOL;
typedef long LONG;
typedef unsigned long LPARAM;
typedef unsigned long DWORD_PTR;
#define TRUE 1
#define FALSE 0
#define FAR
#define NEAR
#define MAKEWORD(a, b) ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff)) | ((WORD)((BYTE)(((DWORD_PTR)(b)) & 0xff))) << 8))
#define MAKELONG(a, b) ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
#define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff))
#define HIWORD(l) ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))
// The following definitions might be obsolete
#ifndef DS_3DLOOK
#define DS_3DLOOK 0x0004L
#endif
#ifndef PFD_GENERIC_ACCELERATED
#define PFD_GENERIC_ACCELERATED 0x00001000
#endif
#ifndef PFD_SWAP_LAYER_BUFFERS
#define PFD_SWAP_LAYER_BUFFERS 0x00000800
#endif
#ifndef PFD_DEPTH_DONTCARE
#define PFD_DEPTH_DONTCARE 0x20000000
#endif
#ifndef EN_MSGFILTER
#define EN_MSGFILTER 0x0700
#endif
#ifndef EN_REQUESTRESIZE
#define EN_REQUESTRESIZE 0x0701
#endif
#ifndef EN_SELCHANGE
#define EN_SELCHANGE 0x0702
#endif
#ifndef EN_DROPFILES
#define EN_DROPFILES 0x0703
#endif
#ifndef EN_PROTECTED
#define EN_PROTECTED 0x0704
#endif
#endif
#ifndef IMAGE_DIRECTORY_ENTRY_COPYRIGHT
#define IMAGE_DIRECTORY_ENTRY_COPYRIGHT IMAGE_DIRECTORY_ENTRY_ARCHITECTURE
#endif