Hello,
I have a problem to translate name of device object to address of the object. I know, that this service is, for device objects, provided by IoGetDeviceObjectPointer, however, I cannot use the routine because of other circumstances.
Hence I thought of ObReferenceObjectByName. The routine seems to work fine for various types of objects, except the devices. Even though I specfiy *IoDeviceObjectType which should be the object type for devices, I get STATUS_OBJECT_TYPE_MISMATCH error code.
Had someone more success with the ObReferenceObjectByName routine applied to device objects than me? I would appreciate any kind of help.
I know that I can use my own implementation of some Object Manager routines, however, I would prefer more "documented/legitimate" way to achieve my task.
Thanks in advance
I have a problem to translate name of device object to address of the object. I know, that this service is, for device objects, provided by IoGetDeviceObjectPointer, however, I cannot use the routine because of other circumstances.
Hence I thought of ObReferenceObjectByName. The routine seems to work fine for various types of objects, except the devices. Even though I specfiy *IoDeviceObjectType which should be the object type for devices, I get STATUS_OBJECT_TYPE_MISMATCH error code.
Had someone more success with the ObReferenceObjectByName routine applied to device objects than me? I would appreciate any kind of help.
I know that I can use my own implementation of some Object Manager routines, however, I would prefer more "documented/legitimate" way to achieve my task.
Thanks in advance