MI_Operation_GetSession function (mi.h)
Gets the session associated with an operation.
Syntax
MI_INLINE MI_Result MI_Operation_GetSession(
[in] MI_Operation *operation,
[out] MI_Session *session
);
Parameters
[in] operation
Operation handle returned from an instance session operation.
[out] session
Returned session that was used to create the operation. Copy of the parent session that initiated the operation.
Return value
None
Remarks
This function is useful in a result asynchronous callback if a new operation needs to be initiated against the same session.
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 |