 |
SHCreateDirectory Add comment W32 Constants Translate this page |
 |
 |
|
Creates a folder. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-03-10 17:41:08 | | Modified: | 2011-04-05 16:34:28 | Visited in last 7 days: 31 |