If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
"Michael Wittmann" wrote in message t...
Hi folks, I have to write a Visual Basic 6.0 Program and need to uniquely identify a computer in a network and the user mustn't be able to change that id while my program is running. So the Volume Serial Number of the HDD isn't a possibility, because you can set the Volume SN whatever you want and therefore it's not unique in a Network. I heard that there's a manufacturer's Serial Number on the HDD that can't be changed and that is unique (worldwide?). How can I get that SN with VB6? Or do you have any other ideas? Like a BIOS SN? Thanks a lot in advance, Michael PS: Answer in German is ok. Here's a way to get the BiosID: Look here for more info: http://msdn.microsoft.com/library/de...win32_bios.asp ----------------------------------------------------------- Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Public Function GetBiosVersion() As String Dim strComputerName As String Dim objWMIService Dim colItems Dim objItem On Local Error Resume Next strComputerName = Space(255) GetComputerName strComputerName, 255 strComputerName = Left(strComputerName, InStr(1, strComputerName, Chr(0)) - 1) Set objWMIService = GetObject("winmgmts:\\" & strComputerName) Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS ", , 48) For Each objItem In colItems GetBiosVersion = objItem.SerialNumber Next End Function ----------------------------------------------------------------------- Reinier |
#12
|
|||
|
|||
@drian schrieb:
"Michael Stum" wrote It can be changed by the User easily and is therefore neither Unique nor secure. The MAC address? The MAC address is a fixed, unique number embedded in the NIC. So how do you change the MAC on your NIC card? I'm interested. Under Linux I would issue: "ifconfig eth0 hw ether 01:23:45:67:89:AB" under Windows there are several Tools available. The MAC is still unchanged in the Card itself, but no application can read that adress directly - the driver reads it from the card and reports it to the program. And as i said: Its absolutely no Problem to tell the driver to report a different MAC Adress than the real one. The only way to get the MAC Adress directly from the card is by direct Hardware Access (Which is impossible under Windows NT) or by writing a Driver (which is not what the author wants i believe) |
#13
|
|||
|
|||
Ethernet cards have a permanent address that cannot be changed. They also have
a software address that can be set in the registry. Both can be queried by IOCTL on NT4 and later. If you find a way to change the permanent NIC address, you can also find a way to change disk serial numbers. "@drian" wrote in message ... | What's wrong with the NIC's MAC address? | | It can be changed by the User easily and is therefore neither Unique nor | secure. | | The MAC address? The MAC address is a fixed, unique number embedded in the | NIC. So how do you change the MAC on your NIC card? I'm interested. | |
#14
|
|||
|
|||
Right click the LAN icon, click the Configure button under the NIC, click
the Advanced tab and then look for "Managed Address" or "Network Address" and enter a new MAC address. .... you've just changed the MAC address that the network will see. "Eric Gisin" wrote in message ... Ethernet cards have a permanent address that cannot be changed. They also have a software address that can be set in the registry. Both can be queried by IOCTL on NT4 and later. If you find a way to change the permanent NIC address, you can also find a way to change disk serial numbers. "@drian" wrote in message ... | What's wrong with the NIC's MAC address? | | It can be changed by the User easily and is therefore neither Unique nor | secure. | | The MAC address? The MAC address is a fixed, unique number embedded in the | NIC. So how do you change the MAC on your NIC card? I'm interested. | |
#15
|
|||
|
|||
Clueless. That's not the permanent address.
"Phrederick" wrote in message news:Opitb.391745$6C4.246909@pd7tw1no... | Right click the LAN icon, click the Configure button under the NIC, click | the Advanced tab and then look for "Managed Address" or "Network Address" | and enter a new MAC address. | | ... you've just changed the MAC address that the network will see. | | | "Eric Gisin" wrote in message | ... | Ethernet cards have a permanent address that cannot be changed. They also | have | a software address that can be set in the registry. Both can be queried by | IOCTL on NT4 and later. |
#16
|
|||
|
|||
No, but it's the one that the network will see, etc.
If you're just using the permanent address to track hardware, then it's a different story. "Eric Gisin" wrote in message ... Clueless. That's not the permanent address. "Phrederick" wrote in message news:Opitb.391745$6C4.246909@pd7tw1no... | Right click the LAN icon, click the Configure button under the NIC, click | the Advanced tab and then look for "Managed Address" or "Network Address" | and enter a new MAC address. | | ... you've just changed the MAC address that the network will see. | | | "Eric Gisin" wrote in message | ... | Ethernet cards have a permanent address that cannot be changed. They also | have | a software address that can be set in the registry. Both can be queried by | IOCTL on NT4 and later. |
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modem and other on same serial, alternately? | Rick | General | 4 | October 25th 03 06:13 PM |
USB, Parallel Scanner, Serial Joystick | The Kid | General | 2 | September 1st 03 04:38 AM |
serial to parallel adapter | Old guy | General | 2 | July 30th 03 11:11 PM |
Adding ten or so serial ports? | Paul Hutchings | General | 4 | July 23rd 03 08:54 AM |
KVM Switch for Both PS/2 and AT Connectors | Alien Zord | General | 5 | July 9th 03 07:19 PM |