struct jnc_Guid

Overview

This struct describes a globally unique identifier(GUID). More…

#include <jnc_Def.h>

struct jnc_Guid {
    // fields

    union {
        struct  {
            uint32_t m_data1;
            uint16_t m_data2;
            uint16_t m_data3;
            uint8_t m_data4[8];
        };

        struct  {
            uint32_t m_long1;
            uint32_t m_long2;
            uint32_t m_long3;
            uint32_t m_long4;
        };
    };
};

Detailed Documentation

This struct describes a globally unique identifier(GUID).

GUIDs are 128-bit values often used as permanent labels which uniquely identify some sort of information. Creation of GUIDs does not require any significant central coordination.

In practice any two generated GUIDs could be assumed to be distinct – even though neither of GUID generation algorithms could strictly guarantee uniqueness of generated identifiers. The probability of collision is too low and can be neglected in most practical applications.

In Jancy API GUIDs are used to identify extension libraries – each extension library has its own unique ID.

This struct directly maps to struct UUID as defined in WinAPI.

For more details about globally unique identifiers refer to: https://en.wikipedia.org/wiki/Globally_unique_identifier

Fields

uint32_t m_data1
uint16_t m_data2
uint16_t m_data3
uint8_t m_data4 [8]

The classic representation of a GUID mirroring the definition in WinAPI.

uint32_t m_long1
uint32_t m_long2
uint32_t m_long3
uint32_t m_long4

An alternative representation of a GUID as four 32-bit integers.