RE: [GD-Windows] (no subject)
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2003-03-30 17:23:04
|
>Interesting. I would do it with EnumDisplaySettings passing in >something like ENUM_CURRENT_SETTINGS: > >struct foo { DEVMODE dm; char driversSuck[ 1024 ]; }; foo f;= BOOL b >=3D EnumDisplaySettings( NULL, ENUM_CURRENT_SETTINGS, &f.dm ); > >Look at f.dm.dmPelsWidth, f.dm.dmPelsHeight and= f.dm.dmBitsPerPel. > >The "driversSuck" field is empirically determined to be= necessary on >some systems to avoid stack overwrites. I'm assuming you actually set dm.dmSize =3D sizeof( DEVMODE )? If= not, that could cause stuff to explode I would imagine. Brian |