Disk serial numbers (split)

This is a discussion on Disk serial numbers (split) within the C++ Programming forums, part of the General Programming Boards category; Okay.. as I can recall, long ago I asked the question once. Does anyone have any idea: How to get ...

  1. #1
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    Okay.. as I can recall, long ago I asked the question once. Does anyone have any idea:

    How to get scsi hard disk/mainboard/processor/ serial number using C?
    Last edited by zahid; 03-17-2003 at 10:29 PM.
    [ Never code before desk work ]
    -------------------------------------:-->
    A man who fears Nothing is the man who Loves Nothing
    If you Love Nothing, what joy is there in your life.
    =------------------------------------------------------= - I may be wrong.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,676
    The Registry contains information about your disk configuration in the subkeys HKEY_LOCAL_MACHINE\HARDWARE\DeviceMap\AtDisk and Scsi.
    Or GetVolumeInformation()

    May need assembly to get the other info - and even then, you may need the CPU to be in privileged mode in order to execute the necessary instructions to get the information you want.

    gg

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    GetVolumeInformation() I believe is the better of those two approaches. I have used it before and it seems to be a good way.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't Read From Serial Port
    By HalNineThousand in forum Linux Programming
    Replies: 14
    Last Post: 03-20-2008, 05:56 PM
  2. Music Programming - Serial Matrix Display (Help needed)
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-13-2007, 03:28 PM
  3. Music Programming - Serial Matrix Display
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 03:16 PM
  4. Print binary numbers to disk file, problem
    By Guti14 in forum C Programming
    Replies: 4
    Last Post: 10-04-2004, 07:33 AM
  5. the definition of a mathematical "average" or "mean"
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 12-03-2002, 10:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21