GUID and UUID It's the same , Represents a globally unique identification code .

Here is Windows In the system , produce GUID One way (Windows API)

char* GUID_Generator()
{
char buf[ ] = {};
GUID guid;
CoInitialize(NULL);
if (S_OK == ::CoCreateGuid(&guid))
{
_snprintf( buf, sizeof(buf),
"{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
guid.Data1,
guid.Data2,
guid.Data3,
guid.Data4[], guid.Data4[],
guid.Data4[], guid.Data4[],
guid.Data4[], guid.Data4[],
guid.Data4[], guid.Data4[]);
}
CoUninitialize(); return (char*)buf;
}

VC++ produce GUID or UUID More articles about

  1. Microsoft COM in GUID and UUID、CLSID、IID

    Excerpt from :http://blog.csdn.net/zhongguoren666/article/details/6711396 Microsoft designed com When it comes to regulation , There are two options to ensure that the user's design is com Components can be all ...

  2. GUID and UUID、CLSID、IID Differences and connections

    Microsoft designed com When it comes to regulation , There are two options to ensure that the user's design is com Components can be unique in the world : The first is to adopt and Internet Address management , Set up a governing body , If users want to develop a COM It is necessary to refer to the organization when assembling ...

  3. Excel Generate guid、uuid

    1.Excel Generate guid,uuid   Format :600d65bc-948a-1260-2217-fd8dfeebb1cd =LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(, ...

  4. java Generate GUID And UUID

      java Generate GUID And UUID CreateTime--2018 year 5 month 31 Japan 16 spot 29 branch Author:Marydon import java.util.UUID; public static ...

  5. How to use java Generate GUID And UUID

    GUID It's a 128 A digit long number , It's usually used 16 Hexadecimal said . The core idea of the algorithm is to combine the network card of the machine . Local time . A random number to generate GUID. In theory , If a machine produces 10000000 individual GUID, You can guarantee that ( The significance of probability ...

  6. < turn >Excel Generate guid、uuid

    Excel Generate guid.uuid   Original address :https://www.cnblogs.com/jory/p/7718305.html  1.Excel Generate guid,uuid   Format :600d65bc- ...

  7. C++: Get the global unique identification number in the program (GUID or UUID)

    Windows: Use CoCreateGuid function (GUID) #include <objbase.h> #include <stdio.h> #define GUID_LEN  ...

  8. 【 turn 】C++: Get the global unique identification number in the program (GUID or UUID)

    Windows: Use CoCreateGuid function (GUID) #include <objbase.h> #include <stdio.h> #define GUID_LEN ...

  9. VS Use GUID(UUID Basic knowledge of )

    UUID yes Universal unique identification code (Universally Unique Identifier) Abbreviation , The goal is to make all elements of a distributed system , Can have unique identification information , Instead of specifying the identification information through the central control terminal . UU ...

Random recommendation

  1. HTML5 Medium canvas canvas ( One )

    --- Resume content start --- stay HTML5 New elements added to ,canvas Now supports IE9+ Version of Be careful :HTML5 <canvas> The element is used to draw the graph , Through script ( Usually JavaScript ...

  2. JSBinding / FAQ &amp; Trouble Shooting

    Q: Why javascript file extension is .javascript?A: Because Unity treats .js files as Unity script an ...

  3. Hive Common commands

    The standard is reprint , The original address is :http://www.cnblogs.com/BlueBreeze/p/4232421.html # Create new table hive> CREATE TABLE t_hive (a in ...

  4. Fedora 21 install QQ International Edition

    First install the dependency package sudo yum install freetype.i686 libpng.i686 libgcc.i686 libXau.i686 Click to download wine-2012qq International Edition unzip ...

  5. delphi Functional functions - For backup

    function CheckTask(ExeFileName: string): Boolean;constPROCESS_TERMINATE=$0001;varContinueLoop: BOOL; ...

  6. Master Oracle+Python, The first 2 part : Processing time and date

    from Python 2.4 version ,cx_Oracle It can handle DATE and TIMESTAMP data type , Map the values of these columns to Python Of datetime Modular datetime In the object ...

  7. [ Reprint ]ios app Problems with Publishing uinewsstandapp=true

    Original address :ios app  Problems with Publishing uinewsstandapp=true author :Capacity To include newsstand features, the info.plist mu ...

  8. WndProc function ( turn )

    WndProc Function function : It is mainly used to intercept and process system messages and custom messages such as :windows The program generates a lot of messages , For example, if you click the mouse , Moving windows generates messages . This function is the default message handling function . You can overload this function to make ...

  9. Understand again UpdatePanel

    I just want to write something every day to help myself accumulate . explain : The landlord has made it clear now AJAX What's the matter , Now, because of work, I'm playing with it again UpdatePanel So from AJAX From the perspective of UpdatePanel The emissary of ...

  10. ORACLE Query statement

    -- Build table FAMILYINF CREATE  TABLE  FAMILYINFO(      FNO NUMBER CONSTRAINT FC001 PRIMARY KEY,-- Put field fno Constraint as primary key ...