| 4259 | } |
| 4260 | |
| 4261 | BOOL |
| 4262 | Ext2RemoveDrvLetter( |
| 4263 | PEXT2_LETTER drvLetter |
| 4264 | ) |
| 4265 | { |
| 4266 | CHAR drvPath[] = "A:\\\0"; |
| 4267 | CHAR dosPath[] = "A:\0"; |
| 4268 | |
| 4269 | BOOL rc = FALSE; |
| 4270 | |
| 4271 | if (!drvLetter->bUsed) { |
| 4272 | return TRUE; |
| 4273 | } |
| 4274 | |
| 4275 | dosPath[0] = drvPath[0] = drvLetter->Letter; |
| 4276 | rc = Ext2DefineDosDevice ( |
| 4277 | DDD_RAW_TARGET_PATH| |
| 4278 | DDD_REMOVE_DEFINITION| |
| 4279 | DDD_EXACT_MATCH_ON_REMOVE, |
| 4280 | dosPath, drvLetter->SymLink); |
| 4281 | DeleteVolumeMountPoint(drvPath); |
| 4282 | |
| 4283 | if (!rc) { |
| 4284 | return FALSE; |
| 4285 | } |
| 4286 | |
| 4287 | return TRUE; |
| 4288 | } |
| 4289 | |
| 4290 | CHAR |
| 4291 | Ext2QueryRegistryMountPoint ( |
no test coverage detected