Skip to content

OnCreateGUID

Callback to create GUID values.

Declaration

Source position: sysutilh.inc line 322

var
  OnCreateGUID: TCreateGUIDFunc = function(out GUID: TGUID) : Integer = Nil;

Description

OnCreateGUID can be set to point to a custom routine that creates GUID values. If set, the CreateGUID function will use it to obtain a GUID value. If it is not set, a default implementation using random values will be used to create the unique value. The function should return a valid GUID in the GUID parameter, and should return zero in case of success.

See also

Name Description
CreateGUID Create a new GUID.
TCreateGUIDFunc Callback prototype to create GUIDs.