AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

SHCreateDirectoryEx

Creates a new file system folder.

VB4-32,5,6
Declare Function SHCreateDirectoryEx Lib "shell32" Alias "SHCreateDirectoryExA" (ByVal hwnd As Long, ByVal pszPath As String, ByVal psa As Any) As Long

VB.NET
System.IO.Directory.CreateDirectory

Operating Systems Supported
Requires Windows 2000 or later; Win9x/ME: Not supported

Library
Shell32

Parameter Information
· hwnd
[in] Handle to a parent window. This parameter can be set to NULL if no user interface will be displayed.

· pszPath
[in] Pointer to a string with the fully qualified path of the directory.

· psa
[in] Pointer to a SECURITY_ATTRIBUTES structure with the directory's security attribute. Set this parameter to NULL if no security attributes need to be set.

Return Values
Returns ERROR_SUCCESS if successful. If the operation fails, one of the following error codes can be returned.
ERROR_BAD_PATHNAME The pszPath parameter was set to a relative path.
ERROR_FILENAME_EXCED_RANGE The path pointed to by pszPath is too long.
ERROR_FILE_EXISTS The directory exists.
ERROR_ALREADY_EXISTS The directory exists.
ERROR_CANCELLED The user canceled the operation.

Examples

Related Functions

VB.NET Example

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/