CreateWinstation method of the Win32_TerminalServiceSetting class

The CreateWinstation method creates a new listener stack based on the unique combination of listener name and NIC.

Syntax


uint32 CreateWinstation(
  [in]  string Name,
  [in]  string WinstaDriverName,
  [in]  uint32 LanaId
);

Parameters

Name [in]

Listener name.

WinstaDriverName [in]

The winstation driver name.

Windows Server 2003 and Windows XP:  This parameter is not supported. However, a Windows XP-based client can set this parameter remotely on a Windows Server 2008-based or a Windows Vista-based computer.

LanaId [in]

NetBIOS Local Area Network Adapter (LANA) number for the NIC.

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

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2\TerminalServices on Windows Vista and Windows Server 2008

MOF

Tscfgwmi.mof

DLL

Tscfgwmi.dll

See also

Win32_TerminalServiceSetting

 

 

Show:
© 2014 Microsoft