8#ifndef BASE_WIN_WINDOWS_TYPES_H_
9#define BASE_WIN_WINDOWS_TYPES_H_
12#include <concurrencysal.h>
14#include <specstrings.h>
41typedef unsigned short WORD;
62#define LRESULT LONG_PTR
74#ifndef _REFGUID_DEFINED
75#define _REFGUID_DEFINED
76#define REFGUID const GUID&
81#define CHROME_DECLARE_HANDLE(name) \
83 typedef struct name##__* name
93#undef CHROME_DECLARE_HANDLE
142#ifndef INVALID_HANDLE_VALUE
144#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)
146#define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
149#define CS_GLOBALCLASS 0x4000
151#define ERROR_SUCCESS 0L
152#define ERROR_FILE_NOT_FOUND 2L
153#define ERROR_ACCESS_DENIED 5L
154#define ERROR_INVALID_HANDLE 6L
155#define ERROR_SHARING_VIOLATION 32L
156#define ERROR_LOCK_VIOLATION 33L
157#define REG_BINARY ( 3ul )
159#define STATUS_PENDING ((DWORD )0x00000103L)
160#define STILL_ACTIVE STATUS_PENDING
161#define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0)
162#define FAILED(hr) (((HRESULT)(hr)) < 0)
164#define HKEY_CLASSES_ROOT (( HKEY ) (ULONG_PTR)((LONG)0x80000000) )
165#define HKEY_LOCAL_MACHINE (( HKEY ) (ULONG_PTR)((LONG)0x80000002) )
166#define HKEY_CURRENT_USER (( HKEY ) (ULONG_PTR)((LONG)0x80000001) )
167#define KEY_QUERY_VALUE (0x0001)
168#define KEY_SET_VALUE (0x0002)
169#define KEY_CREATE_SUB_KEY (0x0004)
170#define KEY_ENUMERATE_SUB_KEYS (0x0008)
171#define KEY_NOTIFY (0x0010)
172#define KEY_CREATE_LINK (0x0020)
173#define KEY_WOW64_32KEY (0x0200)
174#define KEY_WOW64_64KEY (0x0100)
175#define KEY_WOW64_RES (0x0300)
177#define READ_CONTROL (0x00020000L)
178#define SYNCHRONIZE (0x00100000L)
180#define STANDARD_RIGHTS_READ (READ_CONTROL)
181#define STANDARD_RIGHTS_WRITE (READ_CONTROL)
182#define STANDARD_RIGHTS_ALL (0x001F0000L)
184#define KEY_READ ((STANDARD_RIGHTS_READ |\
186 KEY_ENUMERATE_SUB_KEYS |\
192#define KEY_WRITE ((STANDARD_RIGHTS_WRITE |\
194 KEY_CREATE_SUB_KEY) \
198#define KEY_ALL_ACCESS ((STANDARD_RIGHTS_ALL |\
201 KEY_CREATE_SUB_KEY |\
202 KEY_ENUMERATE_SUB_KEYS |\
212#define DECLSPEC_IMPORT __declspec(dllimport)
213#define WINBASEAPI DECLSPEC_IMPORT
214#define WINUSERAPI DECLSPEC_IMPORT
215#define WINAPI __stdcall
216#define CALLBACK __stdcall
226 _In_
UINT wMsgFilterMin,
227 _In_
UINT wMsgFilterMax);
248#define CopyFile CopyFileW
249#define CreateDirectory CreateDirectoryW
250#define CreateEvent CreateEventW
251#define CreateFile CreateFileW
252#define CreateService CreateServiceW
253#define DeleteFile DeleteFileW
254#define DispatchMessage DispatchMessageW
255#define DrawText DrawTextW
256#define FindFirstFile FindFirstFileW
257#define FindNextFile FindNextFileW
258#define GetComputerName GetComputerNameW
259#define GetCurrentDirectory GetCurrentDirectoryW
260#define GetCurrentTime() GetTickCount()
261#define GetFileAttributes GetFileAttributesW
262#define GetMessage GetMessageW
263#define GetUserName GetUserNameW
264#define LoadIcon LoadIconW
265#define LoadImage LoadImageW
266#define PostMessage PostMessageW
267#define RemoveDirectory RemoveDirectoryW
268#define ReplaceFile ReplaceFileW
269#define ReportEvent ReportEventW
270#define SendMessage SendMessageW
271#define SendMessageCallback SendMessageCallbackW
272#define SetCurrentDirectory SetCurrentDirectoryW
273#define StartService StartServiceW
274#define UpdateResource UpdateResourceW
__w64 unsigned int UINT_PTR
__w64 unsigned int * PUINT_PTR
typedef _Return_type_success_(return >=0) long HRESULT
struct tagLOGFONTW * LPLOGFONTW
__w64 unsigned long * PULONG_PTR
struct tagLOGFONTW * PLOGFONTW
WINBASEAPI BOOLEAN WINAPI TryAcquireSRWLockExclusive(_Inout_ PSRWLOCK SRWLock)
WINUSERAPI BOOL WINAPI GetMessageW(_Out_ LPMSG lpMsg, _In_opt_ HWND hWnd, _In_ UINT wMsgFilterMin, _In_ UINT wMsgFilterMax)
#define CHROME_DECLARE_HANDLE(name)
WINBASEAPI _Releases_exclusive_lock_ SRWLock VOID WINAPI ReleaseSRWLockExclusive(_Inout_ PSRWLOCK SRWLock)
WINBASEAPI LPVOID WINAPI TlsGetValue(_In_ DWORD dwTlsIndex)
WINBASEAPI VOID WINAPI SetLastError(_In_ DWORD dwErrCode)
struct _FILETIME FILETIME
struct tagLOGFONTW LOGFONTW
struct _RTL_SRWLOCK RTL_SRWLOCK
WINBASEAPI _Check_return_ _Post_equals_last_error_ DWORD WINAPI GetLastError(VOID)
struct _OVERLAPPED OVERLAPPED
__w64 unsigned long ULONG_PTR
unsigned __int64 ULONGLONG
struct tagLOGFONTW * NPLOGFONTW
struct tagMENUITEMINFOW MENUITEMINFO
struct _SP_DEVINFO_DATA SP_DEVINFO_DATA
struct tagMENUITEMINFOW MENUITEMINFOW