IMofCompiler interface
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.
Members
The IMofCompiler interface inherits from the IUnknown interface. IMofCompiler also has these types of members:
Methods
The IMofCompiler interface has these methods.
| Method | Description |
|---|---|
| CompileBuffer |
Takes the information in a buffer and stores it in Windows Management. The buffer must contain binary MOF data. |
| CompileFile |
Compiles a particular MOF file. |
| CreateBMOF |
Reads a MOF file and outputs binary MOF data to another 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
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012