michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #pragma once michael@0: michael@0: /* michael@0: * Includes and it's children. Defines imports needed by michael@0: * corewrappers.h in the case where windows.h has already been michael@0: * included w/WINVER < 0x600. Also ups WINVER/_WIN32_WINNT prior michael@0: * to including wrl.h. Mozilla's build currently has WINVER set to michael@0: * 0x502 for XP support. michael@0: */ michael@0: michael@0: #if _WIN32_WINNT < 0x600 michael@0: michael@0: #include michael@0: michael@0: VOID michael@0: WINAPI michael@0: ReleaseSRWLockExclusive( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: VOID michael@0: WINAPI michael@0: ReleaseSRWLockShared( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: BOOL michael@0: WINAPI michael@0: InitializeCriticalSectionEx( michael@0: _Out_ LPCRITICAL_SECTION lpCriticalSection, michael@0: _In_ DWORD dwSpinCount, michael@0: _In_ DWORD Flags michael@0: ); michael@0: michael@0: VOID michael@0: WINAPI michael@0: InitializeSRWLock( michael@0: _Out_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: VOID michael@0: WINAPI michael@0: AcquireSRWLockExclusive( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: BOOLEAN michael@0: WINAPI michael@0: TryAcquireSRWLockExclusive( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: BOOLEAN michael@0: WINAPI michael@0: TryAcquireSRWLockShared( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: VOID michael@0: WINAPI michael@0: AcquireSRWLockShared( michael@0: _Inout_ PSRWLOCK SRWLock michael@0: ); michael@0: michael@0: #undef WINVER michael@0: #undef _WIN32_WINNT michael@0: #define WINVER 0x600 michael@0: #define _WIN32_WINNT 0x600 michael@0: michael@0: #endif // _WIN32_WINNT < 0x600 michael@0: michael@0: #include