directory_management.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // directory_management.hpp --------------------------------------------------------------//
  2. // Copyright 2010 Vicente J. Botet Escriba
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. #ifndef BOOST_DETAIL_WINAPI_DIRECTORY_MANAGEMENT_HPP
  6. #define BOOST_DETAIL_WINAPI_DIRECTORY_MANAGEMENT_HPP
  7. #include <boost/detail/winapi/basic_types.hpp>
  8. #include <boost/detail/winapi/security.hpp>
  9. #ifdef BOOST_HAS_PRAGMA_ONCE
  10. #pragma once
  11. #endif
  12. namespace boost
  13. {
  14. namespace detail
  15. {
  16. namespace winapi
  17. {
  18. #if defined( BOOST_USE_WINDOWS_H )
  19. using ::CreateDirectory;
  20. using ::CreateDirectoryA;
  21. using ::GetTempPathA;
  22. using ::RemoveDirectoryA;
  23. #else
  24. extern "C" {
  25. __declspec(dllimport) int __stdcall
  26. CreateDirectory(LPCTSTR_, LPSECURITY_ATTRIBUTES_*);
  27. __declspec(dllimport) int __stdcall
  28. CreateDirectoryA(LPCTSTR_, interprocess_security_attributes*);
  29. __declspec(dllimport) int __stdcall
  30. GetTempPathA(unsigned long length, char *buffer);
  31. __declspec(dllimport) int __stdcall
  32. RemoveDirectoryA(LPCTSTR_);
  33. }
  34. #endif
  35. }
  36. }
  37. }
  38. #endif // BOOST_DETAIL_WINAPI_THREAD_HPP