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

Function Ext2DefineDosDeviceLocal

Ext2Mgr/Ext2Pipe.cpp:263–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263BOOL Ext2DefineDosDeviceLocal(DWORD flags, CHAR *dos, CHAR *symlink)
264{
265 CHAR dosPath[] = "A:\0";
266 BOOL rc;
267
268 dosPath[0] = (CHAR)toupper(dos[0]);
269 rc = DefineDosDevice(flags, dosPath, symlink);
270 if (rc) {
271 if (flags & DDD_REMOVE_DEFINITION) {
272 Ext2DrvNotify(dosPath[0], FALSE);
273 } else {
274 Ext2DrvNotify(dosPath[0], TRUE);
275 }
276 }
277
278 return rc;
279}
280
281BOOL Ext2DefineDosDevice(DWORD flags, CHAR *dos, CHAR *symlink)
282{

Callers 1

Ext2DefineDosDeviceFunction · 0.85

Calls 1

Ext2DrvNotifyFunction · 0.70

Tested by

no test coverage detected