19template<
class _Traits,
class _Ax>
20static BOOL
PathCanonicalizeA(_Inout_ std::basic_string<char, _Traits, _Ax> &sValue, _In_ LPCSTR pszPath)
25 char szBuffer[MAX_PATH + 1];
27 sValue.assign(szBuffer, bResult ? MAX_PATH : 0);
36template<
class _Traits,
class _Ax>
37static BOOL
PathCanonicalizeW(_Inout_ std::basic_string<wchar_t, _Traits, _Ax> &sValue, _In_ LPCWSTR pszPath)
41 wchar_t szBuffer[MAX_PATH + 1];
43 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:37
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