EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

MI_Session_TestConnection function

Tests a connection by communicating with the server represented by the session to determine whether it is responding.

Syntax


 MI_INLINE void MI_Session_TestConnection(
  _In_     MI_Session            *session,
           MI_Uint32             flags,
  _In_opt_ MI_OperationCallbacks *callbacks,
  _Out_    MI_Operation          *operation
);

Parameters

session [in]

Session handle returned from MI_Application_NewSession.

flags

Must be 0.

callbacks [in, optional]

Optional MI_OperationCallbacks structure that defines the operational callbacks to receive the instance result and CIM semantics. To carry out the operation asynchronously, the structure's instanceResult callback member must be specified. If this member is not specified, the client must call the MI_Operation_GetInstance function to retrieve the results.

operation [out]

Returned operation handle that must be closed via MI_Operation_Close once complete. Calling MI_Operation_Cancel before it is complete will cause the operation to shutdown. MI_Operation_Close and MI_Operation_Cancel can be called from any operation.

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

See also

MI_OperationCallbacks
MI_Operation_GetInstance
MI_Application_NewSession
MI_Operation_Cancel
MI_Operation_Close

 

 

Mostrar:
© 2015 Microsoft