IO control call IOCTL_STORAGE_GET_DEVICE_NUMBER returns struct with device number for any volume. to use: 1. create the handle for volume; 2-call this service and you will get the disk number.
Для NT можно решить обратную задачу, т.е. по букве диска определить раздел.
Ведь \DosDevices\C: есть симлинк на соответсвующий \Device\Harddisk\Partition...
а значит перебором по всем буквам решается и прямая задача :-)18.12.03 11:48 Автор: LLL <Алексей> Статус: Member
IO control call IOCTL_STORAGE_GET_DEVICE_NUMBER returns struct with device number for any volume. to use: 1. create the handle for volume; 2-call this service and you will get the disk number.