How to get device for drive letter?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
kinhdoanhantoan
Newbie
Newbie
Posts: 1
Joined: Sat Dec 24, 2016 1:32 pm

How to get device for drive letter?

Post by kinhdoanhantoan »

In .wine/dosdevices I have links

d: -> /some_path
d:: -> /dev/some_device

How can I get the device name (/dev/some_device) in a Wine program for drive (letter) D: ? Is there an API-Call?

Anna.
madewokherd
Level 4
Level 4
Posts: 149
Joined: Mon Jun 02, 2008 5:03 pm

Re: How to get device for drive letter?

Post by madewokherd »

Yes, there is an API, winecfg uses it. See the load_drives function in programs/winecfg/drives.c.
Locked