Transformations are applied using the IDirect3DDevice3::SetTransform method. For example, you could use code like this to set the view transformation:
HRESULT hr
D3DMATRIX view;
// Fill in the view matrix.
hr = lpDev->SetTransform(D3DTRANSFORMSTATE_VIEW, &view);
if(FAILED(hr))
return hr;
There are three possible settings for the first parameter in a call to IDirect3DDevice3::SetTransform: D3DTRANSFORMSTATE_WORLD, D3DTRANSFORMSTATE_VIEW, and D3DTRANSFORMSTATE_PROJECTION. These transformation states are defined in the D3DTRANSFORMSTATETYPE enumerated type.