# Function Reference

# _WinAPI_ShellCreateDirectory

Creates a new file system folder

#include <WinAPIShellEx.au3>
_WinAPI_ShellCreateDirectory ( $sFilePath [, $hParent = 0 [, $tSecurity = 0]] )

## Parameters

$sFilePath | The fully qualified path of the directory.
$hParent | [optional] A handle to a parent window.
$tSecurity | [optional] $tagSECURITY_ATTRIBUTES structure with the directory's security attribute. If this parameter is 0 (Default), no security attributes are set.

## Return Value

Success: | 1.
Failure: | 0 and sets the @error flag to non-zero, @extended flag may contain the system error code.

## Remarks

If one or more of the intermediate folders do not exist, they are created as well. Also, this function verifies that the
files in the directory will be visible if the path is a network path to deal with network drivers which might have a
limited but unknown maximum path length.

## See Also

Search SHCreateDirectoryEx in MSDN Library.