Mirror

How to open the Windows screen mode dialog (Views: 100)


Problem/Question/Abstract:

Is there a way to open the default Windows dialog for screen settings (screen resolution, colors etc.) by a Delphi application?

Answer:

uses
  ShellAPI;

{ ... }
ShellExecute(HInstance, nil, PCHAR('rundll32.exe'), PCHAR('shell32.dll,
  Control_RunDLL desk.cpl, , 3') { 3 is the tab index }, NIL, 1);

<< Back to main page