Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem with OnItemChange function Pin
T.SREENIVASA CHARY24-Nov-08 18:21
T.SREENIVASA CHARY24-Nov-08 18:21 
GeneralRe: problem with OnItemChange function Pin
Code-o-mat24-Nov-08 21:44
Code-o-mat24-Nov-08 21:44 
GeneralRe: problem with OnItemChange function Pin
T.SREENIVASA CHARY25-Nov-08 0:27
T.SREENIVASA CHARY25-Nov-08 0:27 
Questionchat control Pin
alphaxz23-Nov-08 20:34
alphaxz23-Nov-08 20:34 
AnswerRe: chat control Pin
Hamid_RT23-Nov-08 20:44
Hamid_RT23-Nov-08 20:44 
GeneralRe: chat control Pin
alphaxz23-Nov-08 21:11
alphaxz23-Nov-08 21:11 
GeneralRe: chat control Pin
Hamid_RT24-Nov-08 2:37
Hamid_RT24-Nov-08 2:37 
QuestionGet physical drive's information like model, serial number, type, etc. Pin
Shashi.Shinde23-Nov-08 20:18
Shashi.Shinde23-Nov-08 20:18 
Hello,

I am looking for information of present drives on the system.
I am interested to get information of each drive present on the system which includes -
1) Model,
2) Serial number,
3) Type
4) Solid state drive status, etc.

Now, I am able to get such information for hard disk's drives. But not able to get this information for other drives like CD-ROM, USB drives, etc.

I am using CreateFile method to locate that drive and pass the handle to DeviceIoControl method which gives me listed info for Hard disk drives only. The DeviceIoControl gives me blank buffer for other drives like CD_ROM and USB, etc.
I am using code to locate drive as -
HANDLE hDiskDevice = CreateFile(DeviceName, 
			GENERIC_READ| GENERIC_WRITE, 
			FILE_SHARE_READ | FILE_SHARE_WRITE,
			NULL,
			OPEN_EXISTING,
			0,
			NULL);


To fetch information from the system, I am using -
DeviceIoControl(hDiskDevice, 
                           SMART_RECEIVE_DRIVE_DATA, 
                           pInputATABuffer, 
                           InputBufferSize -1, 
                           pOutputATABuffer, 
                           OutputBufferSize -1, 
                           &BytesReturned, NULL)

Please let me know if you have any ideas to get such information for USB, CD-ROM, etc drives.

Thank you.

With regards,

Shashikant
AnswerRe: Get physical drive's information like model, serial number, type, etc. Pin
Hamid_RT23-Nov-08 20:23
Hamid_RT23-Nov-08 20:23 
AnswerRe: Get physical drive's information like model, serial number, type, etc. Pin
_AnsHUMAN_ 23-Nov-08 20:27
_AnsHUMAN_ 23-Nov-08 20:27 
QuestionDifference between subclasswindow and subclassdlgitem? Pin
kDevloper23-Nov-08 20:09
kDevloper23-Nov-08 20:09 
AnswerRe: Difference between subclasswindow and subclassdlgitem? Pin
CPallini23-Nov-08 22:54
mveCPallini23-Nov-08 22:54 
GeneralRe: Difference between subclasswindow and subclassdlgitem? Pin
kDevloper23-Nov-08 23:14
kDevloper23-Nov-08 23:14 
QuestionHow to set title to font file. Pin
CuteAshaVC++23-Nov-08 19:15
CuteAshaVC++23-Nov-08 19:15 
AnswerRe: How to set title to font file. Pin
_AnsHUMAN_ 23-Nov-08 19:20
_AnsHUMAN_ 23-Nov-08 19:20 
GeneralRe: How to set title to font file. Pin
CuteAshaVC++23-Nov-08 19:29
CuteAshaVC++23-Nov-08 19:29 
GeneralRe: How to set title to font file. Pin
CuteAshaVC++23-Nov-08 19:36
CuteAshaVC++23-Nov-08 19:36 
AnswerRe: How to set title to font file. Pin
Hamid_RT23-Nov-08 20:17
Hamid_RT23-Nov-08 20:17 
GeneralRe: How to set title to font file. Pin
CuteAshaVC++23-Nov-08 21:54
CuteAshaVC++23-Nov-08 21:54 
GeneralRe: How to set title to font file. Pin
Hamid_RT24-Nov-08 2:38
Hamid_RT24-Nov-08 2:38 
QuestionCan i override MessageBox Yes NO Cancel to another language ? Pin
Royaltvk23-Nov-08 19:05
Royaltvk23-Nov-08 19:05 
AnswerRe: Can i override MessageBox Yes NO Cancel to another language ? Pin
_AnsHUMAN_ 23-Nov-08 19:07
_AnsHUMAN_ 23-Nov-08 19:07 
GeneralRe: Can i override MessageBox Yes NO Cancel to another language ? Pin
Royaltvk23-Nov-08 19:15
Royaltvk23-Nov-08 19:15 
QuestionCan WNetDisconnectDialog() be used in VC98(Visual studio 6.0)? Pin
Member 454979923-Nov-08 19:00
Member 454979923-Nov-08 19:00 
AnswerRe: Can WNetDisconnectDialog() be used in VC98(Visual studio 6.0)? Pin
_AnsHUMAN_ 23-Nov-08 19:06
_AnsHUMAN_ 23-Nov-08 19:06 

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.