Kann jetzt sein, dass ich ins Fettnäpfchen trete, aber wenn das so ist:
Code:
LONG ChangeDisplaySettingsEx(
LPCTSTR lpszDeviceName, // name of display device
LPDEVMODE lpDevMode, // graphics mode
HWND hwnd, // not used; must be NULL
DWORD dwflags, // graphics mode options
LPVOID lParam // video parameters (or NULL)
);
lpszDeviceName
[in] Pointer to a null-terminated string that specifies the display device whose graphics mode will change. Only display device names as returned by EnumDisplayDevices are valid. See EnumDisplayDevices for further information on the names associated with these display devices.
Und der erste Parameter nil ist:
ChangeDisplaySettingsEx(nil, aDevMode, Handle, 0, nil);
Dann kann das doch gar nicht gehen ... oder ?