Implementing MI Provider (6) – Build, Register, and Debug

This blog discusses how to build, register and debug MI provider. Build To build MI provider, open visual studio 2012, create an empty Visual C++ project named “process”, set type to DLL, and add all generated files into the project. Open project property dialog box, navigate to linker page, click input option, Set Module Definition…


Implementing MI Provider (5) – Implement

As discussed in Implementing MI Provider (4) – Generate Code (continute), Convert-MofToProvider.exe tool generates <class name>.c file for each target class, which contains stub functions to place the business logic of each operation, such as enumerate/get/delete/modify/new/<extrinsic methods>. This blog discusses how to implement stub functions of normal (instance) classes, while association and indication class will be discussed…


Implementing MI Provider (4) – Generate Code (continute)

As described in Implementing MI Provider (3), Convert-MofToProvider.exe tool generates a set of code files, including schema.c, module.c, WMIAdapter.c, Provider.DEF, <class name>.h, and <class name>.c. There is one header file for each target class and all of it’s ancestor class(es) if have. And one c file for each target class (specified by -ClassList parameter). Header files…


Windows Management Framework 3.0 Compatibility Update

We have an important update regarding WMF 3.0 (“Windows Management Framework”) compatibility. Those who want to install WMF 3.0 to take advantage of all the great features this update provides can do so by installing the update from the Microsoft Download Center, after reading the known compatibility issues detailed in the blog post below. http://blogs.msdn.com/b/powershell/archive/2012/12/20/windows-management-framework-3-0-compatibility-update.aspx…

0