SetNetworkAdapterLanaID method of the Win32_TSNetworkAdapterSetting class
The SetNetworkAdapterLanaID method specifies the Local Area Network Adapter (LANA) number of the network adapter to set. If the LANA ID specified is not valid or does not exist, an error is returned. The available list of LANA IDs is obtained by enumerating the property DeviceIDList in the Win32_TSNetworkAdapterSetting class.
Syntax
uint32 SetNetworkAdapterLanaID(
[in] uint32 NetworkAdapterLanaID
);
Parameters
-
NetworkAdapterLanaID [in]
-
LANA number of the network adapter to set.
Return value
Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.
Remarks
Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|