shlwapi

shlwapi に含まれる便利な API

Windows2000sp4/VC++6sp6/SDK

shlwapi

// SHell Light Weight API
#include <shlwapi.h>
#pragma comment( lib, "shlwapi.lib" )


// Path〜
LPTSTR  PathAddBackslash( LPTSTR pszPath );
BOOL    PathAddExtension( LPTSTR pszPath, LPCTSTR pszExt );
BOOL    PathAppend( LPTSTR pszPath, LPCTSTR pMore );
LPTSTR  PathBuildRoot( LPTSTR pszRoot, int iDrive );
BOOL    PathCanonicalize( LPTSTR pszBuf, LPCTSTR pszPath );
LPTSTR  PathCombine( LPTSTR pszDest, LPCTSTR pszDir, LPCTSTR pszFile );
BOOL    PathCompactPath( HDC hDC, LPTSTR pszPath, UINT dx );
BOOL    PathCompactPathEx( LPTSTR pszOut, LPCTSTR pszSrc, UINT cchMax, DWORD dwFlags );
int     PathCommonPrefix( LPCTSTR pszFile1, LPCTSTR pszFile2, LPTSTR achPath );
BOOL    PathFileExists( LPCTSTR pszPath );
LPTSTR  PathFindExtension( LPCTSTR pszPath );
LPTSTR  PathFindFileName( LPCTSTR pszPath );
LPTSTR  PathFindNextComponent( LPCTSTR pszPath );
BOOL    PathFindOnPath( LPTSTR pszPath, LPCTSTR* ppszOtherDirs );
LPTSTR  PathGetArgs( LPCTSTR pszPath );
LPCTSTR PathFindSuffixArray( LPCTSTR pszPath, const LPCTSTR* apszSuffix, int iArraySize );
BOOL    PathIsLFNFileSpec( LPCTSTR lpName );
UINT    PathGetCharType( UCHAR ch );
int     PathGetDriveNumber( LPCTSTR pszPath );
BOOL    PathIsDirectory( LPCTSTR pszPath );
BOOL    PathIsDirectoryEmpty( LPCTSTR pszPath );
BOOL    PathIsFileSpec( LPCTSTR pszPath );
BOOL    PathIsPrefix( LPCTSTR pszPrefix, LPCTSTR pszPath );
BOOL    PathIsRelative( LPCTSTR pszPath );
BOOL    PathIsRoot( LPCTSTR pszPath );
BOOL    PathIsSameRoot( LPCTSTR pszPath1, LPCTSTR pszPath2 );
BOOL    PathIsUNC( LPCTSTR pszPath );
BOOL    PathIsNetworkPath( LPCTSTR pszPath );
BOOL    PathIsUNCServer( LPCTSTR pszPath );
BOOL    PathIsUNCServerShare( LPCTSTR pszPath );
BOOL    PathIsContentType( LPCTSTR pszPath, LPCTSTR pszContentType );
BOOL    PathIsURL( LPCTSTR pszPath );
BOOL    PathMakePretty( LPTSTR pszPath );
BOOL    PathMatchSpec( LPCTSTR pszFile, LPCTSTR pszSpec );
int     PathParseIconLocation( LPTSTR pszIconFile );
void    PathQuoteSpaces( LPTSTR lpsz );
BOOL    PathRelativePathTo( LPTSTR pszPath, LPCTSTR pszFrom, DWORD dwAttrFrom, LPCTSTR pszTo, DWORD dwAttrTo );
void    PathRemoveArgs( LPTSTR pszPath );
LPTSTR  PathRemoveBackslash( LPTSTR pszPath );
void    PathRemoveBlanks( LPTSTR pszPath );
void    PathRemoveExtension( LPTSTR pszPath );
BOOL    PathRemoveFileSpec( LPTSTR pszPath );
BOOL    PathRenameExtension( LPTSTR pszPath, LPCTSTR pszExt );
BOOL    PathSearchAndQualify( LPCTSTR pszPath, LPTSTR pszBuf, UINT cchBuf );
void    PathSetDlgItemPath( HWND hDlg, int id, LPCTSTR pszPath );
LPTSTR  PathSkipRoot( LPCTSTR pszPath );
void    PathStripPath( LPTSTR pszPath );
BOOL    PathStripToRoot( LPTSTR pszPath );
void    PathUnquoteSpaces( LPTSTR lpsz );
BOOL    PathMakeSystemFolder( LPCTSTR pszPath );
BOOL    PathUnmakeSystemFolder( LPCTSTR pszPath );
BOOL    PathIsSystemFolder( LPCTSTR pszPath, DWORD dwAttrb );
void    PathUndecorate( LPTSTR pszPath );
BOOL    PathUnExpandEnvStrings( LPCTSTR pszPath, LPTSTR pszBuf, UINT cchBuf );


// Url〜
int     UrlCompare( LPCTSTR psz1, LPCTSTR psz2, BOOL fIgnoreSlash );
HRESULT UrlCombine( LPCTSTR pszBase, LPCTSTR pszRelative, LPTSTR pszCombined, LPDWORD pcchCombined, DWORD dwFlags );
HRESULT UrlCanonicalize( LPCTSTR pszUrl, LPTSTR pszCanonicalized, LPDWORD pcchCanonicalized, DWORD dwFlags );
BOOL    UrlIsOpaque( LPCTSTR pszURL );
BOOL    UrlIsNoHistory( LPCTSTR pszURL );
#define UrlIsFileUrl( pszURL )   UrlIs( pszURL, URLIS_FILEURL )
BOOL    UrlIs( LPCTSTR pszUrl, URLIS UrlIs );
LPCTSTR UrlGetLocation( LPCTSTR psz1 );
HRESULT UrlUnescape( LPTSTR pszUrl, LPTSTR pszUnescaped, LPDWORD pcchUnescaped, DWORD dwFlags );
HRESULT UrlEscape( LPCTSTR pszUrl, LPTSTR pszEscaped, LPDWORD pcchEscaped, DWORD dwFlags );
HRESULT UrlCreateFromPath( LPCTSTR pszPath, LPTSTR pszUrl, LPDWORD pcchUrl, DWORD dwFlags );
HRESULT PathCreateFromUrl( LPCTSTR pszUrl, LPTSTR pszPath, LPDWORD pcchPath, DWORD dwFlags );
HRESULT UrlHash( LPCTSTR pszUrl, LPBYTE pbHash, DWORD cbHash );
HRESULT UrlGetPart( LPCTSTR pszIn, LPTSTR pszOut, LPDWORD pcchOut, DWORD dwPart, DWORD dwFlags );
HRESULT UrlApplyScheme( LPCTSTR pszIn, LPTSTR pszOut, LPDWORD pcchOut, DWORD dwFlags );
HRESULT HashData( LPBYTE pbData, DWORD cbData, LPBYTE pbHash, DWORD cbHash );



[HOME]-[RTL]
Copyright© 2006 RAPT.