To change the multisampling in C++ do this:
define a D3DPRESENT_PARAMETERS struct and call
device9->reset(pNewPresentParameters);