HI
Due to a faulty graphics driver I need to be able to change my display settings dynamically.
I know that I should use DLL calls to user32.dll, and I know that I should use the EnumDisplaySetting and ChangeDisplaySettings. But No matter what I try my LV 6.02 crashes.
I can not use G-Tool as I'm not allowed to buy it. and the shareware version dosn't include this functionality.
I have found the following links to be helpfull (but not enough):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_84oj.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_7gz7.asp
Can anyone please give me a hint. I suspect this is due to a bad choice
of input/output datatypes.
Attached is the code I have so far (it does not work)