2 * Copyright 2017 Vinnie Falco
4 * Distributed under the Boost Software License, Version 1.0.
5 * See http://www.boost.org/LICENSE_1_0.txt
8 #ifndef BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
9 #define BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
11 #include <boost/winapi/basic_types.hpp>
12 #include <boost/winapi/config.hpp>
14 #ifdef BOOST_HAS_PRAGMA_ONCE
18 #if !defined( BOOST_USE_WINDOWS_H )
21 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
22 BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI
23 IsDebuggerPresent(BOOST_WINAPI_DETAIL_VOID);
26 BOOST_SYMBOL_IMPORT boost::winapi::VOID_ WINAPI
27 OutputDebugStringA(boost::winapi::LPCSTR_);
29 BOOST_SYMBOL_IMPORT boost::winapi::VOID_ WINAPI
30 OutputDebugStringW(boost::winapi::LPCWSTR_);
38 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
39 using ::IsDebuggerPresent;
42 using ::OutputDebugStringA;
43 using ::OutputDebugStringW;
45 BOOST_FORCEINLINE void output_debug_string(char const* s)
47 ::OutputDebugStringA(s);
50 BOOST_FORCEINLINE void output_debug_string(wchar_t const* s)
52 ::OutputDebugStringW(s);
58 #endif // BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_