Skip to content

Latest commit

 

History

History
190 lines (155 loc) · 5.13 KB

nf-netcon-inetsharingmanager-get_netconnectionprops.md

File metadata and controls

190 lines (155 loc) · 5.13 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.INetSharingManager.get_NetConnectionProps
INetSharingManager::get_NetConnectionProps (netcon.h)
The get_NetConnectionProps method retrieves a properties interface for the specified connection.
INetSharingManager interface [ICS/ICF]
get_NetConnectionProps method
INetSharingManager.get_NetConnectionProps
INetSharingManager::get_NetConnectionProps
_ics_inetsharingmanager_get_netconnectionprops
get_NetConnectionProps
get_NetConnectionProps method [ICS/ICF]
get_NetConnectionProps method [ICS/ICF]
INetSharingManager interface
ics.inetsharingmanager_get_netconnectionprops
netcon/INetSharingManager::get_NetConnectionProps
ics\inetsharingmanager_get_netconnectionprops.htm
ics
bf2db553-f324-4f23-b96e-f8ae703aa3ea
12/05/2018
INetSharingManager interface [ICS/ICF],get_NetConnectionProps method, INetSharingManager.get_NetConnectionProps, INetSharingManager::get_NetConnectionProps, _ics_inetsharingmanager_get_netconnectionprops, get_NetConnectionProps, get_NetConnectionProps method [ICS/ICF], get_NetConnectionProps method [ICS/ICF],INetSharingManager interface, ics.inetsharingmanager_get_netconnectionprops, netcon/INetSharingManager::get_NetConnectionProps
netcon.h
Windows
Windows XP [desktop apps only]
None supported
Hnetcfg.dll
Windows
19H1
INetSharingManager::get_NetConnectionProps
netcon/INetSharingManager::get_NetConnectionProps
c++
APIRef
kbSyntax
COM
Hnetcfg.dll
INetSharingManager.get_NetConnectionProps

INetSharingManager::get_NetConnectionProps

-description

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

The get_NetConnectionProps method retrieves a properties interface for the specified connection.

-parameters

-param pNetConnection [in]

Pointer to an INetConnection interface for the connection for which to retrieve the properties interface.

-param ppProps [out]

Pointer to an interface pointer that, on successful return, points to an INetConnectionProps interface for the connection.

-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

Not all connections can be configured for sharing. Retrieve the properties for the connection to verify that the connection can be shared before calling INetSharingManager::get_INetSharingConfigurationForINetConnection.

-see-also

INetSharingManager

INetSharingManager::get_INetSharingConfigurationForINetConnection

Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference