$Id: file-format.txt,v 1.1 2005/04/19 19:45:23 josheli Exp $ Here is a breakdown of a Variable-Length Multi-Byte Function, in this case it is the "Center Current Page Top to Bottom" function. Function Definition from Corel SDK for WP9 ------------------------------------------ Center Current Page Top to Bottom <209 (0xD1)> <4 (0x04)> [size = variable] <flags = 0> [size of non-deletable information = 1] <new center current page state> bit 0: 0 = off, 1 = center current page bits 1-7: undefined <undocumented deletable data> x ? [size] <0xD1> Hex representation in the actual document: ----------------------------------------- D1 04 0C 00 00 01 00 01 00 0C 00 D1 Breakdown: --------- D1 -> Function Group (0xD1 or 209 are the Page Group functions) 04 -> Sub-Function (i.e. "Center Current Page Top to Bottom" function) 0C00 -> Size of this function (i.e. 12 bytes) 00 -> Flags (i.e. none) 0100 -> size of non-deletable (i.e. undocumented) data 01 -> Page state (i.e. 1 = "center current page) 00 -> Undocumented deletable data 0C00 -> Size of this function again (i.e. 12 bytes) D1 -> Function Group again