EnableTransport method of the Win32_TSGatewayServerSettings class

Enables or disables the specified transport.

Syntax

uint32 EnableTransport(
  [in] uint16  TransportType,
  [in] boolean Enable
);

Parameters

TransportType [in]

Specifies the transport type. This must be one of the following values.

0

RPC over HTTP transport.

1

HTTP transport.

2

UDP transport.

Enable [in]

Specifies if the transport is enabled or disabled.

Return value

If the method succeeds, it returns zero. If the method is unsuccessful, it returns a nonzero value. For a list of error codes, see Remote Desktop Services WMI Provider Error Codes.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\TerminalServices
MOF
TSGateway.mof
DLL
AagWmi.dll

See also

Win32_TSGatewayServerSettings