Instead of
IID_IUnknown
, try
IID_IDispatch
. This is the one with
GetTypeInfoCount
and
GetIDsOfNames
.
Anyway, I'd suggest using the following:
#import "C:\WINDOWS\system32\wshom.ocx" named_guids rename_namespace("ws")
You'll get some smart pointers in namespace "ws".
Hope this helps,
Pablo.