ReactOS  r74622
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

#define __int3264   __int32

Definition at line 72 of file basetsd.h.

#define ADDRESS_TAG_BIT   0x80000000UL

Definition at line 73 of file basetsd.h.

#define FIRMWARE_PTR   POINTER_32

Definition at line 50 of file basetsd.h.

#define LONG_PTR_DEFINED

Definition at line 174 of file basetsd.h.

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

Definition at line 106 of file basetsd.h.

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

Definition at line 100 of file basetsd.h.

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

Definition at line 103 of file basetsd.h.

Referenced by MiMapViewOfDataSection().

#define MAXUHALF_PTR   ((UHALF_PTR)~0)

Definition at line 105 of file basetsd.h.

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

Definition at line 99 of file basetsd.h.

#define MINHALF_PTR   (~MAXHALF_PTR)

Definition at line 107 of file basetsd.h.

#define MININT_PTR   (~MAXINT_PTR)

Definition at line 101 of file basetsd.h.

Referenced by MSI_RecordGetIntPtr().

#define MINLONG_PTR   (~MAXLONG_PTR)

Definition at line 104 of file basetsd.h.

#define POINTER_32

Definition at line 38 of file basetsd.h.

#define POINTER_64

Definition at line 37 of file basetsd.h.

#define POINTER_SIGNED

Definition at line 57 of file basetsd.h.

#define POINTER_UNSIGNED

Definition at line 58 of file basetsd.h.

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

Definition at line 85 of file basetsd.h.

Referenced by get_str_hash().

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

Definition at line 83 of file basetsd.h.

Referenced by GetAutostartEntriesFromRegistry(), KiTimerExpiration(), and mstsc_WndProc().

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

Definition at line 87 of file basetsd.h.

Referenced by InternalAddAtom(), and InternalFindAtom().

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

Definition at line 86 of file basetsd.h.

Referenced by VgaInterpretCmdStream().

#define SPOINTER_32   POINTER_SIGNED POINTER_32

Definition at line 61 of file basetsd.h.

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

Definition at line 98 of file basetsd.h.

#define UlongToPtr (   ul)    ULongToPtr(ul)

Definition at line 97 of file basetsd.h.

Referenced by ButtonProc(), CdRomDeviceControlCompletion(), CdRomSetVolumeIntermediateCompletion(), CdRomSwitchModeCompletion(), CdRomUpdateMmcDriveCapabilitiesCompletion(), CheckAdjacentVADs(), CheckAlignment(), CmpInitializeHiveList(), ConDrvConsoleCtrlEventTimeout(), ConSrvConsoleCtrlEventTimeout(), CsrApiHandleConnectionRequest(), DebugPrint(), DebugPrompt(), DetectSerialPorts(), ENTRY_vPushFreeEntry(), ExpCreateWorkerThread(), GetEnhMetaFilePixelFormat(), InitInstance(), InterruptServiceRoutine(), IofCompleteRequest(), IPropertyStorage_fnDeleteMultiple(), IPropertyStorage_fnDeletePropertyNames(), KdDebuggerInitialize0(), KdpGetDebugMode(), KdPortInitializeEx(), KdpPortInitialize(), KiTimerExpiration(), KiTimerListExpire(), KspEnableEvent(), main(), NdisImmediateReadPortUchar(), NdisImmediateReadPortUlong(), NdisImmediateReadPortUshort(), NdisImmediateWritePortUchar(), NdisImmediateWritePortUlong(), NdisImmediateWritePortUshort(), NtSetInformationProcess(), PinCaptureProcess(), PointerProc(), PopulateWdmDeviceList(), prop_enum_copy_cb(), PropertyStorage_FindProperty(), PropertyStorage_FindPropertyNameById(), PropertyStorage_StoreNameWithId(), PropertyStorage_StorePropWithId(), PROPSHEET_AddPage(), protocol_continue(), PsSetContextThread(), request_complete(), RtlAddAttributeActionToRXact(), START_TEST(), STORAGES_find_matching_rows(), STREAMS_find_matching_rows(), SymlinkCreateTests(), test_foregroundwindow(), Test_PageFileSection(), test_SPI_SETFONTSMOOTHING(), CPortPinDMus::TransferMidiDataToDMus(), UXTHEME_RestoreSystemMetrics(), UXTHEME_SaveSystemMetrics(), VgaInterpretCmdStream(), WHERE_find_matching_rows(), WriteFileEx_Remixer(), WSAAsyncGetProtoByNumber(), WSAAsyncGetServByPort(), and WsAsyncAllocateBlock().

#define UPOINTER_32   POINTER_UNSIGNED POINTER_32

Definition at line 62 of file basetsd.h.

Typedef Documentation

typedef unsigned int DWORD32

Definition at line 125 of file basetsd.h.

typedef unsigned __int64 DWORD64

Definition at line 187 of file basetsd.h.

Definition at line 183 of file basetsd.h.

typedef short HALF_PTR

Definition at line 75 of file basetsd.h.

typedef unsigned long HANDLE_PTR

Definition at line 77 of file basetsd.h.

typedef signed short INT16

Definition at line 192 of file basetsd.h.

typedef int INT32

Definition at line 122 of file basetsd.h.

typedef __int64 INT64

Definition at line 185 of file basetsd.h.

typedef signed char INT8

Definition at line 190 of file basetsd.h.

typedef int INT_PTR

Definition at line 166 of file basetsd.h.

Definition at line 195 of file basetsd.h.

typedef int LONG32

Definition at line 120 of file basetsd.h.

typedef __int64 LONG64

Definition at line 184 of file basetsd.h.

typedef long LONG_PTR

Definition at line 175 of file basetsd.h.

typedef unsigned int * PDWORD32

Definition at line 125 of file basetsd.h.

typedef unsigned __int64 * PDWORD64

Definition at line 187 of file basetsd.h.

typedef ULONG_PTR * PDWORD_PTR

Definition at line 183 of file basetsd.h.

typedef short * PHALF_PTR

Definition at line 75 of file basetsd.h.

typedef signed short * PINT16

Definition at line 192 of file basetsd.h.

typedef int * PINT32

Definition at line 122 of file basetsd.h.

typedef __int64 * PINT64

Definition at line 185 of file basetsd.h.

typedef signed char * PINT8

Definition at line 190 of file basetsd.h.

typedef int * PINT_PTR

Definition at line 166 of file basetsd.h.

Definition at line 196 of file basetsd.h.

typedef int * PLONG32

Definition at line 120 of file basetsd.h.

typedef __int64 * PLONG64

Definition at line 184 of file basetsd.h.

typedef long * PLONG_PTR

Definition at line 175 of file basetsd.h.

typedef unsigned long POINTER_64_INT

Definition at line 44 of file basetsd.h.

typedef ULONG_PTR * PSIZE_T

Definition at line 181 of file basetsd.h.

typedef LONG_PTR * PSSIZE_T

Definition at line 182 of file basetsd.h.

typedef unsigned short * PUHALF_PTR

Definition at line 74 of file basetsd.h.

typedef unsigned short * PUINT16

Definition at line 193 of file basetsd.h.

typedef unsigned int * PUINT32

Definition at line 126 of file basetsd.h.

typedef unsigned __int64 * PUINT64

Definition at line 188 of file basetsd.h.

typedef unsigned char * PUINT8

Definition at line 191 of file basetsd.h.

typedef unsigned int * PUINT_PTR

Definition at line 167 of file basetsd.h.

typedef unsigned int * PULONG32

Definition at line 124 of file basetsd.h.

typedef unsigned __int64 * PULONG64

Definition at line 186 of file basetsd.h.

typedef unsigned long * PULONG_PTR

Definition at line 176 of file basetsd.h.

typedef long SHANDLE_PTR

Definition at line 76 of file basetsd.h.

typedef ULONG_PTR SIZE_T

Definition at line 181 of file basetsd.h.

typedef LONG_PTR SSIZE_T

Definition at line 182 of file basetsd.h.

typedef unsigned short UHALF_PTR

Definition at line 74 of file basetsd.h.

typedef unsigned short UINT16

Definition at line 193 of file basetsd.h.

typedef unsigned int UINT32

Definition at line 126 of file basetsd.h.

typedef unsigned __int64 UINT64

Definition at line 188 of file basetsd.h.

typedef unsigned char UINT8

Definition at line 191 of file basetsd.h.

typedef unsigned int UINT_PTR

Definition at line 167 of file basetsd.h.

typedef unsigned int ULONG32

Definition at line 124 of file basetsd.h.

typedef unsigned __int64 ULONG64

Definition at line 186 of file basetsd.h.

typedef unsigned long ULONG_PTR

Definition at line 176 of file basetsd.h.