TGUID is a structured form of the value that uniquely identifies an interface.
TGUID = packed record D1: LongWord; D2: Word; D3: Word; D4: array[0..7] of Byte; end;
struct TGUID { LongWord D1; Word D2; Word D3; array[0..7] of Byte D4; };
System
An interface declaration can specify a globally unique identifier (GUID), represented by a string literal enclosed in brackets immediately preceding the member list. The GUID part of the declaration must have the form :
['{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}']
where each x is a hexadecimal digit (0 through 9 or A through F). On Windows, the Type Library editor automatically generates GUIDs for new interfaces. You can also generate GUIDs by pressing Ctrl+Shift+G in the Code editor.
TGUID provides a structured access to this GUID :
D1 maps to the first 8 hexadecimal digits.
D2 maps to the next 4 hexadecimal digits.
D3 maps to the next 4 hexadecimal digits.
D4 maps to the final 8 hexadecimal digits.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|