tags:

views:

97

answers:

1

When my program written in C# or VB.NET or other .NET family language runs on Windows and calls System.Guid.NewGuid() is generation always performed by forwarding the call to UuidCreate() provided by Windows or are there other ways of generating?

+2  A: 

No not always. According to it's documentation, the UuidCreate function is only available on Windows Server 2000 and up. At least one version of the .Net framework ran on Windows 98 and contained the Guid class. Hence it could not have used UuidCreate. The 1.X for sure ran on Windows 98 and I can't remember about 2.0.

Hmmm, I'm beginning to suspect this is a documentation issue. The CreateFile function also says it's only available on 2000 and up. Perhaps this documentation is a reflection of 98 not being a supported OS.

JaredPar