Commit Graph

164 Commits

Author SHA1 Message Date
Andrey Semashev
ed10dcd02c Default to the latest Service Pack of the selected Windows version. 2017-09-24 02:24:20 +03:00
Andrey Semashev
7da1309feb Use NTDDI_VERSION to enable RtlCaptureStackBackTrace only since WinXP SP1.
This change was made in response to https://github.com/boostorg/winapi/pull/56
by James E. King, III <jking@apache.org>.

Relates to https://github.com/boostorg/winapi/issues/50.
2017-09-24 02:21:47 +03:00
Andrey Semashev
8c5e9211bd Added WaitForMultipleObjectsEx and WaitForMultipleObjectsEx.
The new functions are needed for Boost.Thread.
2017-08-31 13:51:59 +03:00
Andrey Semashev
3785dcf5ce Revert "Revert "Use BOOST_MAY_ALIAS from Boost.Config.""
This reverts commit 54c4cfc30f.
2017-08-26 15:13:39 +03:00
Andrey Semashev
54c4cfc30f Revert "Use BOOST_MAY_ALIAS from Boost.Config."
This reverts commit 747442645d.

This is temporary until BOOST_MAY_ALIAS in Boost.Config is merged to master.
2017-07-30 15:42:54 +03:00
Andrey Semashev
747442645d Use BOOST_MAY_ALIAS from Boost.Config. 2017-07-29 17:01:30 +03:00
Andrey Semashev
6a30df890f Added FILE_FLAG constants. 2017-07-06 17:36:01 +03:00
Andrey Semashev
394b67982a Fixed compatibility with MSVC 8 when using windows.h. 2017-06-25 13:26:10 +03:00
Andrey Semashev
af39db6544 Added RtlCaptureStackBackTrace. 2017-06-24 17:37:32 +03:00
Andrey Semashev
9a315f48e3 Fixed compatibility with MinGW. 2017-06-24 17:32:55 +03:00
Vinnie Falco
1ab3751d57 Add debugapi.hpp 2017-05-23 10:10:00 -07:00
Andrey Semashev
c3e8180be5 Trim trailing spaces. 2017-02-17 13:42:33 +03:00
Andrey Semashev
b017fd8866 Added wrappers for CryptEnumProviders* to work aroung MinGW bugs. 2017-01-17 00:39:17 +03:00
Andrey Semashev
d1ce3b2d3f Added a workaround for CryptReleaseContext in Windows 2000
CryptReleaseContext is declared differently in MS Windows SDK 6.0A and
later when targeting Windows versions older than XP. This is not the case
in MinGW and MinGW-w64 and MSVC shipped with their own Windows SDK.

