The DDEx2 program is an extension of DDEx1 that adds a bitmap.
Source: (SDK root)\Samples\Multimedia\DDraw\Src\Ddex2
Executable: (SDK root)\Samples\Multimedia\DDraw\bin
DDEx2 requires no user input. Press F12 or ESC to quit the program.
DDEx2 shows how to set a palettized video mode. Routines in DDutil.cpp load a bitmap file and copy it to a DirectDraw surface.