ReactOS  0.4.13-dev-257-gfabbd7c
basetsd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define POINTER_64
 
#define POINTER_32
 
#define FIRMWARE_PTR   POINTER_32
 
#define POINTER_SIGNED
 
#define POINTER_UNSIGNED
 
#define SPOINTER_32   POINTER_SIGNED POINTER_32
 
#define UPOINTER_32   POINTER_UNSIGNED POINTER_32
 
#define __int3264   __int32
 
#define ADDRESS_TAG_BIT   0x80000000UL
 
#define HandleToUlong(h)   ((ULONG)(ULONG_PTR)(h) )
 
#define HandleToLong(h)   ((LONG)(LONG_PTR) (h) )
 
#define ULongToHandle(h)   ((HANDLE)(ULONG_PTR) (h))
 
#define LongToHandle(h)   ((HANDLE)(LONG_PTR) (h))
 
#define PtrToUlong(p)   ((ULONG)(ULONG_PTR) (p) )
 
#define PtrToLong(p)   ((LONG)(LONG_PTR) (p) )
 
#define PtrToUint(p)   ((UINT)(UINT_PTR) (p) )
 
#define PtrToInt(p)   ((INT)(INT_PTR) (p) )
 
#define PtrToUshort(p)   ((unsigned short)(ULONG_PTR)(p) )
 
#define PtrToShort(p)   ((short)(LONG_PTR)(p) )
 
#define IntToPtr(i)   ((VOID*)(INT_PTR)((int)i))
 
#define UIntToPtr(ui)   ((VOID*)(UINT_PTR)((unsigned int)ui))
 
#define LongToPtr(l)   ((VOID*)(LONG_PTR)((long)l))
 
#define ULongToPtr(ul)   ((VOID*)(ULONG_PTR)((unsigned long)ul))
 
#define HandleToULong(h)   HandleToUlong(h)
 
#define UlongToHandle(ul)   ULongToHandle(ul)
 
#define UlongToPtr(ul)   ULongToPtr(ul)
 
#define UintToPtr(ui)   UIntToPtr(ui)
 
#define MAXUINT_PTR   (~((UINT_PTR)0))
 
#define MAXINT_PTR   ((INT_PTR)(MAXUINT_PTR >> 1))
 
#define MININT_PTR   (~MAXINT_PTR)
 
#define MAXULONG_PTR   (~((ULONG_PTR)0))
 
#define MAXLONG_PTR   ((LONG_PTR)(MAXULONG_PTR >> 1))
 
#define MINLONG_PTR   (~MAXLONG_PTR)
 
#define MAXUHALF_PTR   ((UHALF_PTR)~0)
 
#define MAXHALF_PTR   ((HALF_PTR)(MAXUHALF_PTR >> 1))
 
#define MINHALF_PTR   (~MAXHALF_PTR)
 
#define LONG_PTR_DEFINED
 

Typedefs

typedef unsigned long POINTER_64_INT
 
typedef unsigned short UHALF_PTR
 
typedef unsigned shortPUHALF_PTR
 
typedef short HALF_PTR
 
typedef shortPHALF_PTR
 
typedef long SHANDLE_PTR
 
typedef unsigned long HANDLE_PTR
 
typedef int LONG32
 
typedef intPLONG32
 
typedef int INT32
 
typedef intPINT32
 
typedef unsigned int ULONG32
 
typedef unsigned intPULONG32
 
typedef unsigned int DWORD32
 
typedef unsigned intPDWORD32
 
typedef unsigned int UINT32
 
typedef unsigned intPUINT32
 
typedef int INT_PTR
 
typedef intPINT_PTR
 
typedef unsigned int UINT_PTR
 
typedef unsigned intPUINT_PTR
 
typedef long LONG_PTR
 
typedef longPLONG_PTR
 
typedef unsigned long ULONG_PTR
 
typedef unsigned longPULONG_PTR
 
typedef ULONG_PTR SIZE_T
 
typedef ULONG_PTRPSIZE_T
 
typedef LONG_PTR SSIZE_T
 
typedef LONG_PTRPSSIZE_T
 
typedef ULONG_PTR DWORD_PTR
 
typedef ULONG_PTRPDWORD_PTR
 
typedef __int64 LONG64
 
typedef __int64PLONG64
 
typedef __int64 INT64
 
typedef __int64PINT64
 
typedef unsigned __int64 ULONG64
 
typedef unsigned __int64PULONG64
 
typedef unsigned __int64 DWORD64
 
typedef unsigned __int64PDWORD64
 
typedef unsigned __int64 UINT64
 
typedef unsigned __int64PUINT64
 
typedef signed char INT8
 
typedef signed charPINT8
 
typedef unsigned char UINT8
 
typedef unsigned charPUINT8
 
typedef signed short INT16
 
typedef signed shortPINT16
 
typedef unsigned short UINT16
 
typedef unsigned shortPUINT16
 
typedef ULONG_PTR KAFFINITY
 
typedef KAFFINITYPKAFFINITY
 

Macro Definition Documentation

◆ __int3264

#define __int3264   __int32

Definition at line 73 of file basetsd.h.

◆ ADDRESS_TAG_BIT

#define ADDRESS_TAG_BIT   0x80000000UL

Definition at line 74 of file basetsd.h.

◆ FIRMWARE_PTR

#define FIRMWARE_PTR   POINTER_32

Definition at line 50 of file basetsd.h.

◆ HandleToLong

#define HandleToLong (   h)    ((LONG)(LONG_PTR) (h) )

Definition at line 80 of file basetsd.h.

◆ HandleToUlong

#define HandleToUlong (   h)    ((ULONG)(ULONG_PTR)(h) )

Definition at line 79 of file basetsd.h.

◆ HandleToULong

#define HandleToULong (   h)    HandleToUlong(h)

Definition at line 95 of file basetsd.h.

◆ IntToPtr

#define IntToPtr (   i)    ((VOID*)(INT_PTR)((int)i))

Definition at line 89 of file basetsd.h.

◆ LONG_PTR_DEFINED

#define LONG_PTR_DEFINED

Definition at line 175 of file basetsd.h.

◆ LongToHandle

#define LongToHandle (   h)    ((HANDLE)(LONG_PTR) (h))

Definition at line 82 of file basetsd.h.

◆ LongToPtr

#define LongToPtr (   l)    ((VOID*)(LONG_PTR)((long)l))

Definition at line 91 of file basetsd.h.

◆ MAXHALF_PTR

#define MAXHALF_PTR   ((HALF_PTR)(MAXUHALF_PTR >> 1))

Definition at line 107 of file basetsd.h.

◆ MAXINT_PTR

#define MAXINT_PTR   ((INT_PTR)(MAXUINT_PTR >> 1))

Definition at line 101 of file basetsd.h.

◆ MAXLONG_PTR

#define MAXLONG_PTR   ((LONG_PTR)(MAXULONG_PTR >> 1))

Definition at line 104 of file basetsd.h.

◆ MAXUHALF_PTR

#define MAXUHALF_PTR   ((UHALF_PTR)~0)

Definition at line 106 of file basetsd.h.

◆ MAXUINT_PTR

#define MAXUINT_PTR   (~((UINT_PTR)0))

Definition at line 100 of file basetsd.h.

◆ MAXULONG_PTR

#define MAXULONG_PTR   (~((ULONG_PTR)0))

Definition at line 103 of file basetsd.h.

◆ MINHALF_PTR

#define MINHALF_PTR   (~MAXHALF_PTR)

Definition at line 108 of file basetsd.h.

◆ MININT_PTR

#define MININT_PTR   (~MAXINT_PTR)

Definition at line 102 of file basetsd.h.

◆ MINLONG_PTR

#define MINLONG_PTR   (~MAXLONG_PTR)

Definition at line 105 of file basetsd.h.

◆ POINTER_32

#define POINTER_32

