참조: http://msdn.microsoft.com/en-us/library/bb773559(VS.85).aspx
Shell Path Handling Functions
This section describes the Windows Shell path handling functions. The programming elements explained in this documentation are exported by Shlwapi.dll and defined in Shlwapi.h and Shlwapi.lib.
In this section
Topic | Description |
---|---|
Adds a backslash to the end of a string to create the correct syntax for a path. If the source path already has a trailing backslash, no backslash will be added. |
|
Adds a file name extension to a path string. |
|
Appends one path to the end of another. |
|
Creates a root path from a given drive number. |
|
Removes elements of a file path according to special strings inserted into that path. |
|
Concatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements. |
|
Compares two paths to determine if they share a common prefix. A prefix is one of these types: "C:\\", ".", "..", "..\\". |
|
Truncates a file path to fit within a given pixel width by replacing path components with ellipses. |
|
Truncates a path to fit within a certain number of characters by replacing path components with ellipses. |
|
Converts a file URL to a Microsoft MS-DOS path. |
|
Creates a path from a file URL. |
|
Determines whether a path to a file system object such as a file or directory is valid. |
|
Searches a path for an extension. |
|
Searches a path for a file name. |
|
Parses a path and returns the portion of that path that follows the first backslash. |
|
Searches for a file. |
|
Determines whether a given file name has one of a list of suffixes. |
|
Finds the command line arguments within a given path. |
|
Determines the type of character in relation to a path. |
|
Searches a path for a drive letter within the range of 'A' to 'Z' and returns the corresponding drive number. |
|
Determines if a file's registered content type matches the specified content type. This function obtains the content type for the specified file type and compares that string with the pszContentType. The comparison is not case-sensitive. |
|
Verifies that a path is a valid directory. |
|
Determines whether a specified path is an empty directory. |
|
Searches a path for any path-delimiting characters (for example, ':' or '\' ). If there are no path-delimiting characters present, the path is considered to be a File Spec path. |
|
Determines if a file is an HTML file. The determination is made based on the content type that is registered for the file's extension. |
|
Determines whether a file name is in long format. |
|
Determines whether a path string represents a network resource. |
|
Searches a path to determine if it contains a valid prefix of the type passed by pszPrefix. A prefix is one of these types: "C:\\", ".", "..", "..\\". |
|
Searches a path and determines if it is relative. |
|
Parses a path to determine if it is a directory root. |
|
Compares two paths to determine if they have a common root component. |
|
Determines if an existing folder contains the attributes that make it a system folder. Alternately, this function indicates if certain attributes qualify a folder to be a system folder. |
|
Determines if the string is a valid Universal Naming Convention (UNC) for a server and share path. |
|
Determines if a string is a valid UNC for a server path only. |
|
Determines if a string is a valid UNC share path, \\server\share. |
|
Tests a given string to determine if it conforms to a valid URL format. |
|
Converts a path to all lowercase characters to give the path a consistent appearance. |
|
Gives an existing folder the proper attributes to become a system folder. |
|
Searches a string using a MS-DOS wildcard match type. |
|
Matches a file name from a path against one or more file name patterns. |
|
Parses a file location string that contains a file location and icon index, and returns separate values. |
|
Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks. |
|
Creates a relative path from one file or folder to another. |
|
Removes any arguments from a given path. |
|
Removes the trailing backslash from a given path. |
|
Removes all leading and trailing spaces from a string. |
|
Removes the file name extension from a path, if one is present. |
|
Removes the trailing file name and backslash from a path, if they are present. |
|
Replaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string. |
|
Determines if a given path is correctly formatted and fully qualified. |
|
Sets the text of a child control in a window or dialog box, using PathCompactPath to ensure the path fits in the control. |
|
Parses a path, ignoring the drive letter or UNC server/share path elements. |
|
Removes the path portion of a fully qualified path and file. |
|
Removes all parts of the path except for the root information. |
|
Removes the decoration from a path string. |
|
Replaces certain folder names in a fully-qualified path with their associated environment string. |
|
Removes the attributes from a folder that make it a system folder. This folder must actually exist in the file system. |
|
Removes quotes from the beginning and end of a path. |
|
Checks a bind context to see if it is safe to bind to a particular component object. |
|
Determines a scheme for a specified URL string, and returns a string with an appropriate prefix. |
|
Converts a URL string into canonical form. |
|
When provided with a relative URL and its base, returns a URL in canonical form. |
|
Makes a case-sensitive comparison of two URL strings. |
|
Converts a MS-DOS path to a canonicalized URL. |
|
Converts characters in a URL that might be altered during transport across the Internet ("unsafe" characters) into their corresponding escape sequences. |
|
A macro that converts space characters into their corresponding escape sequence. |
|
Attempts to correct a URL whose protocol identifier is incorrect. For example, |
|
Retrieves the location from a URL. |
|
Accepts a URL string and returns a specified part of that URL. |
|
Hashes a URL string. |
|
Tests whether a URL is a specified type. |
|
Tests a URL to determine if it is a file URL. |
|
Returns whether a URL is a URL that browsers typically do not include in navigation history. |
|
Returns whether a URL is opaque. |
|
Converts escape sequences back into ordinary characters. |
|
Converts escape sequences back into ordinary characters and overwrites the original string. |
'삽질' 카테고리의 다른 글
[펌] ORA-00054: 리소스가 사용 중이어서 NOWAIT가 지정되었거나 시간 초과가 만료된 상태로 획득합니다. 오류..처리. (1) | 2012.02.06 |
---|---|
[펌]VC++ 경로제어 함수들 (0) | 2012.02.04 |
TableSpace와 관련된 DataDictionary View (0) | 2012.02.03 |
[펌]테이블/ 테이블스페이스별 사용량 확인 (0) | 2012.02.03 |
ImageSafer... Image Protection (1) | 2011.11.17 |
댓글을 달아 주세요