one more thing, i didnt include any error checking at all. you should check the return value of SystemParametersInfo it returns a boolean telling you wether the call was successful or not. If it fails you should call GetLastError
Here is the MSDN page explaining the function:
http://msdn.microsoft.com/library/de...metersinfo.asp