23template<
class _Traits,
class _Ax>
24static BOOL
PathCanonicalizeA(_Inout_ std::basic_string<char, _Traits, _Ax> &sValue, _In_ LPCSTR pszPath)
29 char szBuffer[MAX_PATH + 1];
31 sValue.assign(szBuffer, bResult ? MAX_PATH : 0);
40template<
class _Traits,
class _Ax>
41static BOOL
PathCanonicalizeW(_Inout_ std::basic_string<wchar_t, _Traits, _Ax> &sValue, _In_ LPCWSTR pszPath)
45 wchar_t szBuffer[MAX_PATH + 1];
47 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:41
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:24