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

Function Ext2RemoveMountPoint

Ext2Mgr/enumDisk.cpp:4840–4862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4838}
4839
4840VOID
4841Ext2RemoveMountPoint(
4842 PEXT2_LETTER drvLetter,
4843 BOOL bPermanent
4844 )
4845{
4846 CHAR drvPath[] = "A:\\\0";
4847 CHAR dosPath[] = "A:\0";
4848
4849 dosPath[0] = drvPath[0] = drvLetter->Letter;
4850
4851 Ext2DefineDosDevice (
4852 DDD_RAW_TARGET_PATH|
4853 DDD_REMOVE_DEFINITION|
4854 DDD_EXACT_MATCH_ON_REMOVE,
4855 dosPath, drvLetter->SymLink);
4856 if (bPermanent) {
4857 DeleteVolumeMountPoint(drvPath);
4858 }
4859
4860 Ext2CleanDrvLetter(drvLetter);
4861 Ext2QueryDrvLetter(drvLetter);
4862}
4863
4864BOOL
4865Ext2RefreshVolumePoint(

Callers 3

DriverChangeNotifyMethod · 0.85
OnOKMethod · 0.85

Calls 3

Ext2DefineDosDeviceFunction · 0.85
Ext2CleanDrvLetterFunction · 0.85
Ext2QueryDrvLetterFunction · 0.85

Tested by

no test coverage detected