Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
4.2 KiB

  1. /* -----------------------------------------------------------------------------
  2. * See the LICENSE file for information on copyright, usage and redistribution
  3. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4. *
  5. * windows.i
  6. *
  7. * SWIG library file to support types found in windows.h as well as Microsoft
  8. * integral type extensions. The types are set for 32 bit Windows.
  9. * ----------------------------------------------------------------------------- */
  10. // Support for non ISO (Windows) integral types
  11. %apply unsigned char { unsigned __int8 };
  12. %apply const unsigned char& { const unsigned __int8& };
  13. %apply signed char { __int8 };
  14. %apply const signed char& { const __int8& };
  15. %apply unsigned short { unsigned __int16 };
  16. %apply const unsigned short& { const unsigned __int16& };
  17. %apply short { __int16 };
  18. %apply const short& { const __int16& };
  19. %apply unsigned int { unsigned __int32 };
  20. %apply const unsigned int& { const unsigned __int32& };
  21. %apply int { __int32 };
  22. %apply const int& { const __int32& };
  23. %apply unsigned long long { unsigned __int64 };
  24. %apply const unsigned long long& { const unsigned __int64& };
  25. %apply long long { __int64 };
  26. %apply const long long& { const __int64& };
  27. // Workaround Microsoft calling conventions
  28. #define __cdecl
  29. #define __fastcall
  30. #define __far
  31. #define __forceinline
  32. #define __fortran
  33. #define __inline
  34. #define __pascal
  35. #define __stdcall
  36. #define __syscall
  37. #define _cdecl
  38. #define _fastcall
  39. #define _inline
  40. #define _pascal
  41. #define _stdcall
  42. #define WINAPI
  43. #define __declspec(WINDOWS_EXTENDED_ATTRIBUTE)
  44. #define __w64
  45. // Types from windef.h
  46. typedef unsigned long ULONG;
  47. typedef ULONG *PULONG;
  48. typedef unsigned short USHORT;
  49. typedef USHORT *PUSHORT;
  50. typedef unsigned char UCHAR;
  51. typedef UCHAR *PUCHAR;
  52. typedef char *PSZ;
  53. typedef unsigned long DWORD;
  54. typedef int BOOL;
  55. typedef unsigned char BYTE;
  56. typedef unsigned short WORD;
  57. typedef float FLOAT;
  58. typedef FLOAT *PFLOAT;
  59. typedef BOOL *PBOOL;
  60. typedef BOOL *LPBOOL;
  61. typedef BYTE *PBYTE;
  62. typedef BYTE *LPBYTE;
  63. typedef int *PINT;
  64. typedef int *LPINT;
  65. typedef WORD *PWORD;
  66. typedef WORD *LPWORD;
  67. typedef long *LPLONG;
  68. typedef DWORD *PDWORD;
  69. typedef DWORD *LPDWORD;
  70. typedef void *LPVOID;
  71. typedef const void *LPCVOID;
  72. typedef int INT;
  73. typedef unsigned int UINT;
  74. typedef unsigned int *PUINT;
  75. // Types from basetsd.h
  76. typedef signed char INT8, *PINT8;
  77. typedef signed short INT16, *PINT16;
  78. typedef signed int INT32, *PINT32;
  79. typedef signed __int64 INT64, *PINT64;
  80. typedef unsigned char UINT8, *PUINT8;
  81. typedef unsigned short UINT16, *PUINT16;
  82. typedef unsigned int UINT32, *PUINT32;
  83. typedef unsigned __int64 UINT64, *PUINT64;
  84. typedef signed int LONG32, *PLONG32;
  85. typedef unsigned int ULONG32, *PULONG32;
  86. typedef unsigned int DWORD32, *PDWORD32;
  87. typedef __w64 int INT_PTR, *PINT_PTR;
  88. typedef __w64 unsigned int UINT_PTR, *PUINT_PTR;
  89. typedef __w64 long LONG_PTR, *PLONG_PTR;
  90. typedef __w64 unsigned long ULONG_PTR, *PULONG_PTR;
  91. typedef unsigned short UHALF_PTR, *PUHALF_PTR;
  92. typedef short HALF_PTR, *PHALF_PTR;
  93. typedef __w64 long SHANDLE_PTR;
  94. typedef __w64 unsigned long HANDLE_PTR;
  95. typedef ULONG_PTR SIZE_T, *PSIZE_T;
  96. typedef LONG_PTR SSIZE_T, *PSSIZE_T;
  97. typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
  98. typedef __int64 LONG64, *PLONG64;
  99. typedef unsigned __int64 ULONG64, *PULONG64;
  100. typedef unsigned __int64 DWORD64, *PDWORD64;
  101. // Types from winnt.h
  102. typedef void *PVOID;
  103. typedef void *PVOID64;
  104. typedef char CHAR;
  105. typedef short SHORT;
  106. typedef long LONG;
  107. typedef CHAR *PCHAR;
  108. typedef CHAR *LPCH, *PCH;
  109. typedef const CHAR *LPCCH, *PCCH;
  110. typedef CHAR *NPSTR;
  111. typedef CHAR *LPSTR, *PSTR;
  112. typedef const CHAR *LPCSTR, *PCSTR;
  113. typedef char TCHAR, *PTCHAR;
  114. typedef unsigned char TBYTE , *PTBYTE ;
  115. typedef LPSTR LPTCH, PTCH;
  116. typedef LPSTR PTSTR, LPTSTR, PUTSTR, LPUTSTR;
  117. typedef LPCSTR PCTSTR, LPCTSTR, PCUTSTR, LPCUTSTR;
  118. typedef SHORT *PSHORT;
  119. typedef LONG *PLONG;
  120. typedef void *HANDLE;
  121. typedef HANDLE *PHANDLE;
  122. typedef BYTE FCHAR;
  123. typedef WORD FSHORT;
  124. typedef DWORD FLONG;
  125. typedef LONG HRESULT;
  126. typedef char CCHAR;
  127. typedef DWORD LCID;
  128. typedef PDWORD PLCID;
  129. typedef WORD LANGID;
  130. typedef __int64 LONGLONG;
  131. typedef unsigned __int64 ULONGLONG;
  132. typedef LONGLONG *PLONGLONG;
  133. typedef ULONGLONG *PULONGLONG;
  134. typedef ULONGLONG DWORDLONG;
  135. typedef DWORDLONG *PDWORDLONG;
  136. typedef BYTE BOOLEAN;
  137. typedef BOOLEAN *PBOOLEAN;