Definition at line 38 of file basetsd.h.

◆ POINTER_64

#define POINTER_64

Definition at line 37 of file basetsd.h.

◆ POINTER_SIGNED

#define POINTER_SIGNED

Definition at line 57 of file basetsd.h.

◆ POINTER_UNSIGNED

#define POINTER_UNSIGNED

Definition at line 58 of file basetsd.h.

◆ PtrToInt

#define PtrToInt (   p)    ((INT)(INT_PTR) (p) )

Definition at line 86 of file basetsd.h.

◆ PtrToLong

#define PtrToLong (   p)    ((LONG)(LONG_PTR) (p) )

Definition at line 84 of file basetsd.h.

◆ PtrToShort

#define PtrToShort (   p)    ((short)(LONG_PTR)(p) )

Definition at line 88 of file basetsd.h.

◆ PtrToUint

#define PtrToUint (   p)    ((UINT)(UINT_PTR) (p) )

Definition at line 85 of file basetsd.h.

◆ PtrToUlong

#define PtrToUlong (   p)    ((ULONG)(ULONG_PTR) (p) )

Definition at line 83 of file basetsd.h.

◆ PtrToUshort

#define PtrToUshort (   p)    ((unsigned short)(ULONG_PTR)(p) )

Definition at line 87 of file basetsd.h.

◆ SPOINTER_32

#define SPOINTER_32   POINTER_SIGNED POINTER_32

Definition at line 61 of file basetsd.h.

◆ UIntToPtr

#define UIntToPtr (   ui)    ((VOID*)(UINT_PTR)((unsigned int)ui))

Definition at line 90 of file basetsd.h.

◆ UintToPtr

#define UintToPtr (   ui)    UIntToPtr(ui)

Definition at line 99 of file basetsd.h.

◆ ULongToHandle

#define ULongToHandle (   h)    ((HANDLE)(ULONG_PTR) (h))

Definition at line 81 of file basetsd.h.

◆ UlongToHandle

#define UlongToHandle (   ul)    ULongToHandle(ul)

Definition at line 97 of file basetsd.h.

◆ ULongToPtr

#define ULongToPtr (   ul)    ((VOID*)(ULONG_PTR)((unsigned long)ul))

Definition at line 92 of file basetsd.h.

◆ UlongToPtr

#define UlongToPtr (   ul)    ULongToPtr(ul)

Definition at line 98 of file basetsd.h.

◆ UPOINTER_32

#define UPOINTER_32   POINTER_UNSIGNED POINTER_32

Definition at line 62 of file basetsd.h.

Typedef Documentation

◆ DWORD32

typedef unsigned int DWORD32

Definition at line 126 of file basetsd.h.

◆ DWORD64

typedef unsigned __int64 DWORD64

Definition at line 188 of file basetsd.h.

◆ DWORD_PTR

Definition at line 184 of file basetsd.h.

◆ HALF_PTR

typedef short HALF_PTR

Definition at line 76 of file basetsd.h.

◆ HANDLE_PTR

typedef unsigned long HANDLE_PTR

Definition at line 78 of file basetsd.h.

◆ INT16

typedef signed short INT16

Definition at line 193 of file basetsd.h.

◆ INT32

typedef int INT32

Definition at line 123 of file basetsd.h.

◆ INT64

typedef __int64 INT64

Definition at line 186 of file basetsd.h.

◆ INT8

typedef signed char INT8

Definition at line 191 of file basetsd.h.

◆ INT_PTR

typedef int INT_PTR

Definition at line 167 of file basetsd.h.

◆ KAFFINITY

Definition at line 196 of file basetsd.h.

◆ LONG32

typedef int LONG32

Definition at line 121 of file basetsd.h.

◆ LONG64

typedef __int64 LONG64

Definition at line 185 of file basetsd.h.

◆ LONG_PTR

typedef long LONG_PTR

Definition at line 176 of file basetsd.h.

◆ PDWORD32

typedef unsigned int * PDWORD32

Definition at line 126 of file basetsd.h.

◆ PDWORD64

typedef unsigned __int64 * PDWORD64

Definition at line 188 of file basetsd.h.

◆ PDWORD_PTR

typedef ULONG_PTR * PDWORD_PTR

Definition at line 184 of file basetsd.h.

◆ PHALF_PTR

typedef short * PHALF_PTR

Definition at line 76 of file basetsd.h.

◆ PINT16

typedef signed short * PINT16

Definition at line 193 of file basetsd.h.

◆ PINT32

typedef int * PINT32

Definition at line 123 of file basetsd.h.

◆ PINT64

typedef __int64 * PINT64

Definition at line 186 of file basetsd.h.

◆ PINT8

typedef signed char * PINT8

Definition at line 191 of file basetsd.h.

◆ PINT_PTR

typedef int * PINT_PTR

Definition at line 167 of file basetsd.h.

◆ PKAFFINITY

Definition at line 197 of file basetsd.h.

◆ PLONG32

typedef int * PLONG32

Definition at line 121 of file basetsd.h.

◆ PLONG64

typedef __int64 * PLONG64

Definition at line 185 of file basetsd.h.

◆ PLONG_PTR

typedef long * PLONG_PTR

Definition at line 176 of file basetsd.h.

◆ POINTER_64_INT

typedef unsigned long POINTER_64_INT

Definition at line 44 of file basetsd.h.

◆ PSIZE_T

typedef ULONG_PTR * PSIZE_T

Definition at line 182 of file basetsd.h.

◆ PSSIZE_T

typedef LONG_PTR * PSSIZE_T

Definition at line 183 of file basetsd.h.

◆ PUHALF_PTR

typedef unsigned short * PUHALF_PTR

Definition at line 75 of file basetsd.h.

◆ PUINT16

typedef unsigned short * PUINT16

Definition at line 194 of file basetsd.h.

◆ PUINT32

typedef unsigned int * PUINT32

Definition at line 127 of file basetsd.h.

◆ PUINT64

typedef unsigned __int64 * PUINT64

Definition at line 189 of file basetsd.h.

◆ PUINT8

typedef unsigned char * PUINT8

Definition at line 192 of file basetsd.h.

◆ PUINT_PTR

typedef unsigned int * PUINT_PTR

Definition at line 168 of file basetsd.h.

◆ PULONG32

typedef unsigned int * PULONG32

Definition at line 125 of file basetsd.h.

◆ PULONG64

typedef unsigned __int64 * PULONG64

Definition at line 187 of file basetsd.h.

◆ PULONG_PTR

typedef unsigned long * PULONG_PTR

Definition at line 177 of file basetsd.h.

◆ SHANDLE_PTR

typedef long SHANDLE_PTR

Definition at line 77 of file basetsd.h.

◆ SIZE_T

typedef ULONG_PTR SIZE_T

Definition at line 182 of file basetsd.h.

◆ SSIZE_T

typedef LONG_PTR SSIZE_T

Definition at line 183 of file basetsd.h.

◆ UHALF_PTR

typedef unsigned short UHALF_PTR

Definition at line 75 of file basetsd.h.

◆ UINT16

typedef unsigned short UINT16

Definition at line 194 of file basetsd.h.

◆ UINT32

typedef unsigned int UINT32

Definition at line 127 of file basetsd.h.

◆ UINT64

typedef unsigned __int64 UINT64

Definition at line 189 of file basetsd.h.

◆ UINT8

typedef unsigned char UINT8

Definition at line 192 of file basetsd.h.

◆ UINT_PTR

typedef unsigned int UINT_PTR

Definition at line 168 of file basetsd.h.

◆ ULONG32

typedef unsigned int ULONG32

Definition at line 125 of file basetsd.h.

◆ ULONG64

typedef unsigned __int64 ULONG64

Definition at line 187 of file basetsd.h.

◆ ULONG_PTR

typedef unsigned long ULONG_PTR

Definition at line 177 of file basetsd.h.