设为首页 加入收藏

TOP

NT路径,DOS路径和Device路径互相转换(三)
2019-08-30 06:12:36 】 浏览:91
Tags:路径 DOS Device 互相 转换
E_STRING strBuff
= { 0 }; std::wstring dosPath = L"C:\\WINDOWS\\system32\\drivers"; std::wstring devicePath = L"\\Device\\HarddiskVolume4\\123.txt"; PUNICODE_STRING pNtPath = new UNICODE_STRING; GetWindowsDirectory(szWindowsDirectory, ARRAYSIZE(szWindowsDirectory)); status = DosPathToNtPath((wchar_t*)dosPath.c_str(), pNtPath); if (NT_SUCCESS(status)) { status = NtPathToDosPath(pNtPath, DosPathBuffer); SafeDeletePoint(pNtPath); } DeviceDosPathToNtPath((wchar_t*)devicePath.c_str(), szNtPath); RtlInitUnicodeString(&strBuff, szNtPath); getchar(); return 0; system("pause"); return 0; }

 

首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇windows10远程桌面连接身份验证错.. 下一篇anaconda 环境新建/删除/拷贝 jup..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目