Autor Beitrag
hkayser
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mi 05.03.03 20:05 
Weiß jemand mit welchem Befehl man die Microsoft Internetverbindungsfreigabe (ICS) aktivieren bzw. deaktivieren kann?
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mi 05.03.03 20:50 
Zitiert aus dem Platform SDK:

Zitat:
The get_INetSharingConfigurationForINetConnection method retrieves an INetSharingConfiguration interface for the specified connection.

HRESULT get_INetSharingConfigurationForINetConnection(
INetConnection* pNetConnection,
INetSharingConfiguration** ppNetSharingConfiguration
);

Parameters
pNetConnection
Pointer to an INetConnection interface for an Internet connection.
ppNetSharingConfiguration
[out] Pointer to an interface pointer that, on successful return, points to an INetSharingConfiguration interface for the connection specified by the pNetConnection parameter.


Zitat:
INetSharingConfiguration::EnableSharing
The EnableSharing method enables sharing on this connection.

HRESULT EnableSharing(
SHARINGCONNECTIONTYPE Type
);

Parameters
Type
[in] Specifies whether this connection is shared publicly or privately.

Values
ICSSHARINGTYPE_PUBLIC
The connection is public.
ICSSHARINGTYPE_PRIVATE
The connection is private.


Zitat:
INetSharingConfiguration::DisableSharing
The DisableSharing method disables sharing on this connection. It also disables all mappings on this connection. It does not disable Internet Connection Firewall or bridge configuration.

HRESULT DisableSharing();

Parameters
This method has no parameters.


Ich hoffe, das ist das was du suchst.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.