小问题
FileDispatch(PDEVICE_OBJECT Device_Object, IN PIRP Irp )
{
PIO_STACK_LOCATION currentIrpStack = IoGetCurrentIrpStackLocation(Irp);
.................
if(Device_Object->Characteristics == FILE_REMOVABLE_MEDIA)//这里我有疑问!!
...........
}
在if处,我不知道:Device_Object->Characteristics和currentIrpStack->DeviceObject->Characteristics 有什么不同?
请问我应该使用哪一个?