Rearding Drive letters of the partitions.
Hi all,
I am stucked in a problem. How can I get the drive letter of my last partition. Is there any API or any other way to know which drive letter is assigned to my last partition?
I have the partition number i.e. by applying IOCTL_DISK_GET_DRIVE_LAYOUT i will get the partition number, But how to retrieve its drive letter.
Please help!!!!
Thanks.
Re: Rearding Drive letters of the partitions.
But how are you getting a handle to device (to this partition)?
Re: Rearding Drive letters of the partitions.
Well I am using the HANDLE of the Entire Hard disk using IOCTL_DISK_GET_DRIVE_LAYOUT. Through which with the partition entries I can get the partition number of my last partition of my disk.
Re: Rearding Drive letters of the partitions.
Re: Rearding Drive letters of the partitions.
Sorry but this link is not working i think, its not opening. I didnt get you what you trying to say.
Re: Rearding Drive letters of the partitions.
Re: Rearding Drive letters of the partitions.
Is there any win32 API to find the drive letter or I have to search my problem in those 93000 solutions from that link?
Re: Rearding Drive letters of the partitions.
Quote:
Originally Posted by mayank_3103
Is there any win32 API to find the drive letter or I have to search my problem in those 93000 solutions from that link?
Didn't you try to search for you_ particular_problem (something like for IOCTL_DISK_GET_DRIVE_LAYOUT or just for Drive letter) among "those 93000 solutions"? :confused:
Re: Rearding Drive letters of the partitions.
thanks VictorN for that link.
I have got something in that,I will try then let you know.
Thanks.