1 // Copyright © 2015, Peter Atashian 2 // Licensed under the MIT License <LICENSE.md> 3 //! Type definitions for the basic sized types. 4 #[cfg(target_arch = "x86")] 5 pub type POINTER_64_INT = ::c_ulong; 6 #[cfg(target_arch = "x86_64")] 7 pub type POINTER_64_INT = ::__uint64; 8 pub type INT8 = ::c_schar; 9 pub type PINT8 = *mut ::c_schar; 10 pub type INT16 = ::c_short; 11 pub type PINT16 = *mut ::c_short; 12 pub type INT32 = ::c_int; 13 pub type PINT32 = *mut ::c_int; 14 pub type INT64 = ::__int64; 15 pub type PINT64 = *mut ::__int64; 16 pub type UINT8 = ::c_uchar; 17 pub type PUINT8 = *mut ::c_uchar; 18 pub type UINT16 = ::c_ushort; 19 pub type PUINT16 = *mut ::c_ushort; 20 pub type UINT32 = ::c_uint; 21 pub type PUINT32 = *mut ::c_uint; 22 pub type UINT64 = ::__uint64; 23 pub type PUINT64 = *mut ::__uint64; 24 pub type LONG32 = ::c_int; 25 pub type PLONG32 = *mut ::c_int; 26 pub type ULONG32 = ::c_uint; 27 pub type PULONG32 = *mut ::c_uint; 28 pub type DWORD32 = ::c_uint; 29 pub type PDWORD32 = *mut ::c_uint; 30 #[cfg(target_arch = "x86")] 31 pub type INT_PTR = ::c_int; 32 #[cfg(target_arch = "x86_64")] 33 pub type INT_PTR = ::__int64; 34 #[cfg(target_arch = "x86")] 35 pub type PINT_PTR = *mut ::c_int; 36 #[cfg(target_arch = "x86_64")] 37 pub type PINT_PTR = *mut ::__int64; 38 #[cfg(target_arch = "x86")] 39 pub type UINT_PTR = ::c_uint; 40 #[cfg(target_arch = "x86_64")] 41 pub type UINT_PTR = ::__uint64; 42 #[cfg(target_arch = "x86")] 43 pub type PUINT_PTR = *mut ::c_uint; 44 #[cfg(target_arch = "x86_64")] 45 pub type PUINT_PTR = *mut ::__uint64; 46 #[cfg(target_arch = "x86")] 47 pub type LONG_PTR = ::c_long; 48 #[cfg(target_arch = "x86_64")] 49 pub type LONG_PTR = ::__int64; 50 #[cfg(target_arch = "x86")] 51 pub type PLONG_PTR = *mut ::c_long; 52 #[cfg(target_arch = "x86_64")] 53 pub type PLONG_PTR = *mut ::__int64; 54 #[cfg(target_arch = "x86")] 55 pub type ULONG_PTR = ::c_ulong; 56 #[cfg(target_arch = "x86_64")] 57 pub type ULONG_PTR = ::__uint64; 58 #[cfg(target_arch = "x86")] 59 pub type PULONG_PTR = *mut ::c_ulong; 60 #[cfg(target_arch = "x86_64")] 61 pub type PULONG_PTR = *mut ::__uint64; 62 #[cfg(target_arch = "x86_64")] 63 pub type SHANDLE_PTR = ::__int64; 64 #[cfg(target_arch = "x86_64")] 65 pub type HANDLE_PTR = ::__uint64; 66 #[cfg(target_arch = "x86_64")] 67 pub type UHALF_PTR = ::c_uint; 68 #[cfg(target_arch = "x86_64")] 69 pub type PUHALF_PTR = *mut ::c_uint; 70 #[cfg(target_arch = "x86_64")] 71 pub type HALF_PTR = ::c_int; 72 #[cfg(target_arch = "x86_64")] 73 pub type PHALF_PTR = *mut ::c_int; 74 #[cfg(target_arch = "x86")] 75 pub type SHANDLE_PTR = ::c_long; 76 #[cfg(target_arch = "x86")] 77 pub type HANDLE_PTR = ::c_ulong; 78 #[cfg(target_arch = "x86")] 79 pub type UHALF_PTR = ::c_ushort; 80 #[cfg(target_arch = "x86")] 81 pub type PUHALF_PTR = *mut ::c_ushort; 82 #[cfg(target_arch = "x86")] 83 pub type HALF_PTR = ::c_short; 84 #[cfg(target_arch = "x86")] 85 pub type PHALF_PTR = *mut ::c_short; 86 pub type SIZE_T = ULONG_PTR; 87 pub type PSIZE_T = *mut ULONG_PTR; 88 pub type SSIZE_T = LONG_PTR; 89 pub type PSSIZE_T = *mut LONG_PTR; 90 pub type DWORD_PTR = ULONG_PTR; 91 pub type PDWORD_PTR = *mut ULONG_PTR; 92 pub type LONG64 = ::__int64; 93 pub type PLONG64 = *mut ::__int64; 94 pub type ULONG64 = ::__uint64; 95 pub type PULONG64 = *mut ::__uint64; 96 pub type DWORD64 = ::__uint64; 97 pub type PDWORD64 = *mut ::__uint64; 98 pub type KAFFINITY = ULONG_PTR; 99 pub type PKAFFINITY = *mut KAFFINITY; 100