Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: Windows API / MS.NET Framework API (https://www.delphipraxis.net/20-library-windows-api-ms-net-framework-api/)
-   -   Delphi Dialog 'Netzwerkverbindungen' anzeigen (https://www.delphipraxis.net/16687-dialog-netzwerkverbindungen-anzeigen.html)

Kinimod8 21. Feb 2004 18:59


Dialog 'Netzwerkverbindungen' anzeigen
 
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(GetActiveWindow,
               'open',
               'rundll32.exe',
               'shell32.dll,Control_RunDLL ncpa.cpl,,4',
                NIL,
                SW_NORMAL);
end;
Vergesse nicht die Unit ShellApi (wegen ShellExecute) einzubinden.

[edit=Admin]Tippfehler im Titel korrigiert. Mfg, Daniel[/edit]


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz