tried this (from the help manual example)?

#include <d3d9.h>

Don
have a great day