General information
Category:
Coding, syntax & commands
Hmmm... NetBIOS names. Do you think it'll be better to use the API to get it or just use getenv('computername')?
>>I don't remeber where I found the below code, but thanks to the original author. I have a coupla questions on it, though.
>> 1. What is this Windows library based on (NIC, hd id, etc)?
>
>If an Ethernet NIC is present, the primary NIC's MAC address is used as a part of the seed to make it globally unique , otherwise, there's a fairly complex mechanism, that is only guarenteed to be unique for a machine, so adding the NetBIOS name to the UUID string should be adequate to ensure uniqueness within a network environment. The MSDN entry on CreateUuid() is rather specific about the uniqueness guarentee.
>
>> 2. How do I know these are "really" unique across time & space?
>>
>>
>>Function getUUID
>>
>>*-- The UUID Create function is in this library
>>DECLARE Integer UuidCreate IN C:\Windows\System\RPCRT4.DLL ;
>> String @ UUID && note that mixed case is important for UuidCreate
>>
>>*-- Create a buffer
>>lcUUID = Space(16)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only