The SchRpcCreateFolder method creates a new folder.

 HRESULT SchRpcCreateFolder(
   [in, string] const wchar_t* path,
   [in, string, unique] const wchar_t* sddl,
   [in] DWORD flags
 );

path: MUST contain the full path to be associated with a folder (section 2.3.11).

sddl: If non-NULL, MUST be a security descriptor in SDDL format as specified in [MS-DTYP].

flags: Unused, MUST be 0.

Return Values: For more information on return codes, see section 2.3.14, or Win32 Error Codes in [MS-ERREF] section 2.1.

Upon receipt of the SchRpcCreateFolder call, the server MUST:

If any errors are raised during the processing they are returned. For more information on return codes, see section 2.3.14 and Win32 Error Codes in [MS-ERREF] section 2.1.