Creates a new directory.
#include <nks/dirio.h> int NXDirCreate ( NXPathCtx_t pathCtx, const void *pathname, void *reserved, NXPathCtx_t *newPathCtx);
(IN) Specifies a file system path context. Along with the pathname parameter, it specifies the directory to create.
(IN) Points to a null-terminated Unicode or ASCII string, which specifies the name of the directory to create. Each of the pathname components must already exist or NXDirCreate fails.
(IN) Is currently reserved. Pass zero.
(OUT) Points to a handle to the newly created directory. To free the handle, call NXFreePathContext.
If successful, returns 0, and in the newPathCtx parameter, an open file descriptor. Otherwise, returns one of the following error codes and -1 in the newPathCtx parameter:
If a path context exists for a directory, it does not guarantee the stability of that directory.