Skip to content

Latest commit

 

History

History
150 lines (94 loc) · 5.76 KB

nf-wbemcli-imofcompiler-compilebuffer.md

File metadata and controls

150 lines (94 loc) · 5.76 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wbemcli.IMofCompiler.CompileBuffer
IMofCompiler::CompileBuffer (wbemcli.h)
The IMofCompiler::CompileBuffer method compiles either a buffer containing binary MOF data or a text buffer in ASCII format.
CompileBuffer
CompileBuffer method [Windows Management Instrumentation]
CompileBuffer method [Windows Management Instrumentation]
IMofCompiler interface
IMofCompiler interface [Windows Management Instrumentation]
CompileBuffer method
IMofCompiler.CompileBuffer
IMofCompiler::CompileBuffer
WBEM_FLAG_AUTORECOVER
WBEM_FLAG_CHECK_ONLY
WBEM_FLAG_CONSOLE_PRINT
WBEM_FLAG_DONT_ADD_TO_LIST
_hmm_imofcompiler_compilebuffer
wbemcli/IMofCompiler::CompileBuffer
wmi.imofcompiler_compilebuffer
wmi\imofcompiler_compilebuffer.htm
wmi
7f3cc061-839e-49c2-a225-452719f155a9
12/05/2018
CompileBuffer, CompileBuffer method [Windows Management Instrumentation], CompileBuffer method [Windows Management Instrumentation],IMofCompiler interface, IMofCompiler interface [Windows Management Instrumentation],CompileBuffer method, IMofCompiler.CompileBuffer, IMofCompiler::CompileBuffer, WBEM_FLAG_AUTORECOVER, WBEM_FLAG_CHECK_ONLY, WBEM_FLAG_CONSOLE_PRINT, WBEM_FLAG_DONT_ADD_TO_LIST, _hmm_imofcompiler_compilebuffer, wbemcli/IMofCompiler::CompileBuffer, wmi.imofcompiler_compilebuffer
wbemcli.h
Wbemidl.h
Windows
Windows Vista
Windows Server 2008
Wbemuuid.lib
Mofd.dll
Windows
19H1
IMofCompiler::CompileBuffer
wbemcli/IMofCompiler::CompileBuffer
c++
APIRef
kbSyntax
COM
Mofd.dll
IMofCompiler.CompileBuffer

IMofCompiler::CompileBuffer

-description

The IMofCompiler::CompileBuffer method compiles either a buffer containing binary MOF data or a text buffer in ASCII format. Binary MOF files contain parsed data and must be stored in the database. The CompileBuffer method only accepts multi-byte character arrays (string buffers) that are not NULL-terminated.

-parameters

-param BuffSize [in]

Size of the data pointed to by the pBuffer parameter.

-param pBuffer [in]

Pointer to the binary MOF file data or a text buffer in ASCII format.

-param ServerAndNamespace [in]

Name of the server and namespace.

This parameter is ignored unless the pBuffer parameter points to a text buffer. If the text MOF is passed without a #pragma statement, then the MOF file is compiled into the default namespace. If pBuffer points to a binary MOF file, then the ServerAndNamespace parameter must be NULL.

-param User [in]

Name of the user requesting the service.

This parameter specifies the credentials for compiling on remote computers. If the value is NULL, then the user context is whatever the current process is using. This is always ignored when connecting to the local computer. For more information, see the Remarks section.

-param Authority [in]

Specifies the credentials for compiling on remote computers. If the value is NULL, the authority context is whatever the current process is using. This parameter is always ignored when connecting to the local computer. For more information, see the Remarks section.

-param Password [in]

Specifies the credentials for compiling on remote computers. If the value is NULL, the password of the current context is used. This parameter is always ignored when connecting to the local computer.

-param lOptionFlags [in]

You can combine one or more of the following flags.

WBEM_FLAG_CHECK_ONLY

Performs only a syntax check.

WBEM_FLAG_AUTORECOVER

If the method is successful, it adds the file name to the list of files to be compiled during automatic database recovery.

This flag cannot be combined with the namespace, class, or instance flags.

WBEM_FLAG_CONSOLE_PRINT

Sends various useful messages to the console.

WBEM_FLAG_DONT_ADD_TO_LIST

Prevents the addition of the file to the list of files to be compiled during automatic database recovery.

This flag is not compatible with WBEM_FLAG_AUTORECOVER.

-param lClassFlags [in]

This parameter is ignored because the binary MOF file already contains the information. The parameter value should be 0.

-param lInstanceFlags [in]

Ignored because the binary MOF file already contains the information. The parameter value should be 0.

-param pInfo [in, out]

Pointer to a WBEM_COMPILE_STATUS_INFO that describes an error.

If the parameter value is not NULL, an error has occurred, and the structure is filled with error information.

-returns

This method returns WBEM_S_NO_ERROR if successful. If the method is unsuccessful, it returns WBEM_S_FALSE.

-remarks

If the User parameter takes the form <domain\user>, the Authority parameter must be NULL.

Binary MOF data can be generated by the CreateBMOF method, which stores the binary MOF data into a file that can be read before calling the CompileBuffer method.

-see-also

IMofCompiler

WBEM_COMPILER_OPTIONS