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.
There are only 10 types of people: those who understand binary and those who don't.