Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique ID Generation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00259668
Message ID:
00259764
Views:
20
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
Map
View

Click here to load this message in the networking platform