/* * fs primitives to simplify talking to both dos and OS/2 */ #include #include /* * get the current drive number and a map of active drives */ USHORT APIENTRY DosQCurDisk(PUSHORT pusDrvNum, PULONG pulLogDrvMap) { unsigned drivemap; _dos_getdrive((unsigned*)pusDrvNum); _dos_setdrive((unsigned)*pusDrvNum, &drivemap); *pulLogDrvMap = (unsigned long)drivemap; return 0; } /* fsQdrivenumber */