能力值:
( LV12,RANK:420 )
|
-
-
2 楼
object-0x18 :object_header ->objecttype(or objecttypeindex in win7)
|
能力值:
( LV9,RANK:380 )
|
-
-
3 楼
POBJECT_HEADER ObjectHeader;
PVOID ReferencedObject;
Status = ObReferenceObjectByHandle(Handle, DesiredAccess, ObjectType, AccessMode, &ReferencedObject, HandleInformation);
if (NT_SUCCESS(Status))
{
ObjectHeader = OBJECT_TO_OBJECT_HEADER(ReferencedObject);
if (ObjectHeader->Type == ObjectType) //是文件对象
{
DbgPrint("file object name: %wZ\n",&(ObjectHeader->Type->Name));
}
搞定,感谢MJ
|
能力值:
( LV9,RANK:380 )
|
-
-
4 楼
已经搞定 结贴 ~~
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
不是有个参数是ObjectType吗,难道它是闹着玩的
|
能力值:
( LV9,RANK:610 )
|
-
-
6 楼
参数中那个ObjectType似乎可以是NULL吧,取返回的对象判断比较好
|
能力值:
( LV9,RANK:380 )
|
-
-
7 楼
嗯,确实需要判断下是否为NULL的情况 :)
多谢各位提示
|
|
|