blob: 6bf20fc96d6156f0d57f8abd9054690c923fb9d1 [file] [log] [blame] [edit]
// Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
//! Type definitions for the basic sized types.
#[cfg(target_arch = "x86")]
pub type POINTER_64_INT = ::c_ulong;
#[cfg(target_arch = "x86_64")]
pub type POINTER_64_INT = ::__uint64;
pub type INT8 = ::c_schar;
pub type PINT8 = *mut ::c_schar;
pub type INT16 = ::c_short;
pub type PINT16 = *mut ::c_short;
pub type INT32 = ::c_int;
pub type PINT32 = *mut ::c_int;
pub type INT64 = ::__int64;
pub type PINT64 = *mut ::__int64;
pub type UINT8 = ::c_uchar;
pub type PUINT8 = *mut ::c_uchar;
pub type UINT16 = ::c_ushort;
pub type PUINT16 = *mut ::c_ushort;
pub type UINT32 = ::c_uint;
pub type PUINT32 = *mut ::c_uint;
pub type UINT64 = ::__uint64;
pub type PUINT64 = *mut ::__uint64;
pub type LONG32 = ::c_int;
pub type PLONG32 = *mut ::c_int;
pub type ULONG32 = ::c_uint;
pub type PULONG32 = *mut ::c_uint;
pub type DWORD32 = ::c_uint;
pub type PDWORD32 = *mut ::c_uint;
#[cfg(target_arch = "x86")]
pub type INT_PTR = ::c_int;
#[cfg(target_arch = "x86_64")]
pub type INT_PTR = ::__int64;
#[cfg(target_arch = "x86")]
pub type PINT_PTR = *mut ::c_int;
#[cfg(target_arch = "x86_64")]
pub type PINT_PTR = *mut ::__int64;
#[cfg(target_arch = "x86")]
pub type UINT_PTR = ::c_uint;
#[cfg(target_arch = "x86_64")]
pub type UINT_PTR = ::__uint64;
#[cfg(target_arch = "x86")]
pub type PUINT_PTR = *mut ::c_uint;
#[cfg(target_arch = "x86_64")]
pub type PUINT_PTR = *mut ::__uint64;
#[cfg(target_arch = "x86")]
pub type LONG_PTR = ::c_long;
#[cfg(target_arch = "x86_64")]
pub type LONG_PTR = ::__int64;
#[cfg(target_arch = "x86")]
pub type PLONG_PTR = *mut ::c_long;
#[cfg(target_arch = "x86_64")]
pub type PLONG_PTR = *mut ::__int64;
#[cfg(target_arch = "x86")]
pub type ULONG_PTR = ::c_ulong;
#[cfg(target_arch = "x86_64")]
pub type ULONG_PTR = ::__uint64;
#[cfg(target_arch = "x86")]
pub type PULONG_PTR = *mut ::c_ulong;
#[cfg(target_arch = "x86_64")]
pub type PULONG_PTR = *mut ::__uint64;
#[cfg(target_arch = "x86_64")]
pub type SHANDLE_PTR = ::__int64;
#[cfg(target_arch = "x86_64")]
pub type HANDLE_PTR = ::__uint64;
#[cfg(target_arch = "x86_64")]
pub type UHALF_PTR = ::c_uint;
#[cfg(target_arch = "x86_64")]
pub type PUHALF_PTR = *mut ::c_uint;
#[cfg(target_arch = "x86_64")]
pub type HALF_PTR = ::c_int;
#[cfg(target_arch = "x86_64")]
pub type PHALF_PTR = *mut ::c_int;
#[cfg(target_arch = "x86")]
pub type SHANDLE_PTR = ::c_long;
#[cfg(target_arch = "x86")]
pub type HANDLE_PTR = ::c_ulong;
#[cfg(target_arch = "x86")]
pub type UHALF_PTR = ::c_ushort;
#[cfg(target_arch = "x86")]
pub type PUHALF_PTR = *mut ::c_ushort;
#[cfg(target_arch = "x86")]
pub type HALF_PTR = ::c_short;
#[cfg(target_arch = "x86")]
pub type PHALF_PTR = *mut ::c_short;
pub type SIZE_T = ULONG_PTR;
pub type PSIZE_T = *mut ULONG_PTR;
pub type SSIZE_T = LONG_PTR;
pub type PSSIZE_T = *mut LONG_PTR;
pub type DWORD_PTR = ULONG_PTR;
pub type PDWORD_PTR = *mut ULONG_PTR;
pub type LONG64 = ::__int64;
pub type PLONG64 = *mut ::__int64;
pub type ULONG64 = ::__uint64;
pub type PULONG64 = *mut ::__uint64;
pub type DWORD64 = ::__uint64;
pub type PDWORD64 = *mut ::__uint64;
pub type KAFFINITY = ULONG_PTR;
pub type PKAFFINITY = *mut KAFFINITY;