20#ifndef INCLUDED_SHELL_INC_INTERNAL_UTILITIES_HXX
21#define INCLUDED_SHELL_INC_INTERNAL_UTILITIES_HXX
25#if !defined WIN32_LEAN_AND_MEAN
26#define WIN32_LEAN_AND_MEAN
36#define STRSAFE_NO_DEPRECATE
83 va_start(
args, pFormat);
84 StringCchVPrintfW(buffer,
sizeof(buffer) /
sizeof(*buffer), pFormat,
args);
86 OutputDebugStringW(buffer);
::std::pair< Language_t, Country_t > LocaleSet_t
std::wstring GetResString(int ResId)
Retrieve a string from the resources of this module.
bool HasOnlySpaces(const std::wstring &String)
helper function to judge if the string is only has spaces.
std::string WStringToString(const std::wstring &String)
Convert a wstring to a string using CP_ACP.
void OutputDebugStringFormatW(LPCWSTR pFormat,...)
std::wstring UTF8ToWString(const std::string &String)
Convert a string to a wstring using CP_UTF8.
LCID LocaleSetToLCID(const LocaleSet_t &Locale)
convert LocaleSet pair into Microsoft List of Locale ID (LCID) according to ISO-639 and ISO-3166.
std::wstring getShortPathName(const std::wstring &aLongName)
convert LocaleSet pair into Windows LCID identifier.
std::wstring StringToWString(const std::string &String)
Convert a string to a wstring using CP_ACP.