Tech Support > Microsoft Windows > Development Resources > win 32 api to get hard drive manufacturer
win 32 api to get hard drive manufacturer
Posted by mdnchauhan81@gmail.com on May 8th, 2008


hi all.,
I urgently require to get hard drive manufacturer name and the
information about its slot whether it is primary or secondary.
which win32 api should I use to get it.
I am trying this to get by using WMI class win32_diskdrive but it is
not giving me the drive manufacturer name.

Posted by moonfacell@gmail.com on May 8th, 2008


On 5ÔÂ8ÈÕ, ÏÂÎç5ʱ15·Ö, mdnchauha...@gmail.com wrote:
Please see
http://www.winsim.com/diskid32/diskid32.html
if it can help.

Posted by mdnchauhan81@gmail.com on May 8th, 2008


On May 8, 2:51 pm, moonfac...@gmail.com wrote:
Thanks for replying.
I have tried that link already. That does not give the information
about manufacturer name. Even the slot information is not right(code
is not providing right output).

I am getting all the details of my hard drive by using win32_diskdrive
class beside manufacturer name. There are many properties of this
class like "model", "size", "manufacturer".. etc. I am getting all
details but instead of getting manufacturer name like
"seagate","samsung".. I am getting "Standard Disk Drive".

Now after some googling I got that there is one file Sms_def.mof in
server 2003 (follow this link please http://support.microsoft.com/kb/886088)
in that file there is a caption property and we have to change this
property as TRUE for getting the manufacturer name of HDD. BUT this
file is not found in winXP and in vista.
I think there may be this type of setting in XP and in vista that we
have to change.

If you know about any win32 api by using which I can get the solution,
Please give me the name of that api.


Similar Posts