Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|
DLL |
|