Click here to Skip to main content
15,891,673 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
I have create the wmi provider .
Its working fine.
i have two classes in that name as

cObject1, cObject2.


This is entry of my dll, if i create the object for cObject1 then cObject1 funcaiton are calling
That time i need to query the cObject1 object alone.

if want to call both the class at same time means wmi query if i did cObject2 also it suppose to query its own funcation and need to return the value.


C++
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{

}

For both class i am using single GUID
how to achieve that.
Posted
Updated 5-Dec-13 21:55pm
v3

1 solution

You cannot use the same GUID for two different classes. How is the system expected to determine which one you are referring to? See Introduction to COM - What It Is and How to Use It.[^] for a useful article on COM.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900