For example changing the D3DApp-Unit to works pretty well.
This is not guarantied to work, cos you should validate some rules: only 32bit or 16bit display modes are supported, back buffer must be lockable.