MI_Application_NewClass function (mi.h)
Creates an MI_Class from an MI_ClassDecl structure. The resulting MI_Class structure must be closed by using the MI_Class_Delete function.
Syntax
MI_INLINE MI_Result MI_Application_NewClass(
[in] MI_Application *application,
[in] const MI_ClassDecl *classDecl,
[in, optional] const MI_Char *namespaceName,
[in, optional] const MI_Char *serverName,
[out] MI_Class **classObject
);
Parameters
[in] application
Handle returned from MI_Application_Initialize.
[in] classDecl
The MI_ClassDecl for the class to create.
[in, optional] namespaceName
The optional namespace name.
[in, optional] serverName
The optional server name.
[out] classObject
The resultant MI_Class structure.
Return value
A value of the MI_Result enumeration that specifies the function return code. This can be one of the following codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 |
Target Platform | Windows |
Header | mi.h |
Library | Mi.lib |
DLL | Mi.dll |