
| Subject: | Wrong parameter type for EnumDisplaySettings? |
| Posted by: | Steve Wyatt (ste…@methods.com) |
| Date: | Thu, 31 Jul 2008 |
I am using Delphi 2006 VCL.NET, and am trying to use the EnumDisplaySettings
function. First of all, there is no ENUM_CURRENT_SETTINGS value defined for
Delphi, but I think the larger problem is that the type for the "iModeNum"
parameter of EnumDisplaySettings is defined as "Cardinal" (DWORD in
Windows.pas), when it should actually be "Integer".
According to the MS documentation ENUM_CURRENT_SETTINGS should have an
integer value of -1 (which doesn't work in a Cardinal or DWORD type).
Does anyone know of an available fix for this problem?
Steve Wyatt