Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
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
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: 31
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.20.7.65)
3 sec.Example: 'How to make a VFP form fading out when released (GDI version)'
2.22 hrs.Example: 'How to display a user-defined icon in the MessageBox dialog'
 Example: 'Setting the date and time that a file was created'
 Function: 'GdipGetMatrixElements'
Function group: 'GDI+ Matrix'
2.88 hrs.Function: 'CeDeleteRecord'
Function group: 'Remote Application Programming (RAPI)'
 Function: 'GetWindowLong'
Function group: 'Window Class'
 Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
3.57 hrs.Example: 'How to Start a Process as Another User (NT/XP/2K)'
4.25 hrs.Example: 'Displaying the associated icons and descriptions for files and folders'
 Example: 'Enumerating Performance Counters'
Google
Advertise here!