You dont even need the SDK to do this, you can simply hook any engine function.
Theres engine_start, frame and end, you can also hook the engine message handler to catch the messages.
You can also take a look an EndScene and Reset of the D3D-Device laugh