Boost.Nowide
windows.hpp
1 //
2 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOST_NOWIDE_WINDOWS_HPP_INCLUDED
9 #define BOOST_NOWIDE_WINDOWS_HPP_INCLUDED
10 
11 #include <stddef.h>
12 
13 #ifdef BOOST_NOWIDE_USE_WINDOWS_H
14 #include <windows.h>
15 #else
16 
17 //
18 // These are function prototypes... Allow to to include windows.h
19 //
20 extern "C" {
21 
22 __declspec(dllimport) wchar_t* __stdcall GetEnvironmentStringsW(void);
23 __declspec(dllimport) int __stdcall FreeEnvironmentStringsW(wchar_t *);
24 __declspec(dllimport) wchar_t* __stdcall GetCommandLineW(void);
25 __declspec(dllimport) wchar_t** __stdcall CommandLineToArgvW(wchar_t const *,int *);
26 __declspec(dllimport) unsigned long __stdcall GetLastError();
27 __declspec(dllimport) void* __stdcall LocalFree(void *);
28 __declspec(dllimport) int __stdcall SetEnvironmentVariableW(wchar_t const *,wchar_t const *);
29 __declspec(dllimport) unsigned long __stdcall GetEnvironmentVariableW(wchar_t const *,wchar_t *,unsigned long);
30 
31 }
32 
33 #endif
34 
35 
36 
37 #endif
38 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4