forcing settings such as advanced anti aliasing (SSVCAA8x8 for example) through the driver with code

Can someone possibly write an example code that will allow me to change 3d settings such as anti aliasing through c++