MI_DestinationOptions_SetPacketEncoding函式 (mi.h)

設定特定通訊協定句柄的編碼機制。

語法

MI_INLINE MI_Result MI_DestinationOptions_SetPacketEncoding(
  [in, out] MI_DestinationOptions *options,
            const MI_Char         *encoding
);

參數

[in, out] options

從MI_Application_NewDestinationOptions函式傳回之MI_DestinationOptions物件的指標。

encoding

Null 終止的字串,表示下列其中一個編碼機制值。

MI_DESTINATIONOPTIONS_PACKET_ENCODING_DEFAULT (“default”)

每個 WinRM 通訊協定處理程式的傳輸特定預設編碼。

MI_DESTINATIONOPTIONS_PACKET_ENCODING_UTF8 (“UTF8”)

UTF-8 編碼。

MI_DESTINATIONOPTIONS_PACKET_ENCODING_UTF16 (“UTF16”)

UTF-16 編碼。

傳回值

指定函式傳回碼的 MI_Result 列舉值。 這可以是下列其中一個程序代碼。

規格需求

需求 值
最低支援的用戶端 Windows 8
最低支援的伺服器 Windows Server 2012
目標平台 Windows
標頭 mi.h
可轉散發套件 windows Server 2008 R2 SP1、Windows 7 SP1 和 Windows Server 2008 SP2 上的 Windows Management Framework 3.0

另請參閱

MI_Application_NewDestinationOptions

MI_DestinationOptions

MI_DestinationOptions_GetPacketEncoding

Windows 遠端管理