6 typedef unsigned long DWORD;
7 typedef unsigned short WORD;
8 typedef unsigned int UINT;
12 typedef wchar_t* LPWSTR;
13 typedef const char* LPCSTR;
14 typedef const wchar_t* LPCWSTR;
17 typedef size_t ULONG_PTR;
19 struct CRITICAL_SECTION
43 struct CONSOLE_SCREEN_BUFFER_INFO
46 COORD dwCursorPosition;
49 COORD dwMaximumWindowSize;
54 const UINT kActive = 0;
55 const UINT kUTF8 = 65001;
60 const WORD kErrorType = 0x0001;
61 const WORD kWarningType = 0x0002;
62 const WORD kInformationType = 0x0004;
67 const HKEY kLocalMachine =
reinterpret_cast<HKEY
>(
static_cast<ULONG_PTR
>(0x80000002));
72 const DWORD kQueryValue = 0x0001;
73 const DWORD kSetValue = 0x0002;
78 const DWORD kExpandSz = 2;
79 const DWORD kDword = 4;
84 const DWORD kOutput =
static_cast<DWORD
>(-11);
89 const WORD kBlue = 0x0001;
90 const WORD kGreen = 0x0002;
91 const WORD kRed = 0x0004;
92 const WORD kIntensity = 0x0008;
97 const WORD kBlue = 0x0010;
98 const WORD kGreen = 0x0020;
99 const WORD kRed = 0x0040;
100 const WORD kIntensity = 0x0080;
105 __declspec(dllimport)
int __stdcall MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr,
int cbMultiByte, LPWSTR lpWideCharStr,
int cchWideChar);
106 __declspec(dllimport)
int __stdcall WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr,
int cchWideChar, LPSTR lpMultiByteStr,
int cbMultiByte,
const char* lpDefaultChar, BOOL* lpUsedDefaultChar);
108 __declspec(dllimport) DWORD __stdcall GetCurrentThreadId();
110 __declspec(dllimport) BOOL __stdcall MoveFileW(LPCWSTR lpExistingFileName, LPCWSTR lpNewFileName);
112 __declspec(dllimport)
void __stdcall InitializeCriticalSection(CRITICAL_SECTION* lpCriticalSection);
113 __declspec(dllimport)
void __stdcall EnterCriticalSection(CRITICAL_SECTION* lpCriticalSection);
114 __declspec(dllimport)
void __stdcall LeaveCriticalSection(CRITICAL_SECTION* lpCriticalSection);
115 __declspec(dllimport)
void __stdcall DeleteCriticalSection(CRITICAL_SECTION* lpCriticalSection);
117 __declspec(dllimport) HANDLE __stdcall RegisterEventSourceW(LPCWSTR lpUNCServerName, LPCWSTR lpSourceName);
118 __declspec(dllimport) BOOL __stdcall DeregisterEventSource(HANDLE hEventLog);
119 __declspec(dllimport) BOOL __stdcall ReportEventW(HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID,
void* lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCWSTR* lpStrings,
void* lpRawData);
121 __declspec(dllimport) LSTATUS __stdcall RegCreateKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD Reserved, LPWSTR lpClass, DWORD dwOptions, DWORD samDesired,
void* lpSecurityAttributes, HKEY* phkResult, DWORD* lpdwDisposition);
122 __declspec(dllimport) LSTATUS __stdcall RegSetValueExW(HKEY hKey, LPCWSTR lpValueName, DWORD Reserved, DWORD dwType,
const void* lpData, DWORD cbData);
123 __declspec(dllimport) LSTATUS __stdcall RegCloseKey(HKEY hKey);
124 __declspec(dllimport) LSTATUS __stdcall RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, DWORD samDesired, HKEY* phkResult);
125 __declspec(dllimport) LSTATUS __stdcall RegDeleteKeyW(HKEY hKey, LPCWSTR lpSubKey);
127 __declspec(dllimport) HANDLE __stdcall GetStdHandle(DWORD nStdHandle);
129 __declspec(dllimport) BOOL __stdcall WriteConsoleW(HANDLE hConsoleOutput,
const void* lpBuffer, DWORD nNumberOfCharsToWrite, DWORD* lpNumberOfCharsWritten,
void* lpReserved);
130 __declspec(dllimport) BOOL __stdcall GetConsoleScreenBufferInfo(HANDLE hConsoleOutput, CONSOLE_SCREEN_BUFFER_INFO* lpConsoleScreenBufferInfo);
131 __declspec(dllimport) BOOL __stdcall SetConsoleTextAttribute(HANDLE hConsoleOutput, WORD wAttributes);
133 __declspec(dllimport)
void __stdcall OutputDebugStringW(LPCWSTR lpOutputString);
Definition: AndroidAppender.h:5