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.
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.|
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.
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);
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|
|Header||wbemcli.h (include Wbemidl.h)|