Determine Boot Disk
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash
-
Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash
"GetWindowsDirectory()" provides the path where windows is installed. From path you can retrive the drive letter (first character of the path). Through the drive letter you find out the physical drive number of the disk by using DeviceIOControl() and IOCTL_STORAGE_GET_DEVICE_NUMBER
-
Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash