| description | Learn more about: ATL Path functions | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | ATL Path functions | ||||||||||||||||||||||||||||||||||||
| ms.date | 11/04/2016 | ||||||||||||||||||||||||||||||||||||
| helpviewer_keywords |
|
||||||||||||||||||||||||||||||||||||
| f1_keywords |
|
||||||||||||||||||||||||||||||||||||
| ms.assetid | d1ec2b8d-7ec7-43ea-90dd-0a740d2a742b |
ATL provides the ATLPath class for manipulating paths in the form of CPathT. This code can be found in atlpath.h.
| Class | Description |
|---|---|
| CPathT Class | This class represents a path. |
| Typedef | Description |
|---|---|
CPath |
A specialization of CPathT using CString. |
CPathA |
A specialization of CPathT using CStringA. |
CPathW |
A specialization of CPathT using CStringW. |
| Function | Description |
|---|---|
| ATLPath::AddBackslash | This function is an overloaded wrapper for PathAddBackslash. |
| ATLPath::AddExtension | This function is an overloaded wrapper for PathAddExtension. |
| ATLPath::Append | This function is an overloaded wrapper for PathAppend. |
| ATLPath::BuildRoot | This function is an overloaded wrapper for PathBuildRoot. |
| ATLPath::Canonicalize | This function is an overloaded wrapper for PathCanonicalize. |
| ATLPath::Combine | This function is an overloaded wrapper for PathCombine. |
| ATLPath::CommonPrefix | This function is an overloaded wrapper for PathCommonPrefix. |
| ATLPath::CompactPath | This function is an overloaded wrapper for PathCompactPath. |
| ATLPath::CompactPathEx | This function is an overloaded wrapper for PathCompactPathEx. |
| ATLPath::FileExists | This function is an overloaded wrapper for PathFileExists. |
| ATLPath::FindExtension | This function is an overloaded wrapper for PathFindExtension. |
| ATLPath::FindFileName | This function is an overloaded wrapper for PathFindFileName. |
| ATLPath::GetDriveNumber | This function is an overloaded wrapper for PathGetDriveNumber. |
| ATLPath::IsDirectory | This function is an overloaded wrapper for PathIsDirectory. |
| ATLPath::IsFileSpec | This function is an overloaded wrapper for PathIsFileSpec. |
| ATLPath::IsPrefix | This function is an overloaded wrapper for PathIsPrefix. |
| ATLPath::IsRelative | This function is an overloaded wrapper for PathIsRelative. |
| ATLPath::IsRoot | This function is an overloaded wrapper for PathIsRoot. |
| ATLPath::IsSameRoot | This function is an overloaded wrapper for PathIsSameRoot. |
| ATLPath::IsUNC | This function is an overloaded wrapper for PathIsUNC. |
| ATLPath::IsUNCServer | This function is an overloaded wrapper for PathIsUNCServer. |
| ATLPath::IsUNCServerShare | This function is an overloaded wrapper for PathIsUNCServerShare. |
| ATLPath::MakePretty | This function is an overloaded wrapper for PathMakePretty. |
| ATLPath::MatchSpec | This function is an overloaded wrapper for PathMatchSpec. |
| ATLPath::QuoteSpaces | This function is an overloaded wrapper for PathQuoteSpaces. |
| ATLPath::RelativePathTo | This function is an overloaded wrapper for PathRelativePathTo. |
| ATLPath::RemoveArgs | This function is an overloaded wrapper for PathRemoveArgs. |
| ATLPath::RemoveBackslash | This function is an overloaded wrapper for PathRemoveBackslash. |
| ATLPath::RemoveBlanks | This function is an overloaded wrapper for PathRemoveBlanks. |
| ATLPath::RemoveExtension | This function is an overloaded wrapper for PathRemoveExtension. |
| ATLPath::RemoveFileSpec | This function is an overloaded wrapper for PathRemoveFileSpec. |
| ATLPath::RenameExtension | This function is an overloaded wrapper for PathRenameExtension. |
| ATLPath::SkipRoot | This function is an overloaded wrapper for PathSkipRoot. |
| ATLPath::StripPath | This function is an overloaded wrapper for PathStripPath. |
| ATLPath::StripToRoot | This function is an overloaded wrapper for PathStripToRoot. |
| ATLPath::UnquoteSpaces | This function is an overloaded wrapper for PathUnquoteSpaces. |
Header: atlpath.h
This function is an overloaded wrapper for PathAddBackslash.
inline char* AddBackslash(char* pszPath);
inline wchar_t* AddBackslash(wchar_t* pszPath);See PathAddBackslash for details.
This function is an overloaded wrapper for PathAddExtension.
inline BOOL AddExtension(char* pszPath, const char* pszExtension);
inline BOOL AddExtension(wchar_t* pszPath, const wchar_t* pszExtension);See PathAddExtension for details.
This function is an overloaded wrapper for PathAppend.
inline BOOL Append(char* pszPath, const char* pszMore);
inline BOOL Append(wchar_t* pszPath, const wchar_t* pszMore);See PathAppend for details.
This function is an overloaded wrapper for PathBuildRoot.
inline char* BuildRoot(char* pszPath, int iDrive);
inline wchar_t* BuildRoot(wchar_t* pszPath, int iDrive);See PathBuildRoot for details.
This function is an overloaded wrapper for PathCanonicalize.
inline BOOL Canonicalize(char* pszDest, const char* pszSrc);
inline BOOL Canonicalize(wchar_t* pszDest, const wchar_t* pszSrc);See PathCanonicalize for details.
This function is an overloaded wrapper for PathCombine.
inline char* Combine(
char* pszDest,
const char* pszDir,
const char* pszFile
);
inline wchar_t* Combine(
wchar_t* pszDest,
const wchar_t* pszDir,
const wchar_t* pszFile);See PathCombine for details.
This function is an overloaded wrapper for PathCommonPrefix.
inline int CommonPrefix(
const char* pszFile1,
const char* pszFile2,
char* pszDest);
inline int CommonPrefix(
const wchar_t* pszFile1,
const wchar_t* pszFile2,
wchar_t* pszDest);See PathCommonPrefix for details.
This function is an overloaded wrapper for PathCompactPath.
inline BOOL CompactPath(
HDC hDC,
char* pszPath,
UINT dx);
inline BOOL CompactPath(
HDC hDC,
wchar_t* pszPath,
UINT dx);See PathCompactPath for details.
This function is an overloaded wrapper for PathCompactPathEx.
inline BOOL CompactPathEx(
char* pszDest,
const char* pszSrc,
UINT nMaxChars,
DWORD dwFlags);
inline BOOL CompactPathEx(
wchar_t* pszDest,
const wchar_t* pszSrc,
UINT nMaxChars,
DWORD dwFlags);See PathCompactPathEx for details.
This function is an overloaded wrapper for PathFileExists.
inline BOOL FileExists(const char* pszPath);
inline BOOL FileExists(const wchar_t* pszPath);See PathFileExists for details.
This function is an overloaded wrapper for PathFindExtension.
inline char* FindExtension(const char* pszPath);
inline wchar_t* FindExtension(const wchar_t* pszPath);See PathFindExtension for details.
This function is an overloaded wrapper for PathFindFileName.
inline char* FindFileName(const char* pszPath);
inline wchar_t* FindFileName(const wchar_t* pszPath);See PathFindFileName for details.
This function is an overloaded wrapper for PathGetDriveNumber.
inline int GetDriveNumber(const char* pszPath);
inline int GetDriveNumber(const wchar_t* pszPath);See PathGetDriveNumber for details.
This function is an overloaded wrapper for PathIsDirectory.
inline BOOL IsDirectory(const char* pszPath);
inline BOOL IsDirectory(const wchar_t* pszPath);See PathIsDirectory for details.
This function is an overloaded wrapper for PathIsFileSpec.
inline BOOL IsFileSpec(const char* pszPath);
inline BOOL IsFileSpec(const wchar_t* pszPath);See PathIsFileSpec for details.
This function is an overloaded wrapper for PathIsPrefix.
inline BOOL IsPrefix(const char* pszPrefix, const char* pszPath);
inline BOOL IsPrefix(const wchar_t* pszPrefix, const wchar_t* pszPath);See PathIsPrefix for details.
This function is an overloaded wrapper for PathIsRelative.
inline BOOL IsRelative(const char* pszPath);
inline BOOL IsRelative(const wchar_t* pszPath);See PathIsRelative for details.
This function is an overloaded wrapper for PathIsRoot.
inline BOOL IsRoot(const char* pszPath);
inline BOOL IsRoot(const wchar_t* pszPath);See PathIsRoot for details.
This function is an overloaded wrapper for PathIsSameRoot.
inline BOOL IsSameRoot(const char* pszPath1, const char* pszPath2);
inline BOOL IsSameRoot(const wchar_t* pszPath1, const wchar_t* pszPath2);See PathIsSameRoot for details.
This function is an overloaded wrapper for PathIsUNC.
inline BOOL IsUNC(const char* pszPath);
inline BOOL IsUNC(const wchar_t* pszPath);See PathIsUNC for details.
This function is an overloaded wrapper for PathIsUNCServer.
inline BOOL IsUNCServer(const char* pszPath);
inline BOOL IsUNCServer(const wchar_t* pszPath);See PathIsUNCServer for details.
This function is an overloaded wrapper for PathIsUNCServerShare.
inline BOOL IsUNCServerShare(const char* pszPath);
inline BOOL IsUNCServerShare(const wchar_t* pszPath);See PathIsUNCServerShare for details.
This function is an overloaded wrapper for PathMakePretty.
inline BOOL MakePretty(char* pszPath);
inline BOOL MakePretty(wchar_t* pszPath);See PathMakePretty for details.
This function is an overloaded wrapper for PathMatchSpec.
inline BOOL MatchSpec(const char* pszPath, const char* pszSpec);
inline BOOL MatchSpec(const wchar_t* pszPath, const wchar_t* pszSpec);See PathMatchSpec for details.
This function is an overloaded wrapper for PathQuoteSpaces.
inline void QuoteSpaces(char* pszPath);
inline void QuoteSpaces(wchar_t* pszPath);See PathQuoteSpaces for details.
This function is an overloaded wrapper for PathRelativePathTo.
inline BOOL RelativePathTo(
char* pszPath,
const char* pszFrom,
DWORD dwAttrFrom,
const char* pszTo,
DWORD dwAttrTo);
inline BOOL RelativePathTo(
wchar_t* pszPath,
const wchar_t* pszFrom,
DWORD dwAttrFrom,
const wchar_t* pszTo,
DWORD dwAttrTo);See PathRelativePathTo for details.
This function is an overloaded wrapper for PathRemoveArgs.
inline void RemoveArgs(char* pszPath);
inline void RemoveArgs(wchar_t* pszPath);See PathRemoveArgs for details.
This function is an overloaded wrapper for PathRemoveBackslash.
inline char* RemoveBackslash(char* pszPath);
inline wchar_t* RemoveBackslash(wchar_t* pszPath);See PathRemoveBackslash for details.
This function is an overloaded wrapper for PathRemoveBlanks.
inline void RemoveBlanks(char* pszPath);
inline void RemoveBlanks(wchar_t* pszPath);See PathRemoveBlanks for details.
This function is an overloaded wrapper for PathRemoveExtension.
inline void RemoveExtension(char* pszPath);
inline void RemoveExtension(wchar_t* pszPath);See PathRemoveExtension for details.
This function is an overloaded wrapper for PathRemoveFileSpec.
inline BOOL RemoveFileSpec(char* pszPath);
inline BOOL RemoveFileSpec(wchar_t* pszPath);See PathRemoveFileSpec for details.
This function is an overloaded wrapper for PathRenameExtension.
inline BOOL RenameExtension(char* pszPath, const char* pszExt);
inline BOOL RenameExtension(wchar_t* pszPath, const wchar_t* pszExt);See PathRenameExtension for details.
This function is an overloaded wrapper for PathSkipRoot.
inline char* SkipRoot(const char* pszPath);
inline wchar_t* SkipRoot(const wchar_t* pszPath);See PathSkipRoot for details.
This function is an overloaded wrapper for PathStripPath.
inline void StripPath(char* pszPath);
inline void StripPath(wchar_t* pszPath);See PathStripPath for details.
This function is an overloaded wrapper for PathStripToRoot.
inline BOOL StripToRoot(char* pszPath);
inline BOOL StripToRoot(wchar_t* pszPath);See PathStripToRoot for details.
This function is an overloaded wrapper for PathUnquoteSpaces.
inline void UnquoteSpaces(char* pszPath);
inline void UnquoteSpaces(wchar_t* pszPath);See PathUnquoteSpaces for details.