Also added BOOST_WINAPI_DEFINE_VERSION_MACROS config macro which allows
Boost.WinAPI to define Windows SDK version macros even when it is not
configured to include windows.h. This can help to ensure that the user
targets the same Windows version as Boost.
2017-01-17 00:29:18 +03:00
Andrey Semashev
f2f956c593 Only enable IsProcessInJob from Windows XP on up. 2017-01-17 00:28:45 +03:00
Andrey Semashev
e46a1b7710 Disabled an MSVC warning about a nameless struct/union. 2016-11-06 21:38:09 +03:00
Andrey Semashev
6dfe926d03 Nonessential. 2016-10-08 19:04:05 +03:00
Andrey Semashev
711a6bbd45 Added GetFileInformationByHandle function. 2016-10-08 19:00:24 +03:00
Ion Gaztañaga
5272ee7ac3 Pragma message is only available for GCC > 4.3 2016-08-09 00:11:10 +02:00
Andrey Semashev
8a1c94ae26 Removed WAIT_TIMEOUT_ as it duplicates the constant in wait.hpp. 2016-07-18 02:55:35 +03:00
Andrey Semashev
b1f1e5d6fd Added a header with Windows error codes. 2016-07-16 22:02:15 +03:00
Andrey Semashev
b31a496273 Added OpenProcess function and access rights constants. 2016-07-16 21:00:41 +03:00
Andrey Semashev
0fe7a608d4 Added job management APIs. 2016-07-16 20:43:52 +03:00
Andrey Semashev
c4329b8574 Fixed formatting, added comments, removed unused include. 2016-07-16 20:25:14 +03:00
Andrey Semashev
3f92fc8cb6 Merge pull request #29 from klemens-morgenstern/environment
added environment functions
2016-07-16 20:15:40 +03:00
Andrey Semashev
75f6eaf107 Added CompareObjectHandles function (Windows 10). 2016-07-16 20:10:22 +03:00
klemens-morgenstern
ee8731f988 added environment functions 2016-06-19 22:38:14 +02:00
Andrey Semashev
0a45ad46d0 Added ReadFile declaration. 2016-05-29 19:38:32 +03:00
Andrey Semashev
6d6041085a Merge branch 'master' of github.com:boostorg/winapi 2016-03-07 21:02:27 +03:00
Andrey Semashev
7ce91eab22 Added the WC_ERR_INVALID_CHARS constant. 2016-03-07 21:01:27 +03:00
Jorge Lodos
f2f7b93528 Prevent warning "nonstandard extension used : nameless struct/union" in MSVC 2016-02-29 19:00:09 -06:00
Jorge Lodos
2b79eb53b3 GCC complains with:
....../boost/detail/winapi/error_handling.hpp:97:46: warning: conversion to 'boost::detail::winapi::WORD_ {aka short unsigned int}' from 'int' may alter its value [-Wconversion]
2016-02-23 17:13:21 -06:00
Andrey Semashev
0f17094a79 Minor fix for AreFileApisANSI function declaration. 2016-02-22 22:44:51 +03:00
Andrey Semashev
4260a662d2 Merge remote-tracking branch 'jlodos/feature/add-AreFileApisANSI' into develop 2016-02-22 22:39:10 +03:00
Andrey Semashev
9e07973e31 Added some access permission flags for semaphores, events and file mappings. 2016-02-22 22:37:59 +03:00
Jorge Lodos
80cefbc39a Adding AreFileApisANSI 2016-02-18 20:42:04 -06:00
Andrey Semashev
4ccb77aab2 Fixed missing includes. Added missing constants and support for older Windows SDKs and MinGW. 2016-02-14 19:09:19 +03:00
Jorge Lodos
fc32850225 Support for dbghelp 2016-02-14 19:09:19 +03:00
Andrey Semashev
2905041e65 Added declaration of MapViewOfFile. 2016-02-14 19:08:49 +03:00
Andrey Semashev
15eaf20041 Fixed CreateFileMapping signature. 2016-02-14 16:05:26 +03:00
Andrey Semashev
394ce3e20f Extracted page protection flags to a separate header as they can be used with APIs other than file mapping. Fixed compilation with MinGW, MinGW-w64 and older Windows SDKs. 2016-02-14 03:59:32 +03:00
Andrey Semashev
9b8f6ac721 Merge remote-tracking branch 'jlodos/feature/file-constants-and-functions' into develop 2016-02-14 03:10:08 +03:00
Jorge Lodos
9ee49e1d1b Fix incorrect return value 2016-02-13 17:57:22 -06:00
Jorge Lodos
dbb0b56f0f Removing separated constant files 2016-02-13 14:28:00 -06:00
Andrey Semashev
067deb7267 Added character code conversion functions. 2016-02-13 21:22:42 +03:00
Jorge Lodos
2801e2ce9f New functions 2016-02-12 16:23:32 -06:00
Jorge Lodos
480fd8c6e9 New constants 2016-02-12 16:21:17 -06:00
Andrey Semashev
74a16ae6d8 Fixed compilation on MinGW and MSVC 8. 2016-01-31 20:14:45 +03:00
Andrey Semashev
3c20e186cd Added process management, pipe and some shell APIs.
Renamed headers that are named after Windows SDK functions to the lower_case_with_underscores equivalents. The old headers are kept for backward compatibility with deprecation warnings. The reason for the change is that the previous naming scheme was vulnerable to function macros defined by Windows SDK - some include directives could be broken. Further additions would be complicated; this has been discovered with GetSystemDirectory.hpp.

Extracted MAX_PATH and a few other common constants to a new header limits.hpp. This header should contain generally useful constants. Extracted OVERLAPPED to a separate header.

Process and thread id accessor functions extracted to separate headers.

Added priority class constants and setter/getter functions. Added handle info accessors. Added ShowWindow and related constants.

