 |
PathSearchAndQualify ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Determines if a given path is correctly formatted and fully qualified. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL PathSearchAndQualify(
__in LPCTSTR pcszPath,
__out LPTSTR pszFullyQualifiedPath,
__in UINT cchFullyQualifiedPath
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER PathSearchAndQualify IN Shlwapi;
STRING pcszPath,;
STRING @pszFullyQualifiedPath,;
INTEGER cchFullyQualifiedPath
|
 |
 |
 |
| Parameters: |
 |
pcszPath [in]
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to search.
pszFullyQualifiedPath [out]
A pointer to a null-terminated string of length MAX_PATH that contains the path to be referenced.
cchFullyQualifiedPath [in]
The size of the buffer pointed to by pszFullyQualifiedPath, in characters. |
 |
 |
| Return value: |
 |
| Returns TRUE if the path is qualified, or FALSE otherwise. |
 |
 |
| Usage: |
 |
#DEFINE MAX_PATH 260
FUNCTION GetQualifiedPath( cStr As String ) As String
LOCAL cBuffer
cBuffer = REPLICATE(CHR(0), MAX_PATH)
PathSearchAndQualify( m.cStr, @cBuffer, MAX_PATH)
RETURN STRTRAN(m.cBuffer, CHR(0), "")
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-24 13:08:58 | | Modified: | 2011-01-24 13:10:56 | Visited in last 7 days: 12 |