Q: DeviceTree from OSR

I’m using DeviceTree that I downloaded from OSR while I’m developing my disk driver.
When I’m in Driver View mode (the default view mode) and highlight my driver, I am be able to see all my device objects in the Device List.
There are several columns. Device_Name, Device Object, Handle, Ptrs, Refs, Attached, FSD.
My interesting is how do you get the numbers for Handle and Refs.

I don’t think that this value come from the DEVICE_OBJECT.ReferenceCount because I’m getting diffrance value in my driver when I’m printing it and in the DeviceTree.

Any suggestions,

Ophir.

“Ophir” wrote in message news:xxxxx@ntfsd…
>I don’t think that this value come from the DEVICE_OBJECT.ReferenceCount
because I’m >getting diffrance value in my driver when I’m printing it and
in the DeviceTree.
>

Right. The ref counts displayed by DeviceTree are the OBJECT MANAGER
reference counts. Not the I/O Manager’s ref counts on the device object, as
maintained in DeviceObject->ReferenceCount.

Peter
OSR