Einzelnen Beitrag anzeigen

NicoDE
(Gast)

n/a Beiträge
 
#2

Re: Systemeigenschaften öffnen

  Alt 5. Mai 2004, 21:26
Delphi-Quellcode:
  ShellExecute(Handle, nil, 'sysdm.cpl', nil, nil, SW_SHOwDEFAULT);
  // oder
  ShellExecute(Handle, 'cplopen', 'sysdm.cpl', nil, nil, SW_SHOwDEFAULT);
  // oder (bestimmte Seite)
  ShellExecute(Handle, 'cplopen', 'sysdm.cpl', 'sysdm.cpl,3', nil, SW_SHOwDEFAULT);
  // oder (bestimmter User)
  ShellExecute(Handle, 'runas', 'sysdm.cpl', 'sysdm.cpl,3', nil, SW_SHOwDEFAULT);
Abfrage des Rückgabewertes nicht vergessen
  Mit Zitat antworten Zitat