PpvUtilIsPdo

UINT8 __stdcall PpvUtilIsPdo(_DEVICE_OBJECT *PhysicalDeviceObject){
  _DWORD *DeviceNode; 
  UINT8 result; 

  result = 0;
  if( PhysicalDeviceObject )
  {
    DeviceNode = PhysicalDeviceObject->DeviceObjectExtension->DeviceNode;
    if( DeviceNode )
    {
      if( (DeviceNode[99] & 0x20000) == 0 )
        return 1;
    }
  }
  return result;
}

Referenced by:

IovUtilIsWdmStack
VfPnpVerifyIrpStackUpward