This sample shows how to switch between the normal and exclusive cooperative levels in DirectDraw.
Source: (SDK root)\Samples\Multimedia\DDraw\Src\Switcher
Executable: (SDK root)\Samples\Multimedia\DDraw\Bin
Press ALT+ENTER to switch between full-screen and windowed mode. Quit the program by pressing ESC.
In normal (windowed) mode, the sample assigns a clipper, shows the mouse cursor, and handles window moves, WM_PAINT messages, and pausing caused by losing focus to other applications. In exclusive (full-screen) mode it uses page flipping rather than blitting to update the scene.