摘要: //如果要做到掉电后仍然可以继续向下操作,可以记录文件的位置重新映射 NTSTATUS status; UNICODE_STRING strFileSrc = RTL_CONSTANT_STRING(L"\\??\\C:\\win7旗舰版.iso");//3.11G UNICODE_STRING s... 阅读全文
posted @ 2014-11-13 20:25 QQ76211822 阅读(320) 评论(0) 推荐(0) 编辑
摘要: NTSTATUS status; UNICODE_STRING strFileSrc = RTL_CONSTANT_STRING(L"\\??\\C:\\网络调试工具.exe");//几十kb UNICODE_STRING strFileDest = RTL_CONSTANT_STRING(L"\\... 阅读全文
posted @ 2014-11-13 20:24 QQ76211822 阅读(261) 评论(0) 推荐(0) 编辑
摘要: //枚举串口 NTSTATUS status; HANDLE hKey = NULL; OBJECT_ATTRIBUTES oa; UNICODE_STRING strPath = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\HARDWARE\\DEVICE... 阅读全文
posted @ 2014-11-13 20:23 QQ76211822 阅读(313) 评论(0) 推荐(0) 编辑
摘要: NTSTATUS status; HANDLE hKey = NULL; OBJECT_ATTRIBUTES oa; UNICODE_STRING strPath = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\HARDWARE\\DEVICEMAP\\SE... 阅读全文
posted @ 2014-11-13 20:22 QQ76211822 阅读(221) 评论(0) 推荐(0) 编辑
摘要: OBJECT_ATTRIBUTES oa; FILE_NETWORK_OPEN_INFORMATION fnoi; UNICODE_STRING strPath = RTL_CONSTANT_STRING(L"\\??\\E:\\安装软件\\win7旗舰版.iso"); LARGE_INTEGER... 阅读全文
posted @ 2014-11-13 20:21 QQ76211822 阅读(495) 评论(0) 推荐(0) 编辑
摘要: UNICODE_STRING str = {0}; wchar_t strInfo[] = {L"马上就是光棍节了"}; str.Buffer = (PWCHAR)ExAllocatePoolWithTag(NonPagedPool, ArrayLength, 'MY'); str.Length =... 阅读全文
posted @ 2014-11-13 20:20 QQ76211822 阅读(310) 评论(0) 推荐(0) 编辑
摘要: VOID ThreadStart(_In_ PVOID StartContext){ PWCHAR str = (PWCHAR)StartContext; MySleep(10);//延时10ms KdPrint(("%ws\n", str)); ExFreePool(str); PsTermin... 阅读全文
posted @ 2014-11-13 20:20 QQ76211822 阅读(327) 评论(0) 推荐(0) 编辑
摘要: #define Delay_One_MicroSecond (-10)#define Delay_One_MilliSecond (Delay_One_MicroSecond * 1000)void MySleep(LONG msec){ LARGE_INTEGER li; li.QuadPart ... 阅读全文
posted @ 2014-11-13 20:19 QQ76211822 阅读(277) 评论(0) 推荐(0) 编辑
摘要: HANDLE hFile; OBJECT_ATTRIBUTES oa; IO_STATUS_BLOCK iosb; LARGE_INTEGER li; UNICODE_STRING strPath = RTL_CONSTANT_STRING(L"\\??\\E:\\123.txt"); UNICOD... 阅读全文
posted @ 2014-11-13 20:18 QQ76211822 阅读(197) 评论(0) 推荐(0) 编辑
摘要: #define ArrayLength 260void MyGetLocalTime(){ LARGE_INTEGER li_system; LARGE_INTEGER li_Local; char strTime[ArrayLength] = {0}; ANSI_STRING as; TIME_F... 阅读全文
posted @ 2014-11-13 20:17 QQ76211822 阅读(291) 评论(0) 推荐(0) 编辑