chrome/browser/system_monitor/portable_device_watcher_win.cc
// Returns true if the portable device is mounted on a volume. |device_name|
// specifies the name of the device.
Returns true if the portable device is mounted on a volume. |device_name|
specifies the name of the device.
Returns true if the portable device is mounted on a volume . |device_name| specifies the name of the device .
bool IsVolumeMountedPortableDevice(const string16& device_name) {
  return ((device_name.length() >= 2) && (device_name[1] == L':') &&
      (((device_name[0] >= L'A') && (device_name[0] <= L'Z')) ||
          ((device_name[0] >= L'a') && (device_name[0] <= L'z'))));
}
bool IsVolumeMountedPortableDevice ( const string16 & device_name ) { return ( ( device_name . length ( ) >= 2 ) && ( device_name [ 1 ] == L' ' ) && ( ( ( device_name [ 0 ] >= L' ' ) && ( device_name [ 0 ] <= L' ' ) ) || ( ( device_name [ 0 ] >= L' ' ) && ( device_name [ 0 ] <= L' ' ) ) ) ) ; }
Returns true if the portable device is mounted on a volume.
Returns true if the portable device is mounted on a volume .
// If the device is a volume mounted device, |device_name| will be // the volume name.