Create method of the Win32_Terminal class

The Create method creates a terminal with default settings which can be customized by using the properties and methods of the Win32_TerminalSetting classes. The function returns zero on success and an error on failure.

Syntax


uint32 Create(
  [in]  string NewTerminalName,
  [in]  string Transport,
  [in]  string TerminalProtocol
);

Parameters

NewTerminalName [in]

Name of the terminal.

Transport [in]

Transport for the terminal. This is a property of the Win32_TSGeneralSetting class.

TerminalProtocol [in]

Protocol for the terminal. This is a property of the Win32_TSGeneralSetting class.

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 Vista

Minimum supported server

Windows Server 2008

Namespace

\root\CIMV2\TerminalServices

MOF

Tscfgwmi.mof

DLL

Tscfgwmi.dll

See also

Win32_Terminal

 

 

Show:
© 2014 Microsoft. All rights reserved.