Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
LoadUserProfile
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
UnloadUserProfile
WinHelp
Code examples:
Creating a unique filename based on existing filename
PathMakeUniqueName
    Add comment     W32 Constants      Translate this page
Creates a unique path name from a template.
Code examples:
Creating a unique filename based on existing filename
Declaration:
BOOL PathMakeUniqueName(
    LPWSTR pszUniqueName,
    UINT cchMax,
    LPCWSTR pszTemplate,
    LPCWSTR pszLongPlate,
    LPCWSTR pszDir
);
FoxPro declaration:
DECLARE INTEGER PathMakeUniqueName IN shell32;
    STRING  @ pszUniqueName,;
    INTEGER   cchMax,;
    STRING    pszTemplate,;
    STRING    pszLongPlate,;
    STRING    pszDir

Parameters:
pszUniqueName
[out] A buffer that receives a null-terminated Unicode string that contains the unique path name.

cchMax
[in] The number of characters in the buffer pointed to by pszUniqueName.

pszTemplate
[in] A null-terminated Unicode string that contains a template that is used to construct the unique name.

pszLongPlate
[in] A null-terminated Unicode string that contains a template that is used to construct the unique name.

pszDir
[in] A null-terminated string that contains the directory in which the new file resides.
Return value:
Returns TRUE if successful, FALSE otherwise.
My comment:
See also PathYetAnotherMakeUniqueName function.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-03-17 10:59:03
Modified: 2003-03-17 11:01:44
Visited in last 7 days: 15
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.212.93)
10 sec.Function: 'SetPrinter'
21 sec.Function: 'GetWindowContextHelpId'
32 sec.Function: 'StrCmpC'
43 sec.Function: 'DeleteService'
2 day(s)Function: 'bind'
 Function: 'DllGetVersion'
 Function: 'FtpRenameFile'
 Function: 'SHBrowseForFolder'
 Function: 'LoadLibraryEx'
 Function: 'UnregisterClass'
Google
Advertise here!