MI_DestinationOptions_SetDestinationPort function (mi.h)

Set the port to use to communicate to the destination.

Syntax

MI_INLINE MI_Result MI_DestinationOptions_SetDestinationPort(
  [in, out] MI_DestinationOptions *options,
            MI_Uint32             port
);

Parameters

[in, out] options

A pointer to a MI_DestinationOptions object returned from the MI_Application_NewDestinationOptions function.

port

Transport port used to communicate with the server.

Return value

A value of the MI_Result enumeration that specifies the function return code. This can be one of the following codes.

Remarks

Not all transports and protocols will allow the port to be changed, in which case setting this option will be ignored. The default port used is transport-specific.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header mi.h
Redistributable Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

See also

MI_Application_NewDestinationOptions

MI_DestinationOptions

MI_DestinationOptions_GetDestinationPort