Skip to main content

D2

D2: Word;

Example

procedure ReadD2(G: TGUID; var Value: Word);
begin
Value := G.D2;
end;

Usage

D2 holds the unsigned 16-bit second field of a TGUID and supplies the second four hexadecimal text digits.

Additional Technical Info

D2 is the second TGUID field: an unsigned 16-bit Word in range 0..65,535.

In {00112233-4455-6677-8899-AABBCCDDEEFF}, D2 is numeric value $4455 and forms the second four-hex-digit group. Its raw bytes are little-endian in the standard Windows record layout, so manual byte serialization can reverse them relative to text/protocol order.

Do not infer GUID version or variant from D2; those bits are located in D3/D4 for standard UUID layouts. Prefer complete GUID conversion/generation helpers over field mutation.

TGUID is a copied value record; no ownership transfer occurs. The example is source-reviewed only.

External references

Created 2026-07-15