CreateDirectory function Null safety kernel32

int CreateDirectory(
  1. Pointer<Utf16> lpPathName,
  2. Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes

Creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory.

BOOL CreateDirectoryW(
  LPCWSTR               lpPathName,
  LPSECURITY_ATTRIBUTES lpSecurityAttributes


int CreateDirectory(Pointer<Utf16> lpPathName,
        Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes) =>
    _CreateDirectory(lpPathName, lpSecurityAttributes);