nim_duilib/base/win32/path_util.h

36 lines
978 B
C
Raw Normal View History

2019-04-19 17:19:57 +08:00
// utilities for path operation
#ifndef BASE_WIN32_PATH_UTIL_H_
#define BASE_WIN32_PATH_UTIL_H_
#include "base/base_config.h"
#if defined(OS_WIN)
#include "base/base_export.h"
#include <string>
namespace nbase
{
namespace win32
{
BASE_EXPORT std::wstring GetModulePathName(HMODULE module_handle);
BASE_EXPORT std::wstring GetModuleDirectory(HMODULE module_handle);
BASE_EXPORT std::wstring GetModuleName(HMODULE module_handle);
BASE_EXPORT std::wstring GetCurrentModuleName();
BASE_EXPORT std::wstring GetCurrentModulePathName();
BASE_EXPORT std::wstring GetCurrentModuleDirectory();
BASE_EXPORT std::wstring GetWindowsDir();
BASE_EXPORT std::wstring GetSystemDir();
BASE_EXPORT std::wstring GetTempDir();
BASE_EXPORT std::wstring GetLocalAppDataDir(HANDLE token = NULL);
BASE_EXPORT bool CreateDirectoryRecursively(const wchar_t *full_dir);
BASE_EXPORT bool DeleteDirectoryRecursively(const wchar_t *full_dir);
}
}
#endif // OS_WIN
#endif // BASE_WIN32_PATH_UTIL_H_