wrong:
right:szDevice: array[0..CCHDEVICENAME] of AnsiChar;
Simply use the MONITORINFOEX-definition from the workaround and it should work just fine.szDevice: array[0..CCHDEVICENAME - 1] of AnsiChar;
Edit:
Oh, they are already fixed in 2007. Ok try following: Instead of writing
writeCode:not(GetMonitorInfo(...));
Actually it should return bool, but maybe they did something wrong on the translation.Code:not(GetMonitorInfo(...)<>0);
Bookmarks