Click here to Skip to main content
15,915,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Number Conversion Octal to Hexadecimal Pin
djsproject8-May-10 17:39
djsproject8-May-10 17:39 
GeneralRe: Number Conversion Octal to Hexadecimal Pin
Emilio Garavaglia10-May-10 5:02
Emilio Garavaglia10-May-10 5:02 
QuestionHow to get PNP Device Id Pin
Jaligamap7-May-10 9:17
Jaligamap7-May-10 9:17 
AnswerRe: How to get PNP Device Id Pin
Randor 9-May-10 10:16
professional Randor 9-May-10 10:16 
GeneralRe: How to get PNP Device Id Pin
pacchij11-May-10 10:41
pacchij11-May-10 10:41 
GeneralRe: How to get PNP Device Id Pin
Randor 11-May-10 16:47
professional Randor 11-May-10 16:47 
GeneralRe: How to get PNP Device Id Pin
pacchij12-May-10 17:08
pacchij12-May-10 17:08 
GeneralRe: How to get PNP Device Id Pin
pacchij24-May-10 8:20
pacchij24-May-10 8:20 
HI David,

thanks for all your pointers.

I am able to successfully enumerate volumes and their corresponding Device information using SetupDI functions.

1. SetupDI functions will list all devices for given class guid, such as disks, cdroms, volumes.
We can also query for its device number using IOCTL_STORAGE_GET_DEVICE_NUMBER.

2. Separately, all volumes can be retrieved using windows APIs, such as GetLogicalDrives, and then we can also query its device number using same IOCTL_STORAGE_DEVICE_NUMBER on drive letter (ex: \\\\?\\cSmile | :) .


Now I mapped device number in setupDI with the device number retrieved using volumes functions, which allows me to get both volume information and also its corresponding device information.

Of course, device number does not persist across boots, but my little software will keep refresh to map volume drives and its corresponding device info.

thanks-
Prashanth Jaligama
QuestionClipboard / Win32 Pin
Fareed Rizkalla7-May-10 8:39
Fareed Rizkalla7-May-10 8:39 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 9:06
David Crow7-May-10 9:06 
AnswerRe: Clipboard / Win32 Pin
Fareed Rizkalla7-May-10 10:18
Fareed Rizkalla7-May-10 10:18 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 10:30
David Crow7-May-10 10:30 
AnswerRe: Clipboard / Win32 Pin
Fareed Rizkalla7-May-10 14:12
Fareed Rizkalla7-May-10 14:12 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 17:02
David Crow7-May-10 17:02 
GeneralRe: Clipboard / Win32 Pin
Michael Dunn7-May-10 16:40
sitebuilderMichael Dunn7-May-10 16:40 
QuestionSend data to remote server from CString Pin
mesajflaviu7-May-10 8:25
mesajflaviu7-May-10 8:25 
AnswerRe: Send data to remote server from CString Pin
CPallini7-May-10 8:41
mveCPallini7-May-10 8:41 
AnswerRe: Send data to remote server from CString Pin
«_Superman_»7-May-10 8:48
professional«_Superman_»7-May-10 8:48 
GeneralRe: Send data to remote server from CString Pin
mesajflaviu7-May-10 9:08
mesajflaviu7-May-10 9:08 
QuestionGet resource ID from icon index Pin
cryptoknight177-May-10 7:49
cryptoknight177-May-10 7:49 
QuestionTimeout problem in CHttpFile::SendRequest() Pin
m_code7-May-10 7:49
m_code7-May-10 7:49 
QuestionWhat device context methods are available to Crichedit Pin
ForNow7-May-10 7:10
ForNow7-May-10 7:10 
AnswerRe: What device context methods are available to Crichedit Pin
karle7-May-10 9:43
karle7-May-10 9:43 
GeneralRe: What device context methods are available to Crichedit Pin
ForNow7-May-10 11:21
ForNow7-May-10 11:21 
GeneralRe: What device context methods are available to Crichedit Pin
karle8-May-10 4:00
karle8-May-10 4:00 

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.