The INetwork interface represents a network on the local machine. It can also represent a collection of network connections with a similar network signature.
Methods
The INetwork interface inherits the methods of the IUnknown interface.
In addition, INetwork defines the following methods.
Properties
The INetwork interface defines the following properties.
Remarks
The COM Object that implements INetwork also implements a property bag for additional properties. To get access to this property bag you can use the INetwork interface and QueryInterface for IPropertyBag. The property bag on this COM Object contains the following properties:
| Parameter | Type | Description |
| NA_DomainAuthenticationFailed | VT_BOOL | Specifies that a domain network is not able to authenticate against the domain controller. |
| NA_NetworkClass | NP_NETWORK_CLASS stored as VT_UINT | Specifies the class of network. This parameter will hold the default category value of NLM_NETWORK_CATEGORY_PUBLIC if a specific value is not set by the Group Policy. Possible values include:
-
NP_NETWORK_IDENTIFYING (0x01)
This is the special "Identifying" network. No properties on this network class can be changed.
-
NP_NETWORK_IDENTIFIED (0x02)
This is an Identified network.
-
NP_NETWORK_UNIDENTIFIED (0x03)
This is the special "Unidentified" network. The category of this network can be changed, but it will not persist when the network is disconnected.
|
| NA_NameSetByPolicy | VT_BOOL | The name of the network has been set by group policy. |
| NA_IconSetByPolicy | VT_BOOL | The icon of the network has been set by group policy. |
| NA_DescriptionSetByPolicy | VT_BOOL | The description of the network has been set by group policy. |
| NA_CategorySetByPolicy | VT_BOOL | The category of the network has been set by group policy. |
| NA_NameReadOnly | VT_BOOL | The name of the network is read only. |
| NA_IconReadOnly | VT_BOOL | The icon of the network is read only. |
| NA_DescriptionReadOnly | VT_BOOL | The description of the network is read only. |
| NA_CategoryReadOnly | VT_BOOL | The category of the network is read only. |
| NA_AllowMerge | VT_BOOL | The network can be merged with another network. |
The IPropertyBag interface accepts LPCOLESTR as part of the IPropertyBag::Read and IPropertyBag::Write methods. For convenience, the string values for these properties are defined inside netlistmgr.h using the same names.
Requirements
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | Netlistmgr.h |
| IDL | Netlistmgr.idl |
Send comments about this topic to Microsoft
Build date: 11/19/2009