MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2IsRemovable

Function Ext2IsRemovable

Ext2Mgr/enumDisk.cpp:3076–3094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3074
3075
3076BOOL
3077Ext2IsRemovable(PEXT2_VOLUME volume)
3078{
3079 STORAGE_BUS_TYPE busType = BusTypeAta;
3080 BOOL bRemovableMedia = FALSE;
3081
3082 if (volume && volume->Part) {
3083 busType = volume->Part->Disk->SDD.BusType;
3084 bRemovableMedia = volume->Part->Disk->SDD.RemovableMedia;
3085 }
3086
3087 if (busType == BusType1394 ||
3088 busType == BusTypeUsb ||
3089 bRemovableMedia ) {
3090 return TRUE;
3091 }
3092
3093 return FALSE;
3094}
3095
3096BOOL
3097Ext2RemoveDriveLetter(CHAR DrvLetter)

Callers 1

Ext2MountingVolumesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected