Table of Contents

CREATEGUID method (System)

Description

Method to create a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers.

Syntax

GUID = Exec_Method( "SYSTEM", "CREATEGUID" )

Parameters

N/A

Returns

A string containing a newly created GUID in printable hexadecimal characters. This has the format:

{nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn}

E.g.

{DA1E9F6A-4AD1-4777-AD81-5274D2252AF0}

Remarks

This method is a simple wrapper around the Windows API CoCreateGuid and StringFromGUID2 functions – for further information on GUIDs please see the MSDN website.

Example

 
// Create a string GUID to use as an ID

  

  ThisID = Exec_Method( "SYSTEM", "CREATEGUID" )
 
 
 

See Also

N/A