MI_Context_ConstructInstance函数 (mi.h)
初始化堆栈上的 MI 类实例或作为 结构的成员。
语法
MI_INLINE MI_Result MI_INLINE_CALL MI_Context_ConstructInstance(
[in] MI_Context *context,
[in] const MI_ClassDecl *classDecl,
[out] MI_Instance *instance
);
参数
[in] context
指向请求上下文的指针。
[in] classDecl
指向用于初始化实例的类声明的指针。
[out] instance
指向返回的实例的指针。
返回值
此函数返回MI_INLINE MI_Result MI_INLINE_CALL。
注解
你负责在堆栈或堆) 上保留实例 (内存。 使用完 实例后,通过调用 MI_Instance_Destruct 函数将其删除。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 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 |