次の方法で共有


Adapter Functions

These Adapter functions are COM support functions, which are used by code that is generated by Convert-MofToProvider.exe and written to WMIAdapter.c.

[!Important]
These functions are only used by generated code and should not be used by developers.

 

In this section

Adapter_DllCanUnloadNow

Exposes the DllCanUnloadNow function to a provider. This function allows a provider to call the adapter function DllCanUnloadNow, which determines whether the DLL that implements this function is in use.

Adapter_DllGetClassObject

Retrieves an interface pointer that a provider can use to communicate with the specified class object. The interface exposes the DllGetClassObject function to the provider. The CoGetClassObject function locates, and if necessary, dynamically loads the executable code that is required by this operation.

Adapter_RegisterDLL

Registers a provider DLL when Mofcomp.exe or Register-CimProvider.exe are used to register the provider with the WMI infrastructure.

Adapter_UnRegisterDLL

Removes the registration of the provider DLL when Mofcomp.exe or Register-CimProvider.exe are used to register the provider with the WMI infrastructure.