EN
本內容沒有您的語言版本,但有英文版本。

MI_Application_NewDestinationOptions function

Creates an MI_DestinationOptions object that can be used with the MI_Application_NewSession function.

Syntax


 MI_INLINE MI_Result MI_Application_NewDestinationOptions(
  _In_   MI_Application *application,
  _Out_  MI_DestinationOptions *options
);

Parameters

application [in]

Handle returned from MI_Application_Initialize.

options [out]

Options container that is returned from this function.

Return value

Return codeDescription
MI_RESULT_OK

The operation succeeded.

MI_RESULT_SERVER_LIMITS_EXCEEDED

There is not enough memory to complete the request.

MI_RESULT_INVALID_PARAMETER

One or more parameters passed to the function were not valid.

MI_RESULT_FAILED

A failure not covered by other MI_Result error codes.

 

Remarks

Destination options are used to store the configuration associated with connecting to the destination computer. The available options can vary depending on the underlying protocol. If the session and operations on that session just need to work with the current thread identity (or process if thread is not impersonating), then additional settings may not be needed.

Options must be closed by a call to MI_DestinationOptions_Delete.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

顯示:
© 2014 Microsoft