Sample Programs

[This is preliminary documentation and subject to change.]

Two sets of sample programs are provided with the Web-Based Enterprise Management (WBEM) SDK: Component Object Model (COM) samples and Visual Basic samples. Sample program files, including source code, are located in the Vc and Vb subdirectories of the \Wbem\Samples directory. In addition to the brief descriptions here, each sample contains a Readme.txt file describing it.

ClientSample

[This is preliminary documentation and subject to change.]

ClientSample is a dialog-based application created by the Microsoft® Visual Studio™ AppWizard and uses the Microsoft Foundation Class (MFC) Library to simplify the process. This sample application demonstrates some more important WBEM capabilities such as connecting to a namespace, listing logical disks, and adding users to a WBEM workgroup.

Customview

[This is preliminary documentation and subject to change.]

Customview provides a description of the custom views for the Common Information Model (CIM) and the corresponding Automation interface. These custom views provide alternative views for object instances contained in the CIM Object Manager (CIMOM) repository. Any number of views can be defined for each class stored in the CIMOM repository.

For more information on Customview, please see the Readme.txt file in the Samples\Customv subdirectory of the WBEM installation directory.

EventConsumer

[This is preliminary documentation and subject to change.]

EventConsumer is a tutorial demonstrating a permanent event consumer. This application demonstrates how to implement a simple IWBEMUnboundObjectSink and its class factory. You must generate your own class identifier (CLSID) when building your permanent provider.

Instprov

[This is preliminary documentation and subject to change.]

Instprov is an example of an instance provider application. This sample is a small C++ dynamic-link library (DLL) that does not use any sort of framework.

For more information on Instprov, see the Readme.txt file in the Samples\Instprov subdirectory of the WBEM installation directory.