Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "UuidCreateSequential" in [All]

ole32

.

If you like the old-style GUIDs that are generated in sequential order and contain the machine's MAC address, try UuidCreateSequential.

rpcrt4

.

static extern int UuidCreateSequential(out Guid guid);

.

Declare Function UuidCreateSequential Lib "rpcrt4.dll" (ByRef id As Guid) As Integer

.

Microsoft changed the UuidCreate function so it no longer uses the machine's MAC address as part of the UUID. Since CoCreateGuid calls UuidCreate to get its GUID, its output also changed. If you still like the GUIDs to be generated in sequential order (helpful for keeping a related group of GUIDs together in the system registry), you can use the UuidCreateSequential function.

.

UuidCreateSequential generates sequential GUIDs like these:

.

Here is a summary of the differences in the output of UuidCreateSequential:

.

static Guid UuidCreateSequential()

.

   int hr = UuidCreateSequential(out g);

.

       ("UuidCreateSequential failed: " + hr);

.

   code = UuidCreateSequential(myId)

.

     Console.WriteLine("UuidCreateSequential failed: {0}", code)

.
Documentation
[UuidCreateSequential] on MSDN
.

static extern int UuidCreateSequential(out Guid guid);

.

Declare Function UuidCreateSequential Lib "rpcrt4.dll" (ByRef id As Guid) As Integer

.

Microsoft changed the UuidCreate function so it no longer uses the machine's MAC address as part of the UUID. Since CoCreateGuid calls UuidCreate to get its GUID, its output also changed. If you still like the GUIDs to be generated in sequential order (helpful for keeping a related group of GUIDs together in the system registry), you can use the UuidCreateSequential function.

.

UuidCreateSequential generates sequential GUIDs like these:

.

Here is a summary of the differences in the output of UuidCreateSequential:

.

static Guid UuidCreateSequential()

.

   int hr = UuidCreateSequential(out g);

.

       ("UuidCreateSequential failed: " + hr);

.

   code = UuidCreateSequential(myId)

.

     Console.WriteLine("UuidCreateSequential failed: {0}", code)

.
Documentation
[UuidCreateSequential] on MSDN

 
Access PInvoke.net directly from VS: