Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.14 KB

File metadata and controls

57 lines (37 loc) · 1.14 KB

Home

Function name : SHCreateDirectory

Group: Shell Functions - Library: shell32


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.


Comments:

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.