Skip to content
/ guidgen Public

A Windows GUI and console GUID generator. Replacement for the MSVS guidgen and uuidgen utilities.

Notifications You must be signed in to change notification settings

duox/guidgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUIDgen - alternative GUID generator, GUI and console versions.

License: LGPL 2.1.

Screenshots

  • Default window state:
    Default window

  • List of available GUID generators:
    GUID generators

  • List of available GUID formats:
    GUID formats

  • Internal help:
    Help window

  • Command line utility help:
    Help window

GUID generators

A GUID generator creates a GUID which is sent to the selected formatter.

List of supported GUID generators:

  • random GUID (implemented via CoCreateGuid),
  • null GUID (all bytes are zero),
  • invalid GUID (all bytes are 0xFF's),
  • manual GUID (allows to manually give a GUID in the standard registry format and reformat it using one of formatters).

GUID formatters

A GUID formatter takes GUID structure and makes a string in some format.

List of currently supported formatters:

  • User-specified format

    User specifies the format in the "User format string" edit control and "Generate & Copy" button creates a formatted GUID.

  • Raw format

    Raw format generates sequence of bytes, from the first to the last. at prints them sequentially, without spaces.

    Example:

>guidgen.exe -t manual -u {D7129382-1FFC-43A8-99F0-A8F0A1B67559} -f raw
829312D7FC1FA84399F0A8F0A1B67559
  • IDL interface template

    IDL interface empty template with uuid() attribute.

    Example:

[
uuid("1B0B0F35-18CC-40F1-9875-74B0E5990923")
version(1.0)
]
interface INTERFACENAME
{

}
  • IMPLEMENT_OLECREATE

    Example:

// {BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}
IMPLEMENT_OLECREATE( Class, Name, 0xba4e6bb2, 0x8a8b, 0x4e81, 0xb8, 0x85, 0xa6, 0xe1, 0xa9, 0x73, 0x85, 0x74 );
  • DEFINE_GUID

    Example:

// {BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}
DEFINE_GUID( Name, 0xba4e6bb2, 0x8a8b, 0x4e81, 0xb8, 0x85, 0xa6, 0xe1, 0xa9, 0x73, 0x85, 0x74 );
  • static const struct GUID

    Example:

// {BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}
static const struct GUID Name = { 0xba4e6bb2, 0x8a8b, 0x4e81, { 0xb8, 0x85, 0xa6, 0xe1, 0xa9, 0x73, 0x85, 0x74 } };
  • standard registry format

    Example:

{BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}

  • [Guid(" ... ")]

    Example:

[Guid("BA4E6BB2-8A8B-4E81-B885-A6E1A9738574")]
  • <Guid(" ... ")>

    Example:

<Guid("BA4E6BB2-8A8B-4E81-B885-A6E1A9738574")>
  • guid( ... )

    Example:

guid(BA4E6BB2-8A8B-4E81-B885-A6E1A9738574)
  • C# field definition

    Used to specify GUID fields in the C# field format.

    Example:

// {BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}
static readonly Guid Name = new Guid(0xba4e6bb2, 0x8a8b, 0x4e81, 0xb8, 0x85, 0xa6, 0xe1, 0xa9, 0x73, 0x85, 0x74);
  • VB .Net field definition

    Example:

' {BA4E6BB2-8A8B-4E81-B885-A6E1A9738574}
Shared ReadOnly Name As Guid = New Guid(&Hba4e6bb2, &H8a8b, &H4e81, &Hb8, &H85, &Ha6, &He1, &Ha9, &H73, &H85, &H74)

About

A Windows GUI and console GUID generator. Replacement for the MSVS guidgen and uuidgen utilities.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published