Is System.Guid.NewGuid () always implemented through UuidCreate () on Windows?

When does my program written in C # or VB.NET or another language of the .NET family work on Windows, and calls System.Guid.NewGuid()are the generation always performed by redirecting the call UuidCreate()provided by Windows, or are there other ways to generate it?

+3
source share
1 answer

Not always. According to this documentation, UuidCreate is only available on Windows Server 2000 and later. At least one version of the .Net framework worked on Windows 98 and contained a class Guid. Therefore, he could not use UuidCreate. 1.X probably works on Windows 98, and I can't remember version 2.0.

Hmmm, I'm starting to suspect that this is a problem with the documentation. The CreateFile function also says that it is only available in 2000 and above. Perhaps this documentation is a reflection of 98 unsupported OS.

+3
source

Source: https://habr.com/ru/post/1725407/


All Articles