[comp.windows.ms] Windows Paint File structure

dulimart@cpsvax.cps.msu.edu (Hansye S. Dulimarta) (12/05/89)

Hello netters,
  I wish to write a program that reads a Windows Paint file and encodes the
data for further processing. One fellow from the other newsgroup said that
basically the format of this file is 32 byte of header followed by the
data. Could anybody tell me the description of each field in this header.
I found out that the first four bytes is 'DanM', the next two 2-byte values
are row & column size (I'm not sure which one is which ?) but I don't know
the rest ?

I appreciate your helping me with the description.

Hans.
/*---------------------------------------------------------------------------*
 * Hans Dulimarta    (517) 355-3840                                          *
 *   dulimart@pixel.cps.msu.edu            [35.8.56.4]                       *
 *   dulimart@cpsvax.cps.msu.edu           [35.8.56.111]                     *
 *   dulimart@{frith|msudoc}.egr.msu.edu   [35.8.8.108]                      *
 *   {....}!tank!eecae!cpsvax!dulimart                                       *
 *---------------------------------------------------------------------------*/

johnc@plx.UUCP (John C.) (12/08/89)

The Microsoft Window Paint file format is documented in the
"Microsoft Windows 2.0 Software Development Kit Update",
which in my SDK is in the Programming Tools volume.
It's full of stuff that should have been in the manual
from the start.

For example:

NEW APPENDIX B: "Write File Format"
NEW APPENDIX C: "Paint File Format"
NEW APPENDIX D: "Calendar File Format"

/John Ciccarelli