Hi all,
Is there any way of getting different device objects from these two methods?
In summary, is there any chance of this ASSERT fail?
pDevObj = IoGetDeviceAttachmentBaseRef(pFileObj);
ASSERT(pDevObj == pFileObj->DeviceObject);
I'm also confusing about the IoGetDeviceAttachmentBaseRef help that says:
"If the given device object is not attached to a driver stack, IoGetDeviceAttachmentBaseRef returns NULL."
Assuming a device stack comprised by only one device object, the one that completes the IRP_MJ_CREATE, how could this routine return NULL?
Regards,
Fernando Roberto da Silva
DriverEntry Kernel Development
http://www.driverentry.com.br/en