How to define Windows common data types under Linux
Editor to share with you how to define Windows common data types under Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
# define INVALID_HANDLE_VALUE-1#define _ MAX_PATH 260 / * max. Length of full pathname * / # define HANDLE int#define MAX_PATH 260#define TRUE true#define FALSE false#define _ stdcall#define _ declspec (x) # define _ cdecl#define max (a) > (b))? (a): (B) # define min ((a) < (b))? (a): (B) typedef int BOOL;typedef unsigned char BYTE;typedef float FLOAT;typedef FLOAT * PFLOAT;typedef char CHAR;typedef unsigned char UCHAR;typedef unsigned char * PUCHAR;typedef short SHORT;typedef unsigned short USHORT;typedef unsigned short * PUSHORT Typedef long LONG;typedef unsigned short WORD;typedef unsigned long DWORD;typedef long long LONGLONG;typedef unsigned long long ULONGLONG;typedef ULONGLONG * PULONGLONG;typedef unsigned long ULONG;typedef int INT;typedef unsigned int UINT;typedef unsigned int * PUINT;typedef void VOID;typedef char * LPSTR;typedef const char * LPCSTR Typedef wchar_t WCHAR;typedef WCHAR * LPWSTR;typedef const WCHAR * LPCWSTR;typedef DWORD * LPDWORD;typedef unsigned long UINT_PTR;typedef UINT_PTR SIZE_T;typedef LONGLONG USN;typedef BYTE BOOLEAN;typedef void * PVOID;typedef struct _ FILETIME {DWORD dwLowDateTime;DWORD dwHighDateTime;} FILETIME;typedef union _ ULARGE_INTEGER {struct {DWORD LowPart;DWORD HighPart }; struct {DWORD LowPart;DWORD HighPart;} Ulong QuadPart;} ULARGE_INTEGER,*PULARGE_INTEGER; is all the content of this article entitled "how to define Windows common data types under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!