blob: 66d356d7cf74998b69a83ce771c34ae2167de888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/* -------------------------------------------
Copyright Mahrouss Logic
------------------------------------------- */
#pragma once
#ifndef __cplusplus
#error This API is meant to be used with C++
#endif
#ifdef CA_MUST_PASS
#undef CA_MUST_PASS
#endif
// unused by user side, it's a kernel thing.
#define CA_MUST_PASS(e) ((void)e)
#define CA_EXTERN_C extern "C"
#define CA_STDCALL __attribute__((stdcall))
#define CA_CDECL __attribute__((cdecl))
#define CA_MSCALL __attribute__((ms_abi))
#define CA_PASCALL CA_STDCALL
typedef __UINT8_TYPE__ BYTE;
typedef __UINT16_TYPE__ WORD;
typedef __UINT32_TYPE__ DWORD;
typedef __UINT64_TYPE__ QWORD;
typedef void* PVOID;
typedef void VOID;
typedef __WCHAR_TYPE__ WCHAR;
typedef WCHAR* PWCHAR;
#ifdef __x86_64__
# define _M_AMD64 2
#endif
#ifdef __aarch64__
# define _M_AARCH64 3
#endif
#ifdef __powerpc64__
# define _M_PPC64 4
#endif
#ifdef __64x0__
# define _M_64000 5
#endif
#define CA_STATIC static
#define CA_INLINE inline
|