调用IRtlDirectory 接口
IRtlSystemIsolationLayer *pSystem = NULL;
RtlGetSystem(0,NULL, &pSystem);
LUNICODE_STRING dirName, ntDirName, newDir;
RtlInitLUnicodeString(&dirName, L"c:\\tools");
RtlInitLUnicodeString(&newDir, L"newDir");
RtlConvertWin32FilePathToNtFilePath(&dirName, &ntDirName);
IRtlDirectory *pDir = NULL, *pNewDir=NULL;
pSystem->OpenFilesystemDirectory(1, 0x12019f, ntDirName, 3,0x4021, &pDir,NULL);
//unsigned long, trace
//unsigned long, flags
//_LUNICODE_STRING const &,
//unsigned long, shareAccess
//unsigned long, openOptions
//IRtlDirectory **, 创建的接口对象
//unsigned long * 返回值
SimpleCreateDirectory(pDir, &newDir,&pNewDir);
LUNICODE_STRING getDirname ;
pDir->GetName(1, &getDirname);
WCHAR* pszDirname = NULL;
ConvertLUnicodeStringToNullTerminatedString(&getDirname, &pszDirname);
printf("%ws\n",pszDirname);