2.3.2 ClipboardFormatOrUnicodeString

The ClipboardFormatOrUnicodeString structure specifies either a standard clipboard format identifier (section 2.1.1) or a registered clipboard format as a Unicode string.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

MarkerOrLength

FormatOrUnicodeString (variable)

...

MarkerOrLength (4 bytes): If this is set to 0x00000000, the FormatOrUnicodeString field MUST NOT be present. If this is set to 0xffffffff or 0xfffffffe, the FormatOrUnicodeString field MUST be 4 bytes in size and MUST contain a standard clipboard format identifier (section 2.1.1).

Otherwise, the FormatOrUnicodeString field MUST be set to a Unicode string containing the name of a registered clipboard format (section 2.1.1) and the MarkerOrLength field MUST be set to the number of Unicode characters in the FormatOrUnicodeString field, including the terminating null character.

Value

Meaning

0xFFFFFFFE

Indicates a standard clipboard format.

0xFFFFFFFF

Indicates a standard clipboard format.

0x00000001 — 0xfffffffd

Indicates a registered clipboard format.

FormatOrUnicodeString (variable): This MUST be set to a value as specified by the MarkerOrLength field.