Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
function NewRes(XRes, YRes: DWORD; devnum : cardinal): Integer; var DevMode: TDeviceMode; lpDisplayDevice: TDisplayDevice; begin lpdisplaydevice.cb := sizeof(lpdisplaydevice); EnumDisplayDevices(nil,devnum,lpDisplayDevice,0 ); EnumDisplaySettings(lpdisplaydevice.DeviceName, 0, DevMode); DevMode.dmFields := DM_PELSWIDTH or DM_PELSHEIGHT or DM_DISPLAYFREQUENCY; DevMode.dmPelsWidth := XRes; DevMode.dmPelsHeight := YRes; //DevMode.dmDisplayFrequency := Frequency; Result := ChangeDisplaySettings(DevMode, 0); end;
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
8 Experts available now in Live!