33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
#pragma once
|
|
#define BOOL bool
|
|
#if defined(_WIN64)
|
|
typedef __int64 INT_PTR, *PINT_PTR;
|
|
typedef unsigned __int64 UINT_PTR, *PUINT_PTR;
|
|
|
|
typedef __int64 LONG_PTR, *PLONG_PTR;
|
|
typedef unsigned __int64 ULONG_PTR, *PULONG_PTR;
|
|
|
|
#define __int3264 __int64
|
|
|
|
#else
|
|
typedef _W64 int INT_PTR, *PINT_PTR;
|
|
typedef _W64 unsigned int UINT_PTR, *PUINT_PTR;
|
|
|
|
typedef _W64 long LONG_PTR, *PLONG_PTR;
|
|
typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR;
|
|
|
|
#define __int3264 __int32
|
|
|
|
#endif
|
|
|
|
typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
|
|
typedef long LONG;
|
|
#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))
|
|
#define LOBYTE(w) ((BYTE)(((DWORD_PTR)(w)) & 0xff))
|
|
#define HIBYTE(w) ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))
|
|
|
|
#include "DepthProgress.h"
|