📄 basedef.h
字号:
/****************************************************************************
* *
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY *
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE *
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR *
* PURPOSE. *
* *
* Copyright (C) 1993-95 Microsoft Corporation. All Rights Reserved. *
* *
****************************************************************************/
/*** BASEDEF.H
*
* Basic constants and types for the VMM and VxDs
*
* NOBASEDEFS turns off the base definations
*/
#ifndef NOBASEDEFS
#define NOBASEDEFS
/*
* No warnings generated on non-standard usuage such as double
* slash for comments
*/
#pragma warning (disable:4206)
#pragma warning (disable:4214)
#pragma warning (disable:4505)
#pragma warning (disable:4001)
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef NULL
#define NULL '\0' // Null pointer
#endif
#define CDECL _cdecl
#define PASCAL _pascal
#define VOID void
#define CONST const
#define VOLATILE volatile
#ifndef _RTLENTRY
# define _RTLENTRY __cdecl
#endif
typedef int INT; // i
typedef unsigned int UINT; // u
typedef int BOOL; // f
typedef unsigned char BYTE; // b
typedef unsigned short WORD; // w
typedef unsigned long DWORD; // dw
#ifndef _H2INC
typedef struct qword_s { /* qword */
DWORD qword_lo;
DWORD qword_hi;
} QWORD; // qw
#endif
typedef char CHAR; // ch
typedef unsigned char UCHAR; // uch
typedef short SHORT; // s
typedef unsigned short USHORT; // us
typedef long LONG; // l
typedef unsigned long ULONG; // ul
typedef VOID *PVOID; // p
typedef PVOID *PPVOID; // pp
typedef INT *PINT; // pi
typedef UINT *PUINT; // pu
typedef BYTE *PBYTE; // pb
typedef WORD *PWORD; // pw
typedef DWORD *PDWORD; // pdw
typedef CHAR *PCHAR; // pch
typedef SHORT *PSHORT; // ps
typedef LONG *PLONG; // pl
typedef UCHAR *PUCHAR; // puch
typedef USHORT *PUSHORT; // pus
typedef ULONG *PULONG; // pul
typedef BOOL *PBOOL; // pf
typedef UCHAR SZ[]; // sz
typedef UCHAR *PSZ; // psz
typedef UCHAR SZZ[]; // szz
typedef UCHAR *PSZZ; // pszz
typedef USHORT SEL; // sel
typedef SEL *PSEL; // psel
typedef ULONG PPHYS; // pphys
typedef (*PFN)(); // pfn
typedef PFN *PPFN; // ppfn
typedef PVOID HANDLE; // h
typedef HANDLE *PHANDLE; // ph
typedef ULONG HTIMEOUT; // timeout handle
typedef ULONG CMS; // count of milliseconds
#ifndef NOMINMAX
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif // NOMINMAX
#define MAKEWORD(a, b) ((WORD)(((BYTE)(a)) | ((WORD)((BYTE)(b))) << 8))
#define MAKELONG(a, b) ((LONG)(((WORD)(a)) | ((DWORD)((WORD)(b))) << 16))
#define LOWORD(l) ((WORD)(l))
#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
#define LOBYTE(w) ((BYTE)(w))
#define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF))
#endif // NOBASEDEFS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -