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