The PPlane program is a simple example of how to create Direct3D Immediate Mode programs.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\Pplane
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin
Press F1 to see available commands.
In addition to demonstrating Direct3D Immediate Mode programming techniques, this application contains a flocking algorithm used to animate the paper planes.