Using Win32 functions in Visual FoxPro Image Gallery
Shell Lightweight Utility APIs -- Path Functions
..msdn
PathBuildRoot
PathCombine
PathCompactPathEx
PathFileExists
PathFindExtension
PathFindFileName
PathFindOnPath
PathGetDriveNumber
PathGetShortPath
PathIsDirectory
PathIsNetworkPath
PathIsRelative
PathIsRoot
PathIsURL
PathRenameExtension
PathSearchAndQualify
UrlEscape
UrlGetPart
UrlHash
UrlUnescape
Code examples:
Converting path to original case
PathSearchAndQualify
..msdn    Add comment     W32 Constants      Translate this page
Determines if a given path is correctly formatted and fully qualified.
Code examples:
Converting path to original case
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-24 13:08:58
Modified: 2011-01-24 13:10:56
Visited in last 7 days: 6
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.92.141.211)
7 sec.Function: 'PrintDlgEx'
17 sec.Function: 'GdipSetPropertyItem'
25 sec.Function: 'SetTextCharacterExtra'
33 sec.Function: 'NetUserSetInfo'
42 sec.Function: 'AppendMenu'
51 sec.Function: 'DeleteUrlCacheEntry'
1.02 min.Function: 'AVIStreamRelease'
1.18 min.Function: 'InternetOpen'
1.32 min.Function: 'SetMailslotInfo'
1.47 min.Function: 'DllInstall'
Google
Advertise here!