MI_DestinationOptions_GetPacketEncoding函式 (mi.h)

取得先前設定的封包編碼設定。

語法

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

參數

[in] 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 上Windows Management Framework 3.0 SP1、Windows 7 SP1 和 Windows Server 2008 SP2

另請參閱

Windows 遠端管理