Thread: Getting Hdd serial# and Mac address with C++

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    3

    Question Getting Hdd serial# and Mac address with C++

    how can i simply get the hdd serial# and mac adress of machine with C++?
    I am using Borland C++ 5.01 on Win2000pro.
    I'll be pleased if u post the running cpp's and .exe 's
    (From Kocaeli University/Computer Engineering/Turkey)
    mesutonus.8m.com

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    This wouldn't be for illegal activity now would it? hmmmmm
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    3

    Thumbs up sure ILLEGAL

    ý am studying computer engineerin in Kocaeli university Turkey.
    I need the code for my school project about a simple password looking program and i have to get the mac,ip add and hdd serial#
    of the machine to be sure of the user.
    No illegal actions..
    Thanx for ur fast reply

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    For Windows lookup the GetVolumeInformation() and NetBios() Apis...

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    3

    Thumbs up sure LEGAL

    ý am studying computer engineerin in Kocaeli university Turkey.
    I need the code for my school project about a simple password looking program and i have to get the mac,ip add and hdd serial#
    of the machine to be sure of the user.
    No illegal actions..
    Thanx for ur fast reply

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    6
    I would like to know that too, a customer asked for a small program and I would like to lock my program so that he can only use it in the specific machine

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Bumping a thread over 4 years old - congratulations on your new record.

    Now go read the forum rules (or runes perhaps, given the age of this thread).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Equivalent to volume serial number in linux
    By Elkvis in forum Linux Programming
    Replies: 8
    Last Post: 06-30-2009, 08:46 PM