AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Systemeigenschaften öffnen

Ein Thema von NikoMitDaMacht · begonnen am 5. Mai 2004 · letzter Beitrag vom 10. Mai 2004
Antwort Antwort
Benutzerbild von NikoMitDaMacht
NikoMitDaMacht

Registriert seit: 27. Apr 2004
Ort: Freiburg
298 Beiträge
 
Delphi 6 Enterprise
 
#1

Systemeigenschaften öffnen

  Alt 5. Mai 2004, 21:08
Wie kann ich mit ShellExecute die Systemeigenschaften öffnen (%root%\system32\sysdm.cpl)
Niko
Alles was ein Ende hat, hat auch ein Anfang
  Mit Zitat antworten Zitat
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
Benutzerbild von NikoMitDaMacht
NikoMitDaMacht

Registriert seit: 27. Apr 2004
Ort: Freiburg
298 Beiträge
 
Delphi 6 Enterprise
 
#3

Re: Systemeigenschaften öffnen

  Alt 10. Mai 2004, 18:17
Cool, danke!
Doch...
Zitat:
Abfrage des Rückgabewertes nicht vergessen
Niko
Alles was ein Ende hat, hat auch ein Anfang
  Mit Zitat antworten Zitat
NicoDE
(Gast)

n/a Beiträge
 
#4

Re: Systemeigenschaften öffnen

  Alt 10. Mai 2004, 18:24
Zitat von NikoMitDaMacht:
MSDN-Library durchsuchenShellExecute
Zitat:
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. The only thing that can be done with the returned HINSTANCE is to cast it to an int and compare it with the value 32 or one of the error codes below.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz