extract_msg.structures.cfoas Module

Module contents

class extract_msg.structures.cfoas.ClipboardFormatOrAnsiString(reader: bytes | BytesReader | None = None)[source]

Bases: object

toBytes() bytes[source]
property ansiString: bytes | None

The null-terminated ANSI string, as bytes, of the name of a registered clipboard format. Only set if markerOrLength is not 0x00000000, 0xFFFFFFFE, or 0xFFFFFFFF.

Setting this will modify the markerOrLength field automatically.

property clipboardFormat: ClipboardFormat | None

The clipboard format, if any.

To set this, make sure that :property markerOrLength: is 0xFFFFFFFE or 0xFFFFFFFF before setting.

property markerOrLength: int

If set the 0x00000000, then neither the format property nor the ansiString property will be set. If it is 0xFFFFFFFF or 0xFFFFFFFE, then the clipboardFormat property will be set. Otherwise, the ansiString property will be set.