Skip to content

Latest commit

 

History

History
100 lines (80 loc) · 2.85 KB

nf-fileapifromapp-createdirectoryfromappw.md

File metadata and controls

100 lines (80 loc) · 2.85 KB
UID tech.root title ms.date targetos description req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_location api_name api_type f1_keywords helpviewer_keywords dev_langs
NF:fileapifromapp.CreateDirectoryFromAppW
fs
CreateDirectoryFromAppW
03/23/2021
Windows
Creates a new directory. The behavior of this function is identical to CreateDirector, except that this function adheres to the Universal Windows Platform app security model.
function
fileapifromapp.h
Windows 10, version 1803
apiref
Kernel32.dll
CreateDirectoryFromAppW
CreateDirectoryFromApp
DLLExport
CreateDirectoryFromAppW
fileapifromapp/CreateDirectoryFromAppW
CreateDirectoryFromAppW
fileapifromapp/CreateDirectoryFromAppW
c++

-description

Creates a new directory. The behavior of this function is identical to CreateDirectory, except that this function adheres to the Universal Windows Platform app security model.

-parameters

-param lpPathName

The path of the directory to be created.

For information about opting out of the MAX_PATH limitation without prepending "\\?\", see the "Maximum Path Length Limitation" section of Naming Files, Paths, and Namespaces for details.

-param lpSecurityAttributes

A pointer to a SECURITY_ATTRIBUTES structure. The lpSecurityDescriptor member of the structure specifies a security descriptor for the new directory. If lpSecurityAttributes is NULL, the directory gets a default security descriptor. The ACLs in the default security descriptor for a directory are inherited from its parent directory.

The target file system must support security on files and directories for this parameter to have an effect.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError. Possible errors include the following.

Return code Description
ERROR_ALREADY_EXISTS

The specified directory already exists.

ERROR_PATH_NOT_FOUND

One or more intermediate directories do not exist; this function will only create the final directory in the path.

-remarks

-see-also