2 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_NOWIDE_WINDOWS_HPP_INCLUDED
9 #define BOOST_NOWIDE_WINDOWS_HPP_INCLUDED
11 #ifdef BOOST_USE_WINDOWS_H
16 // These are function prototypes... Allow to avoid including windows.h
20 __declspec(dllimport) wchar_t* __stdcall GetEnvironmentStringsW(void);
21 __declspec(dllimport) int __stdcall FreeEnvironmentStringsW(wchar_t*);
22 __declspec(dllimport) wchar_t* __stdcall GetCommandLineW(void);
23 __declspec(dllimport) wchar_t** __stdcall CommandLineToArgvW(const wchar_t*, int*);
24 __declspec(dllimport) unsigned long __stdcall GetLastError();
25 __declspec(dllimport) void* __stdcall LocalFree(void*);
26 __declspec(dllimport) int __stdcall SetEnvironmentVariableW(const wchar_t*, const wchar_t*);
27 __declspec(dllimport) unsigned long __stdcall GetEnvironmentVariableW(const wchar_t*, wchar_t*, unsigned long);