SHCreateDirectoryEx

[DllImport("shell32.dll", CharSet = CharSet.Unicode)]
public static extern int SHCreateDirectoryEx(
   IntPtr hwnd,
   string pszPath,
   ref SECURITY_ATTRIBUTES psa
);

Microsoft documentation: Link

Last updated