Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Dialog nicht anzeigen (https://www.delphipraxis.net/20099-dialog-nicht-anzeigen.html)

mumu 13. Apr 2004 17:37


Dialog nicht anzeigen
 
Wenn ich die Funktion INetSharingConfiguration::EnableSharing (siehe EnableSharing bei MSDN) aufrufe kommt immer ein Dialog der bestätigt werden muss. Dies möchte ich jedoch verhindern.

die MSDN schreibt dazu...
Zitat:

Remarks
Calling this method triggers the following notification:

%programname% is attempting to enable Internet Connection Sharing on the network connection %connectionname%. This will allow other computers on your network to connect to the Internet through a shared public connection. Do you want %programname% to enable Internet Connection Sharing on this connection?

If the calling application specifies that this connection is publicly shared, any previous publicly-shared connection is automatically disabled.

A publicly-shared connection automatically has Internet Connection Firewall enabled. Privately-shared connections retain their existing settings.
hat jemand eine idee wie ich die oben fett geschriebene Meldung, welche immer auftritt wenn ich EnableSharing ausführe, verhindern kann?

shmia 13. Apr 2004 17:48

Re: Dialog nicht anzeigen
 
I denke mal, das geht nicht, da Micro$aft verhindern möchte, dass beliebige
Programme den Computer offen wie ein Scheunentor machen, ohne dass der Benutzer etwas
davon mitbekommt.
Möchtest du, dass andere auf deine Kosten im Internet surfen können ? :shock:

mumu 13. Apr 2004 19:17

Re: Dialog nicht anzeigen
 
hmm schon einleuchtend. nur man kann ja auch auswählen, Dialog nicht mehr anzeigen. daher müsste es ja auch möglich sein, diese funktion schon von anfang an zu aktivieren?


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:02 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