Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.006 Beiträge
 
Delphi 2009 Professional
 
#8

AW: WLAN abschalten per Software

  Alt 11. Aug 2012, 08:04
evtl auch irgendwie über die WMI?!
Ja, WMI würde ich auch versuchen:

http://social.technet.microsoft.com/...-e61312888be5/

zeigt wie man über ein

Code:
"SELECT * FROM Win32_NetworkAdapter"
suchen und dann mit


Code:
objItem.Disable
den Adapter stoppen kann.

Für Delphi gibt es im Internet einen sehr hilfreichen Generator, der für WMI Funktionen den kompletten Delphi Sourcecode erzeugt.

http://code.google.com/p/wmi-delphi-code-creator/

Zitat:
The WMI Delphi Code Creator (WDCC), allows you to generate Object Pascal, Oxygene, C++ and C# code to access the WMI (Windows Management Instrumentation) classes, events and methods. Also includes a set of tools to explore and Query the content of the WMI.
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat