2.4.2 Hyperlink Hash

Given the two null-terminated Unicode hyperlink strings, hlink1 (hyperlink target) and hlink2 (hyperlink location), an unsigned 4-byte integer hash can be obtained by performing the following algorithm:

  1. Hash hlink1 as specified in Unicode String to Unsigned LONG Hash (section 2.4.1), and store the resulting unsigned 4-byte integer hash in dwHash1.

  2. Hash hlink2 as specified in Unicode String to Unsigned LONG Hash (section 2.4.1), and store the resulting unsigned 4-byte integer hash in dwHash2.

  3. The result of the algorithm is the value obtained by the exclusive OR of dwHash1 and dwHash2.

    Example: dwHash = dwHash1 ^ dwHash2;