From 2905041e65ab9fa705aa098efa583fc84bb8bf97 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 14 Feb 2016 19:08:49 +0300 Subject: [PATCH] Added declaration of MapViewOfFile. --- include/boost/detail/winapi/file_mapping.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/detail/winapi/file_mapping.hpp b/include/boost/detail/winapi/file_mapping.hpp index 8440077..7dd29a9 100644 --- a/include/boost/detail/winapi/file_mapping.hpp +++ b/include/boost/detail/winapi/file_mapping.hpp @@ -51,6 +51,14 @@ OpenFileMappingW( boost::detail::winapi::BOOL_ bInheritHandle, boost::detail::winapi::LPCWSTR_ lpName); +BOOST_SYMBOL_IMPORT boost::detail::winapi::LPVOID_ WINAPI +MapViewOfFile( + boost::detail::winapi::HANDLE_ hFileMappingObject, + boost::detail::winapi::DWORD_ dwDesiredAccess, + boost::detail::winapi::DWORD_ dwFileOffsetHigh, + boost::detail::winapi::DWORD_ dwFileOffsetLow, + boost::detail::winapi::SIZE_T_ dwNumberOfBytesToMap); + BOOST_SYMBOL_IMPORT boost::detail::winapi::LPVOID_ WINAPI MapViewOfFileEx( boost::detail::winapi::HANDLE_ hFileMappingObject, @@ -112,6 +120,7 @@ const DWORD_ SEC_IMAGE_NO_EXECUTE_ = (SEC_IMAGE_ | SEC_NOCACHE_); using ::OpenFileMappingA; #endif using ::OpenFileMappingW; +using ::MapViewOfFile; using ::MapViewOfFileEx; using ::FlushViewOfFile; using ::UnmapViewOfFile;