19template<
class _Traits,
class _Ax>
20static BOOL
PathCanonicalizeA(_Inout_ std::basic_string<char, _Traits, _Ax> &sValue, _In_ LPCSTR pszPath)
22 char szBuffer[MAX_PATH + 1];
24 sValue.assign(szBuffer, bResult ? MAX_PATH : 0);
33template<
class _Traits,
class _Ax>
34static BOOL
PathCanonicalizeW(_Inout_ std::basic_string<wchar_t, _Traits, _Ax> &sValue, _In_ LPCWSTR pszPath)
36 wchar_t szBuffer[MAX_PATH + 1];
38 sValue.assign(szBuffer, bResult ? MAX_PATH : 0);
static BOOL PathCanonicalizeW(std::basic_string< wchar_t, _Traits, _Ax > &sValue, LPCWSTR pszPath)
Simplifies a path by removing navigation elements such as "." and ".." to produce a direct,...
Definition: Shell.h:34
static BOOL PathCanonicalizeA(std::basic_string< char, _Traits, _Ax > &sValue, LPCSTR pszPath)
Simplifies a path by removing navigation elements such as "." and ".." to produce a direct,...
Definition: Shell.h:20