Skip to content

Latest commit

 

History

History
196 lines (156 loc) · 5.39 KB

nf-netcon-inetsharingconfiguration-get_sharingenabled.md

File metadata and controls

196 lines (156 loc) · 5.39 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:netcon.INetSharingConfiguration.get_SharingEnabled
INetSharingConfiguration::get_SharingEnabled (netcon.h)
The get_SharingEnabled method determines whether sharing is enabled on this connection.
INetSharingConfiguration interface [ICS/ICF]
get_SharingEnabled method
INetSharingConfiguration.get_SharingEnabled
INetSharingConfiguration::get_SharingEnabled
_ics_inetsharingconfiguration_get_sharingenabled
get_SharingEnabled
get_SharingEnabled method [ICS/ICF]
get_SharingEnabled method [ICS/ICF]
INetSharingConfiguration interface
ics.inetsharingconfiguration_get_sharingenabled
netcon/INetSharingConfiguration::get_SharingEnabled
ics\inetsharingconfiguration_get_sharingenabled.htm
ics
b8872235-0ef3-4ade-8085-fd90f40549af
12/05/2018
INetSharingConfiguration interface [ICS/ICF],get_SharingEnabled method, INetSharingConfiguration.get_SharingEnabled, INetSharingConfiguration::get_SharingEnabled, _ics_inetsharingconfiguration_get_sharingenabled, get_SharingEnabled, get_SharingEnabled method [ICS/ICF], get_SharingEnabled method [ICS/ICF],INetSharingConfiguration interface, ics.inetsharingconfiguration_get_sharingenabled, netcon/INetSharingConfiguration::get_SharingEnabled
netcon.h
Windows
Windows XP [desktop apps only]
None supported
Hnetcfg.dll
Windows
19H1
INetSharingConfiguration::get_SharingEnabled
netcon/INetSharingConfiguration::get_SharingEnabled
c++
APIRef
kbSyntax
COM
Hnetcfg.dll
INetSharingConfiguration.get_SharingEnabled

INetSharingConfiguration::get_SharingEnabled

-description

[Internet Connection Firewall may be altered or unavailable in subsequent versions. Instead, use the Windows Firewall API.]

The get_SharingEnabled method determines whether sharing is enabled on this connection.

-parameters

-param pbEnabled [out]

Pointer to a VARIANT_BOOL variable that, on successful return, specifies whether sharing is enable on this connection. If sharing is enable, this value is TRUE. Otherwise, it is FALSE.

-returns

If the method succeeds the return value is S_OK.

If the method fails, the return value is one of the following error codes.

Return code Description
E_ABORT
The operation was aborted.
E_FAIL
An unspecified error occurred.
E_INVALIDARG
One of the parameters is invalid.
E_NOINTERFACE
A specified interface is not supported.
E_NOTIMPL
A specified method is not implemented.
E_OUTOFMEMORY
The method was unable to allocate required memory.
E_POINTER
A pointer passed as a parameter is not valid.
E_UNEXPECTED
The method failed for unknown reasons.

-remarks

To determine whether connection sharing is supported on the currently-installed operating system, use INetSharingManager::get_SharingInstalled.

Use the INetSharingManager::get_INetSharingConfigurationForINetConnection method to obtain an INetSharingConfiguration interface for a particular connection.

-see-also

INetSharingConfiguration

INetSharingConfiguration::DisableSharing

INetSharingConfiguration::EnableSharing

Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference

SHARINGCONNECTIONTYPE