SystemParametersInfo is a powerful function which does and retrieves whole lot of things related to windows general behavior for eg: turning on and off certain features like mouse trails which we normally do via control panel->main.cpl
Look up MSDN for more information on SystemParametersInfo. I’ll just show a demo on how to turn on and off mouse trails…
// Turn on mouse trails, showing 10 cursors drawn in the trail SystemParametersInfo( SPI_SETMOUSETRAILS, 10, 0, 0 ); // Turn off mouse trails, set trail count to 1 or zero to disable trails SystemParametersInfo( SPI_SETMOUSETRAILS, 1, 0, 0 );
