IActiveScriptSite::GetItemInfo
Allows the scripting engine to obtain information about an item added with the IActiveScript::AddNamedItem method.
HRESULT GetItemInfo(
LPCOLESTR pstrName, // address of item name
DWORD dwReturnMask, // bit mask for information retrieval
IUnknown **ppunkItem, // address of pointer to item's IUnknown
ITypeInfo **ppTypeInfo // address of pointer to item's ITypeInfo
);