IMofCompiler interface (wbemcli.h)
The IMofCompiler interface, implemented by Mofd.dll, provides a COM interface that is used by the Managed Object Format (MOF) compiler and any other applications that compile MOF files. Objects defined as classes in the MOF files can be obtained using the CLSID_MofCompiler CLSID value.
Inheritance
The IMofCompiler interface inherits from the IUnknown interface. IMofCompiler also has these types of members:
Methods
The IMofCompiler interface has these methods.
IMofCompiler::CompileBuffer The IMofCompiler::CompileBuffer method compiles either a buffer containing binary MOF data or a text buffer in ASCII format. |
IMofCompiler::CompileFile The IMofCompiler::CompileFile method compiles a MOF file (including binary MOFs) and stores the information in the WMI repository. |
IMofCompiler::CreateBMOF The IMofCompiler::CreateBMOF method creates a binary MOF file. |
Remarks
Windows 8: When installing a provider the IMofCompiler interface treats the [Key] and [Static] qualifiers as true if they are present, regardless of their actual values. Other qualifiers are treated as false if they are present but not explicitly set to true.
Examples
The following code is an example of how to create a pointer to an IMofCompiler object.
IMofCompiler *pMof = NULL;
CoCreateInstance(
CLSID_MofCompiler,
0,
CLSCTX_INPROC_SERVER,
IID_IMofCompiler,
(LPVOID *) &pMof);
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wbemcli.h (include Wbemidl.h) |