The DDEx5 program is an extension of DDEx4. It demonstrates a simple palette manipulation.
Source: (SDK root)\Samples\Multimedia\DDraw\Src\Ddex5
Executable: (SDK root)\Samples\Multimedia\DDraw\Bin
DDEx4 requires no user input. Press F12 or ESC to quit the program.
This program requires at least 1.2 MB of video RAM.
The program uses IDirectDrawPalette::GetEntries to read a palette, modifies the entries, and then uses IDirectDrawPalette::SetEntries to update the palette.