Q about SetVolumeMountPoint

Hi,

I have a question about SetVolumeMountPoint() which is an API of W2K.

To call this API, I must know Unique Volume Name. To get Unique
Volume Name I must know Drive Letter of the partition. But I only
know Disk Number and Partition Number which have not been assigned
a Drive Letter, how can I do.

MSDN provides a sample, in that sample, first assigns a temporary
Drive Letter then gets the Unique Volume Name. I think it not a
good sample, and I do not plan to use a temporary Drive Letter.

Is there anyone can give me any advices?

Thanks in advance!


Best Regards,
Steve Huang

Hi steve
You can assign permanent drive letters but it is undocumented.
Look at the diskkey article in sysinternals site
http://www.sysinternals.com/diskkey.htm

regards
jeseem
mailto:xxxxx@hotmail.com
http://www.nesttech.com

----- Original Message -----
From: “Steve Huang”
To: “NT Developers Interest List”
Sent: Monday, August 14, 2000 3:18 AM
Subject: [ntdev] Q about SetVolumeMountPoint

> Hi,
>
> I have a question about SetVolumeMountPoint() which is an API of W2K.
>
> To call this API, I must know Unique Volume Name. To get Unique
> Volume Name I must know Drive Letter of the partition. But I only
> know Disk Number and Partition Number which have not been assigned
> a Drive Letter, how can I do.
>
> MSDN provides a sample, in that sample, first assigns a temporary
> Drive Letter then gets the Unique Volume Name. I think it not a
> good sample, and I do not plan to use a temporary Drive Letter.
>
> Is there anyone can give me any advices?
>
> Thanks in advance!
>
> —
> Best Regards,
> Steve Huang
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>

This is not relevant to Win2K, which the original poster was inquiring
about.

The correct approach probably involves using the SetupDi* routines.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Jeseem [mailto:xxxxx@hotmail.com]
Sent: Monday, August 14, 2000 9:26 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Q about SetVolumeMountPoint

Hi steve
You can assign permanent drive letters but it is undocumented.
Look at the diskkey article in sysinternals site
http://www.sysinternals.com/diskkey.htm

regards
jeseem
mailto:xxxxx@hotmail.com
http://www.nesttech.com

----- Original Message -----
From: “Steve Huang”
To: “NT Developers Interest List”
Sent: Monday, August 14, 2000 3:18 AM
Subject: [ntdev] Q about SetVolumeMountPoint

> Hi,
>
> I have a question about SetVolumeMountPoint() which is an API of W2K.
>
> To call this API, I must know Unique Volume Name. To get Unique
> Volume Name I must know Drive Letter of the partition. But I only
> know Disk Number and Partition Number which have not been assigned
> a Drive Letter, how can I do.
>
> MSDN provides a sample, in that sample, first assigns a temporary
> Drive Letter then gets the Unique Volume Name. I think it not a
> good sample, and I do not plan to use a temporary Drive Letter.
>
> Is there anyone can give me any advices?
>
> Thanks in advance!