gettingstarted
[Top] [All Lists]

Re: hard disk code

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: hard disk code
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Sat, 25 Sep 2004 20:20:22 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <9 dot 334bde1a dot 2e8771de at aol dot com>
I don't know anything about Windows. Is there some way within Real Basic to query the OS for a unique number of the disk or processor?

No, there's no framework call to get a unique number, and there's really no good way to get a number that will not change unless you require the users to have a hardware dongle. You can change serial numbers or MAC addresses for hardware...

You can (at least on Windows) get the serial number with declares. As for MAC addresses, you can get those from the NetworkInterface class -- but keep in mind that not everyone has a NIC card installed, and you can manually change the MAC address of a card, so it's not a good thing to guarantee uniqueness with.

HTH!

~Aaron
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>