System.SysUtils.CreateGUID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateGUID(out Guid: TGUID): HResult;

C++

extern DELPHI_PACKAGE HRESULT __fastcall CreateGUID(/* out */ GUID &Guid);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Creates a globally unique identifier.

CreateGUID sets GUID to a newly created Globally Unique Identifier.

Note: Under Windows, CreateGUID calls the Windows API CoCreateGuid.

Note: On MAC OS, GUID is generated using the uuid_generate_time function from the libc runtime, which uses the NIC MAC address, if available.

See Also

Code Examples