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

Function Ext2UpdateDrvLetter

Ext2Mgr/enumDisk.cpp:4403–4427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4401}
4402
4403VOID
4404Ext2UpdateDrvLetter(
4405 PEXT2_LETTER drvLetter,
4406 PCHAR devPath
4407 )
4408{
4409 CHAR dosPath[] = "A:\0";
4410 BOOL rc = 0;
4411
4412 if (drvLetter->bUsed) {
4413 return;
4414 }
4415
4416 dosPath[0] = drvLetter->Letter;
4417 rc = Ext2DefineDosDevice(DDD_RAW_TARGET_PATH,
4418 dosPath, devPath);
4419
4420 if (rc) {
4421 Ext2DefineDosDevice (
4422 DDD_RAW_TARGET_PATH|
4423 DDD_REMOVE_DEFINITION|
4424 DDD_EXACT_MATCH_ON_REMOVE,
4425 dosPath, devPath);
4426 }
4427}
4428
4429BOOL
4430Ext2AssignDrvLetter(

Callers 2

Ext2NotifyVolumePointFunction · 0.85
AddMountPointMethod · 0.85

Calls 1

Ext2DefineDosDeviceFunction · 0.85

Tested by

no test coverage detected