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 folder
SHCreateDirectory
    Add comment     W32 Constants      Translate this page
Creates a folder.
Code examples:
Creating a folder
Declaration:
int SHCreateDirectory(
    HWND hwnd,
    LPCWSTR pszPath
);
FoxPro declaration:
DECLARE INTEGER SHCreateDirectory IN shell32;
    INTEGER hwnd,;
    STRING  pszPath

Parameters:
hwnd
[in] Handle to a parent window. This parameter can be set to NULL if no user interface is displayed.

pszPath
[in] Pointer to a NULL-terminated Unicode string that contains the fully-qualified path of the directory.
Return value:
Returns ERROR_SUCCESS (0) if successful.
Usage:
? SHCreateDirectory( 0,;
    STRCONV( "c:\temp1\aa", 5 ) ) && Unicode
My comment:
For setting security attributes on a new folder, use SHCreateDirectoryEx.

This function creates directory even if one or more intermediate directories on the path do not exist.

See also: CreateDirectory
Word Index links for the SHCreateDirectory :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-03-10 17:41:08
Modified: 2011-04-05 16:34:28
Visited in last 7 days: 16
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 (23.20.86.177)
2 sec.Function: 'WinHttpCrackUrl'
10 sec.Function: 'ShellAbout'
18 sec.Function: 'waveOutGetErrorText'
25 sec.Function: 'StrCpy'
28 sec.Function: 'send'
31 sec.Function: 'SetTextColor'
34 sec.Function: 'RegOpenKeyEx'
36 sec.Function: 'UrlGetPart'
39 sec.Function: 'Shell_NotifyIcon'
42 sec.Function: 'StrToInt'
Google
Advertise here!