|
[分享]恭喜mstwugui 喜得贵子
恭喜恭喜恭喜。 |
|
[求助]MmMapIoSpace部分physicaladdress不能map
为什么我的就是ok的呢? PHYSICAL_ADDRESS kk={0x01000000,0}; PVOID mm=MmMapIoSpace(kk,0x1000,MmNonCached); if(mm) { DebugPrint("mm ok"); } else { DebugPrint("mm failed"); } |
|
[求助]MmMapIoSpace部分physicaladdress不能map
SE使用的是很奇怪的方式去做的,没有去细究它。 r/w every thing就是使用我上面贴出来的那段代码做的。 winio也是用同样的代码,不过有一个小小的地方不一样,导致winio有时候不能成功的映射物理内存到虚拟内存。 |
|
[求助]MmMapIoSpace部分physicaladdress不能map
你怎么调用的,贴代码出来吧 |
|
[求助]MmMapIoSpace部分physicaladdress不能map
#define MEMORY_DEVICE_NAME L"\\Device\\PhysicalMemory" NTSTATUS MapMemoryToUser(ULONG PhysicalOffset,ULONG CommitSize,PVOID* MapAddress) { OBJECT_ATTRIBUTES ObjectAttributes,ob2; UNICODE_STRING DestinationString; HANDLE SectionHandle=NULL; NTSTATUS status; RtlInitUnicodeString(&DestinationString,MEMORY_DEVICE_NAME); ObjectAttributes.ObjectName =&DestinationString; ObjectAttributes.Length =sizeof(OBJECT_ATTRIBUTES); ObjectAttributes.RootDirectory =NULL; ObjectAttributes.Attributes =OBJ_KERNEL_HANDLE; ObjectAttributes.SecurityDescriptor =NULL; ObjectAttributes.SecurityQualityOfService =NULL; status=ZwOpenSection(&SectionHandle, //OUT PHANDLE SectionHandle SECTION_QUERY|SECTION_MAP_READ|SECTION_MAP_WRITE, //IN ACCESS_MASK DesiredAccess &ObjectAttributes //IN POBJECT_ATTRIBUTES ObjectAttributes ); PVOID BaseAddress=NULL; SIZE_T ViewSize=CommitSize; LARGE_INTEGER PhysicalAddress = {PhysicalOffset, 0}; if(NT_SUCCESS(status)) { DebugPrint("ZwOpenSection成功"); status=ObReferenceObjectByHandle(SectionHandle, //IN HANDLE Handle SECTION_QUERY|SECTION_MAP_READ|SECTION_MAP_WRITE, //IN ACCESS_MASK DesiredAccess NULL, //IN POBJECT_TYPE ObjectType OPTIONAL KernelMode, //IN KPROCESSOR_MODE AccessMode (PVOID*)&ob2, //OUT PVOID *Object NULL //OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL ); if(NT_SUCCESS(status)) { DebugPrint("ObReferenceObjectByHandle成功"); status=ZwMapViewOfSection(SectionHandle, //IN HANDLE SectionHandle NtCurrentProcess(), //IN HANDLE ProcessHandle &BaseAddress, //IN OUT PVOID *BaseAddress 0, //IN ULONG ZeroBits CommitSize, //IN ULONG CommitSize &PhysicalAddress, //IN OUT PLARGE_INTEGER SectionOffset OPTIONAL &ViewSize, //IN OUT PSIZE_T ViewSize ViewShare, //IN SECTION_INHERIT InheritDisposition NULL, //IN ULONG AllocationType PAGE_READWRITE //IN ULONG Protect ); if(NT_SUCCESS(status)) DebugPrint("ZwMapViewOfSection成功"); else DebugPrint("ZwMapViewOfSection失败"); ZwClose(SectionHandle); *MapAddress=BaseAddress; return status; } else { DebugPrint("ObReferenceObjectByHandle失败"); ZwClose(SectionHandle); *MapAddress=NULL; return status; } } else { DebugPrint("ZwOpenSection失败"); *MapAddress=NULL; return status; } } |
|
[求助]MmMapIoSpace部分physicaladdress不能map
lz说了这个是物理地址。 |
|
[求助]请问大侠如何去除文件某些属性啊?
暴汗如雨 |
|
[求助]VC中实现一个接口方法后资源的释放
CBase * pInst[3]; pInst[0] = new CUnA(); pInst[1] = new CUnB(); pInst[2] = new CUnC(); CString str[3]; pInst[i]->RunFunc(str[i], str[(i+1)%2]); delete[] pInst 怎么样 |
|
[原创]初写一个OD的小插件[Anit Game Safe]
怪不得,我经常这样 |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值