Boost.Nowide
|
00001 // 00002 // Copyright (c) 2012 Artyom Beilis (Tonkikh) 00003 // 00004 // Distributed under the Boost Software License, Version 1.0. (See 00005 // accompanying file LICENSE_1_0.txt or copy at 00006 // http://www.boost.org/LICENSE_1_0.txt) 00007 // 00008 #ifndef BOOST_NOWIDE_WINDOWS_HPP_INCLUDED 00009 #define BOOST_NOWIDE_WINDOWS_HPP_INCLUDED 00010 00011 #include <stddef.h> 00012 00013 #ifdef BOOST_NOWIDE_USE_WINDOWS_H 00014 #include <windows.h> 00015 #else 00016 00017 // 00018 // These are function prototypes... Allow to to include windows.h 00019 // 00020 extern "C" { 00021 00022 __declspec(dllimport) wchar_t* __stdcall GetEnvironmentStringsW(void); 00023 __declspec(dllimport) int __stdcall FreeEnvironmentStringsW(wchar_t *); 00024 __declspec(dllimport) wchar_t* __stdcall GetCommandLineW(void); 00025 __declspec(dllimport) wchar_t** __stdcall CommandLineToArgvW(wchar_t const *,int *); 00026 __declspec(dllimport) unsigned long __stdcall GetLastError(); 00027 __declspec(dllimport) void* __stdcall LocalFree(void *); 00028 __declspec(dllimport) int __stdcall SetEnvironmentVariableW(wchar_t const *,wchar_t const *); 00029 __declspec(dllimport) unsigned long __stdcall GetEnvironmentVariableW(wchar_t const *,wchar_t *,unsigned long); 00030 00031 } 00032 00033 #endif 00034 00035 00036 00037 #endif 00038 00039 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4