The original patch for this commit was provided in https://github.com/boostorg/winapi/pull/16.
2016-01-31 19:27:58 +03:00
Andrey Semashev
1b8d36f330 Yet more access right constants. 2016-01-23 17:36:35 +03:00
Andrey Semashev
9af6e9e11b Added more access right constants. 2016-01-23 17:00:07 +03:00
Marcel Raad
77dbce88b4 Fix compilation with WIN32_LEAN_AND_MEAN
If WIN32_LEAN_AND_MEAN is defined, wincrypt.h is not included in windows.h.
Always explicitly including wincrypt.h when BOOST_USE_WINDOWS_H is defined
doesn't hurt anyway, as this is where the functions used here are defined.
2016-01-13 16:53:58 +01:00
Andrey Semashev
463842aa4a Added a workaround for missing TryAcquireSRWLock* functions in Windows SDK 6.0A. 2015-12-20 21:55:25 +03:00
Andrey Semashev
784aaccf09 Move inclusion of Boost.Config to the end of the header so that it can't accidentally set Windows API version. 2015-12-20 20:38:23 +03:00
Andrey Semashev
196b86aa8d Added BOOST_DETAIL_WINAPI_CONDITION_VARIABLE_INIT macro. 2015-12-20 16:22:40 +03:00
Andrey Semashev
27b1ac8139 Added workarounds for GetProcAddress being a macro on Windows CE. It also accepts function names as LPCWSTR instead of LPCSTR. The workaround is to use winapi::get_proc_address instead of GetProcAddress everywhere. 2015-12-20 15:40:13 +03:00
Andrey Semashev
9ecf1c1b17 Update dll.hpp with WinAPI declarations required by Boost.DLL library. 2015-10-28 22:16:43 +03:00
Andrey Semashev
5219596a72 Trim trailing spaces. 2015-10-06 22:48:19 +03:00
Andrey Semashev
1d01c418fc Added Windows API version macros for Windows 10. 2015-10-06 22:25:50 +03:00
Andrey Semashev
4f7d318b87 Changes for better compatibility with MainGW and MinGW-w64. 2015-07-12 15:22:12 +03:00
Andrey Semashev
2b10966e18 Fixed incorrect linkage for WinAPI declarations. 2015-06-29 22:45:59 +03:00
Andrey Semashev
e5ce23de1d Added CreateXXXEx API for synchronization primitives. 2015-06-29 22:35:51 +03:00
Andrey Semashev
b8e2ad5eb5 Changed the defaul target API to XP for MSVC8 as its Windows SDK fore not support Vista. 2015-06-29 21:37:16 +03:00
Andrey Semashev
cadb4b5ba6 Fixed CreateMutexW signature. 2015-06-28 13:33:45 +03:00
Andrey Semashev
1f4fd300f6 Changed the default target Windows API version to Vista. 2015-06-21 19:15:23 +03:00
Andrey Semashev
bea461e692 Compilation fixes. Added tests to verify headers correctness. 2015-06-21 18:37:37 +03:00
Andrey Semashev
0a3294283d Fixing WinAPI declarations. 2015-06-20 22:11:43 +03:00
Andrey Semashev
bc6b350aa9 Fixing WinAPI declarations. 2015-06-18 00:26:17 +03:00
Andrey Semashev
924d5226c8 Fixing WinAPI declarations. 2015-06-15 22:01:18 +03:00
Andrey Semashev
cd1f9ce236 Fixing WinAPI declarations. 2015-06-13 21:26:28 +03:00
Andrey Semashev
4a5ce10300 Fixing WinAPI declarations. 2015-06-12 21:30:40 +03:00
Andrey Semashev
f8c705e179 Fixing WinAPI declarations. 2015-06-10 00:12:27 +03:00
Andrey Semashev
8e220c516d Fixing WinAPI declarations. 2015-06-08 22:42:57 +03:00
Andrey Semashev
f2e7ac34fc Fixing WinAPI declarations. 2015-06-07 23:57:26 +03:00
Anton Polukhin
78b242be76 Fix a typo in type name (this fix is related to https://github.com/boostorg/uuid/pull/2) 2014-10-01 20:08:28 +04:00
Andrey Semashev
e7c3a828a9 Use intrin.h for MSVC 8. Restore #pragma intrinsic for MSVC 7.1.
Also removed some code duplication.
2014-08-23 19:19:22 +04:00
Antony Polukhin
9b46b0cf1a Add CryptEnumProvidersA 2014-07-28 14:49:05 +04:00
Antony Polukhin
4bd4195072 Added some of the Crypt functions 2014-07-28 14:43:28 +04:00
Peter Dimov
8587d8cda6 Merged revision(s) 85994 from trunk: Add BOOST_USE_INTRIN_H support; remove #pragma intrinsic, not needed and not supported on Intel. Refs #6646. Refs #7318. Refs #9174.
[SVN r86416]
2014-06-09 20:46:33 +04:00
Andrey Semashev
567d9a5a11 Merged latest changes from trunk.
[SVN r85988]
2014-06-09 20:46:33 +04:00
Peter Dimov
3a0381e73e Merged revision(s) [80935] from trunk: Fix the _WIN32_WCE >= 0x600 case.
[SVN r80960]
2014-06-09 20:46:33 +04:00
Vicente J. Botet Escriba
0ddb49b7d4 Thread: Updated from trunk 1.52
[SVN r80473]
2014-06-09 20:46:33 +04:00
Peter Dimov
b17e65edbe Merge [75396] to release. Fixes #4678.
[SVN r75757]
2014-06-09 20:46:33 +04:00
Anthony Williams
5efc0d5191 Merged fix for issue #4849 from trunk (fix boost.thread on mingw64) (authorized by rene)
[SVN r72657]
2014-06-09 20:46:33 +04:00
Peter Dimov
f2784b098c Merge [57958] to release. Fixes #3378.
[SVN r58069]
2014-06-09 20:46:33 +04:00
Peter Dimov
195cd84e7b Merged 43316, 43317, 43318, 43733, 43782, 43873, 43888, 43916, 43950, 44055, 44056, 44058, 44073, 44074, 44132, 44137, 44138, 44140, 44344 from trunk to release
[SVN r47339]
2014-06-09 20:46:33 +04:00
Beman Dawes
4faebf3eaa config, detail, filesystem, system, tools, at 41278.
[SVN r41316]
2014-06-09 20:46:33 +04:00
Peter Dimov
ea6ee9bd6f Windows CE patch by Michael Fink
[SVN r33986]
2014-06-09 20:46:33 +04:00
Anthony Williams
1202be7810 Win32 implementation of boost::timed_mutex
[SVN r33272]
2014-06-09 20:46:33 +04:00
Anthony Williams
23f349906e Moved BOOST_INTERLOCKED_READ stuff into its own header
[SVN r31098]
2014-06-09 20:46:33 +04:00
Anthony Williams
e46b817b2d Removed :: qualification on _Interlocked functions
[SVN r31097]
2014-06-09 20:46:32 +04:00
Anthony Williams
0a9c3b04f2 Added BOOST_INTERLOCKED_EXCHANGE_POINTER in all branches of the #if
[SVN r31012]
2014-06-09 20:46:32 +04:00
Anthony Williams
452aebbef5 Added InterlockedExchangePointer
[SVN r31010]
2014-06-09 20:46:32 +04:00
Anthony Williams
6c0287959f InterlockedCompareExchangePointer is only intrinsic on 64 bit platforms, otherwise it's just a synonym for InterlockedCompareExchange
[SVN r30951]
2014-06-09 20:46:32 +04:00
Anthony Williams
096ecd3ec3 Added interlocked compare/exchange for pointers, and interlocked_read for values and pointers
[SVN r30941]
2014-06-09 20:46:32 +04:00
Anthony Williams
86c50368d3 New version of call_once for win32
[SVN r30847]
2014-06-09 20:46:32 +04:00
Peter Dimov
73c5a1f285 <intrin.h> appears broken.
[SVN r27737]
2014-06-09 20:46:32 +04:00
Peter Dimov
7fccf74af7 Split sp_counted_base into no threads (nt), win32 lock-free (w32) and pthreads (pt)
[SVN r27729]
2014-06-09 20:46:32 +04:00
Steve Gates
595d85472b Updating macro for detecting the Windows Runtime based on accepted changes adding a Boost.Predef. 2014-06-05 23:13:03 +04:00
Steve Gates
5babaa7388 Updating macro for detecting WinRT to BOOST_WINDOWS_RUNTIME based on code review feedback. 2014-06-05 23:13:03 +04:00