forked from boostorg/detail
Merge pull request #4 from MSOpenTech/winrt
[winrt support] Changes to update some of the Windows APIs to help support the Windows Runtime
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// system.hpp --------------------------------------------------------------//
|
||||
|
||||
// Copyright 2010 Vicente J. Botet Escriba
|
||||
// Copyright (c) Microsoft Corporation 2014
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
@@ -20,7 +21,11 @@ namespace detail {
|
||||
namespace winapi {
|
||||
#if defined( BOOST_USE_WINDOWS_H )
|
||||
typedef ::SYSTEM_INFO SYSTEM_INFO_;
|
||||
extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
|
||||
# if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
|
||||
extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
|
||||
# else
|
||||
extern "C" __declspec(dllimport) void __stdcall GetNativeSystemInfo (struct system_info *);
|
||||
# endif
|
||||
#else
|
||||
extern "C" {
|
||||
typedef struct _SYSTEM_INFO {
|
||||
@@ -42,8 +47,13 @@ extern "C" {
|
||||
WORD_ wProcessorRevision;
|
||||
} SYSTEM_INFO_;
|
||||
|
||||
# if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
|
||||
__declspec(dllimport) void __stdcall
|
||||
GetSystemInfo (struct system_info *);
|
||||
# else
|
||||
__declspec(dllimport) void __stdcall
|
||||
GetNativeSystemInfo (struct system_info *);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// time.hpp --------------------------------------------------------------//
|
||||
|
||||
// Copyright 2010 Vicente J. Botet Escriba
|
||||
// Copyright (c) Microsoft Corporation 2014
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
@@ -10,6 +11,7 @@
|
||||
#define BOOST_DETAIL_WINAPI_TIME_HPP
|
||||
|
||||
#include <boost/detail/winapi/basic_types.hpp>
|
||||
#include <boost/predef.h>
|
||||
|
||||
#ifdef BOOST_HAS_PRAGMA_ONCE
|
||||
#pragma once
|
||||
@@ -31,10 +33,15 @@ namespace winapi {
|
||||
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime
|
||||
using ::GetSystemTimeAsFileTime;
|
||||
#endif
|
||||
#if BOOST_PLAT_WINDOWS_DESKTOP
|
||||
using ::FileTimeToLocalFileTime;
|
||||
#endif
|
||||
using ::GetSystemTime;
|
||||
using ::SystemTimeToFileTime;
|
||||
|
||||
#if BOOST_PLAT_WINDOWS_DESKTOP
|
||||
using ::GetTickCount;
|
||||
#endif
|
||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||
using ::GetTickCount64;
|
||||
#endif
|
||||
@@ -70,8 +77,10 @@ extern "C" {
|
||||
__declspec(dllimport) int WINAPI
|
||||
SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
|
||||
FILETIME_* lpFileTime);
|
||||
#if BOOST_PLAT_WINDOWS_DESKTOP
|
||||
__declspec(dllimport) DWORD_ WINAPI
|
||||
GetTickCount();
|
||||
#endif
|
||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||
__declspec(dllimport) ULONGLONG_ WINAPI
|
||||
GetTickCount64();
|
||||
|
Reference in New Issue
Block a user