STDAPI CoCreateInstance(
REFCLSID rclsid, //Class identifier (CLSID) of the object
LPUNKNOWN pUnkOuter, //Pointer to controlling IUnknown
DWORD dwClsContext, //Context for running executable code
REFIID riid, //Reference to the identifier of the interface
LPVOID * ppv //Address of output variable that receives
// the interface pointer requested in riid
);
那些参数是什么类型啊,比如REFCLSID,LPUNKNOWN这些参数我该怎么传啊。
REFCLSID rclsid, //Class identifier (CLSID) of the object
LPUNKNOWN pUnkOuter, //Pointer to controlling IUnknown
DWORD dwClsContext, //Context for running executable code
REFIID riid, //Reference to the identifier of the interface
LPVOID * ppv //Address of output variable that receives
// the interface pointer requested in riid
);
那些参数是什么类型啊,比如REFCLSID,LPUNKNOWN这些参数我该怎么传啊。
LPUNKNOWN填void **
Win32_UninterruptiblePowerSupply
这个是windows msdn里面的,就是这个不知道怎么使用,听人说,需要使用com组件。那我现在怎么通过组件使用Win32_UninterruptiblePowerSupply
http://technet.microsoft.com/zh-cn/library/aa394558(v=vs.85).aspx