SepIsRemovableStorageDevice

UINT8 __stdcall SepIsRemovableStorageDevice(_DEVICE_OBJECT *pDeviceObject){
  unsigned int DeviceType; 
  UINT8 result; 

  result = 0;
  if( pDeviceObject )
  {
    DeviceType = pDeviceObject->DeviceType;
    if( DeviceType == 2
      || DeviceType == 31
      || DeviceType == 45
      || DeviceType == 51
      || DeviceType == 64
      || (pDeviceObject->Characteristics & 0x40001) != 0 )
    {
      return 1;
    }
  }
  return result;
}

Referenced by:

SepAdtClassifyObjectIntoSubCategory