Export (0) Print
Expand All

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.

MethodDescription
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.

 

Structures

The IMofCompiler interface has these structures.

StructureDescription
WBEM_COMPILE_STATUS_INFO

Describes an error for the IMofCompiler interface.

 

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 Vista

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Mofd.dll

See also

COM API for WMI
mofcomp
Running the MOF Compiler on a File
MOF Data Types

 

 

Show:
© 2014 Microsoft