| Microsoft® Windows® Script Interfaces IActiveScriptSite::GetItemInfo |
Language Reference Previous Next |
HRESULT IActiveScriptSite::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 );
Allows the scripting engine to obtain information about an item added with the IActiveScript::AddNamedItem method.
| Return Value | Meaning |
| S_OK | Success. |
| E_INVALIDARG | An argument was invalid. |
| E_POINTER | An invalid pointer was specified. |
| TYPE_E_ELEMENTNOTFOUND | An item of the specified name was not found. |
| Value | Meaning |
| SCRIPTINFO_IUNKNOWN | Return the IUnknown interface for this item. |
| SCRIPTINFO_ITYPEINFO | Return the ITypeInfo interface for this item. |
This method retrieves only the information indicated by the dwReturnMask parameter; this improves performance. For example, if an ITypeInfo interface is not needed for an item, it is simply not specified in dwReturnMask.