CreateDirectory
CreateDirectory creates a new directory. If the underlying file system supports security on files and directories, this function applies a specified security descriptor to the new directory.
Syntax
BOOL CreateDirectory(
LPCTSTR lpPathName,
LPSECURITY_ATTRIBUTES lpSecurityAttributes
);
Parameters
lpPathName
A pointer to a null-terminated string that specifies the path of the directory to be created.
There is a default string size limit for paths of 260 characters. This limit is related to how CreateDirectory parses paths.
lpSecurityAttributes
Ignored.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.. To get extended error information, call GetLastError.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
windows.h | rtkrnl.lib |
See Also: