Hi, If you understand the subject of my post that means you would know
why i want this. Please dont give me the code for Volume number as i
am talking about manufacturer serial number. I am working on C# and I
know about win32_PhysicalMedia to retrieve the manufacturer serial
number but that does not work for Win 2000 and I want something that
works for Win 2000. Even if there is no solution in C# but you have
something in C or J# that could help me that would be great too. Again
please dont refer me to DiskId32 to get serial number as I have
already spent alot of time trying to invoke it from C# , I tried
wrapping procedures, but that does not work. So please I really need
help and await a reasonable response from some genie out there.

Re: Code for finding manufacturer serial number for hard drive in C# by tayyab

tayyab
Wed Apr 27 04:41:39 CDT 2005

tayyab.ali@gmail.com (Tayyab) wrote in message news:<c9db2f4f.0504260551.40ed7fef@posting.google.com>...
> Hi, If you understand the subject of my post that means you would know
> why i want this. Please dont give me the code for Volume number as i
> am talking about manufacturer serial number. I am working on C# and I
> know about win32_PhysicalMedia to retrieve the manufacturer serial
> number but that does not work for Win 2000 and I want something that
> works for Win 2000. Even if there is no solution in C# but you have
> something in C or J# that could help me that would be great too. Again
> please dont refer me to DiskId32 to get serial number as I have
> already spent alot of time trying to invoke it from C# , I tried
> wrapping procedures, but that does not work. So please I really need
> help and await a reasonable response from some genie out there.


hey u ppl sleeping or what give me some ideas i need them.

Re: Code for finding manufacturer serial number for hard drive in C# by TC

TC
Wed Apr 27 05:11:13 CDT 2005


Tayyab wrote:

(snip)

> hey u ppl sleeping or what give me some ideas i need them.

That is an unwise thing for you to say. People are under no obligation
to help you. You should not attempt to demand a reply.


Having said that ...

>From what I remember of diskid32, the problem is not the programming
language: the problem is how to actually do it! In other words, there
is no piece of simple code that will do it reliably for all hard disks.

Could you talk to the developer of diskid32 & see if he would licence
the sourcecode?

Perhaps he'd do it if you produced a version in the language you want,
then released that version back to him, for him to add to his page.

HTH,
TC


Re: Code for finding manufacturer serial number for hard drive in C# by Reiner

Reiner
Wed Apr 27 05:22:45 CDT 2005

Hi,

you can send an "IOCTL_SCSI_PASS_THROUGH_DIRECT" Command
with an ATA-RegisterFile or SRB setup for an "Identify Drive" Command.
The Output-Buffer of this IOCTL contains a 512-Byte-Sector with the
configuration Data.
I can provide you (if you want this) with some sample-code that has worked
for me.

regards

Reiner

"Tayyab" <tayyab.ali@gmail.com> schrieb im Newsbeitrag
news:c9db2f4f.0504260551.40ed7fef@posting.google.com...
> Hi, If you understand the subject of my post that means you would know
> why i want this. Please dont give me the code for Volume number as i
> am talking about manufacturer serial number. I am working on C# and I
> know about win32_PhysicalMedia to retrieve the manufacturer serial
> number but that does not work for Win 2000 and I want something that
> works for Win 2000. Even if there is no solution in C# but you have
> something in C or J# that could help me that would be great too. Again
> please dont refer me to DiskId32 to get serial number as I have
> already spent alot of time trying to invoke it from C# , I tried
> wrapping procedures, but that does not work. So please I really need
> help and await a reasonable response from some genie out there.



Re: Code for finding manufacturer serial number for hard drive in C# by Bob

Bob
Wed Apr 27 09:18:03 CDT 2005

I'd like to see that code. Can you post it here?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Reiner Ziegler" <Reiner.Ziegler@mail.regio.net> wrote in message
news:eBwyUMxSFHA.3144@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> you can send an "IOCTL_SCSI_PASS_THROUGH_DIRECT" Command
> with an ATA-RegisterFile or SRB setup for an "Identify Drive" Command.
> The Output-Buffer of this IOCTL contains a 512-Byte-Sector with the
> configuration Data.
> I can provide you (if you want this) with some sample-code that has worked
> for me.
>
> regards
>
> Reiner
>
> "Tayyab" <tayyab.ali@gmail.com> schrieb im Newsbeitrag
> news:c9db2f4f.0504260551.40ed7fef@posting.google.com...
>> Hi, If you understand the subject of my post that means you would know
>> why i want this. Please dont give me the code for Volume number as i
>> am talking about manufacturer serial number. I am working on C# and I
>> know about win32_PhysicalMedia to retrieve the manufacturer serial
>> number but that does not work for Win 2000 and I want something that
>> works for Win 2000. Even if there is no solution in C# but you have
>> something in C or J# that could help me that would be great too. Again
>> please dont refer me to DiskId32 to get serial number as I have
>> already spent alot of time trying to invoke it from C# , I tried
>> wrapping procedures, but that does not work. So please I really need
>> help and await a reasonable response from some genie out there.
>
>



Re: Code for finding manufacturer serial number for hard drive in C# by Reiner

Reiner
Wed Apr 27 10:19:45 CDT 2005

Bob,

the Code I'm written is in "unmanaged" C++
(although more C than ++ *grin*)
and it's only pertinent to ATA-Disks!
Are you're still interested?

regards

Reiner
----------------------------------------------------------------------------
---
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> schrieb im Newsbeitrag
news:#8L6XPzSFHA.584@TK2MSFTNGP15.phx.gbl...
> I'd like to see that code. Can you post it here?
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Reiner Ziegler" <Reiner.Ziegler@mail.regio.net> wrote in message
> news:eBwyUMxSFHA.3144@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > you can send an "IOCTL_SCSI_PASS_THROUGH_DIRECT" Command
> > with an ATA-RegisterFile or SRB setup for an "Identify Drive" Command.
> > The Output-Buffer of this IOCTL contains a 512-Byte-Sector with the
> > configuration Data.
> > I can provide you (if you want this) with some sample-code that has
worked
> > for me.
> >
> > regards
> >
> > Reiner
> >
> > "Tayyab" <tayyab.ali@gmail.com> schrieb im Newsbeitrag
> > news:c9db2f4f.0504260551.40ed7fef@posting.google.com...
> >> Hi, If you understand the subject of my post that means you would know
> >> why i want this. Please dont give me the code for Volume number as i
> >> am talking about manufacturer serial number. I am working on C# and I
> >> know about win32_PhysicalMedia to retrieve the manufacturer serial
> >> number but that does not work for Win 2000 and I want something that
> >> works for Win 2000. Even if there is no solution in C# but you have
> >> something in C or J# that could help me that would be great too. Again
> >> please dont refer me to DiskId32 to get serial number as I have
> >> already spent alot of time trying to invoke it from C# , I tried
> >> wrapping procedures, but that does not work. So please I really need
> >> help and await a reasonable response from some genie out there.
> >
> >
>
>