Click here to Skip to main content
15,885,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsystem phisycal drive Pin
RomTibi4-Feb-12 6:15
RomTibi4-Feb-12 6:15 
AnswerRe: system phisycal drive Pin
Rajesh R Subramanian4-Feb-12 8:15
professionalRajesh R Subramanian4-Feb-12 8:15 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 2:04
RomTibi5-Feb-12 2:04 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 3:00
professionalJochen Arndt5-Feb-12 3:00 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 3:12
RomTibi5-Feb-12 3:12 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 3:25
professionalJochen Arndt5-Feb-12 3:25 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 4:31
RomTibi5-Feb-12 4:31 
GeneralRe: system phisycal drive Pin
parths5-Feb-12 20:01
parths5-Feb-12 20:01 
Use the QueryDosDevice[^] function to get the physical device name from the drive name.

Make sure the drive name does not contain the trailing '\' (e.g: use "c:" instead of "c:\\")
This will give you something like \Device\HardDisk0 or whatever is relevant to your machine.

I hope this helps


"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman

"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.



GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 22:43
professionalJochen Arndt5-Feb-12 22:43 
AnswerRe: system phisycal drive Pin
«_Superman_»4-Feb-12 17:20
professional«_Superman_»4-Feb-12 17:20 
AnswerRe: system phisycal drive Pin
RomTibi14-Feb-12 17:57
RomTibi14-Feb-12 17:57 
QuestionSet window position Pin
_Flaviu4-Feb-12 5:34
_Flaviu4-Feb-12 5:34 
AnswerRe: Set window position Pin
Richard Andrew x644-Feb-12 10:57
professionalRichard Andrew x644-Feb-12 10:57 
GeneralRe: Set window position Pin
_Flaviu4-Feb-12 21:33
_Flaviu4-Feb-12 21:33 
AnswerRe: Set window position Pin
Chuck O'Toole5-Feb-12 4:57
Chuck O'Toole5-Feb-12 4:57 
GeneralRe: Set window position Pin
_Flaviu5-Feb-12 20:30
_Flaviu5-Feb-12 20:30 
QuestionGetter and setter style class implementation in VC++ Pin
Member 78851053-Feb-12 19:23
Member 78851053-Feb-12 19:23 
AnswerRe: Getter and setter style class implementation in VC++ Pin
Albert Holguin3-Feb-12 21:17
professionalAlbert Holguin3-Feb-12 21:17 
GeneralRe: Getter and setter style class implementation in VC++ Pin
Member 78851053-Feb-12 22:19
Member 78851053-Feb-12 22:19 
AnswerRe: Getter and setter style class implementation in VC++ Pin
Albert Holguin4-Feb-12 8:08
professionalAlbert Holguin4-Feb-12 8:08 
QuestionMessage for CASynsocket::OnConnect Pin
ForNow3-Feb-12 10:55
ForNow3-Feb-12 10:55 
AnswerRe: Message for CASynsocket::OnConnect Pin
Albert Holguin3-Feb-12 11:20
professionalAlbert Holguin3-Feb-12 11:20 
QuestionUpdating the color of child Window Pin
cpp_prgmer3-Feb-12 9:39
cpp_prgmer3-Feb-12 9:39 
AnswerRe: Updating the color of child Window Pin
Albert Holguin3-Feb-12 10:41
professionalAlbert Holguin3-Feb-12 10:41 
AnswerRe: Updating the color of child Window Pin
«_Superman_»3-Feb-12 15:32
professional«_Superman_»3-Feb-12 15:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.