Add PInvoke/SizeParamIndex tests (#19348)
[platform/upstream/coreclr.git] / tests / src / Interop / common / types.h
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4
5 #ifndef _INTEROP_TYPES__H
6 #define _INTEROP_TYPES__H
7
8 #include <stddef.h>
9
10 #undef INT_MIN
11 #define INT_MIN    (-2147483647 - 1)
12
13 typedef char16_t WCHAR;
14 typedef int BOOL;
15 typedef WCHAR *LPWSTR, *PWSTR;
16 typedef const WCHAR *LPCWSTR, *PCWSTR;
17
18 typedef char* LPSTR;
19 typedef const char* LPCSTR;
20 typedef void* FARPROC;
21 typedef void* HMODULE;
22 typedef int error_t;
23 typedef void* LPVOID;
24 typedef unsigned char BYTE;
25 typedef WCHAR OLECHAR;
26 typedef ptrdiff_t INT_PTR;
27 typedef size_t UINT_PTR;
28
29 typedef unsigned long long ULONG64;
30 typedef double DOUBLE;
31 typedef float FLOAT;
32 typedef signed long long LONG64, *PLONG64;
33 typedef int INT, *LPINT;
34 typedef unsigned int UINT;
35 typedef char CHAR, *PCHAR;
36 typedef unsigned short USHORT;
37 typedef signed short SHORT;
38 typedef unsigned short WORD, *PWORD, *LPWORD;
39 typedef int LONG;
40
41 typedef size_t SIZE_T;
42
43 #ifndef TRUE
44 #define TRUE 1
45 #endif
46
47 #ifndef FALSE
48 #define FALSE 0
49 #endif
50
51 #endif //_INTEROP_TYPES__H