SelectItem
Select an item in the tree View.
The item is identified by the type of COM opject supplied (can be IEvtCfgSource, IEvtCfgEvent or IEvtCfgDocLink).
If neccessary, subitems are identified by enum EVTCFGEDITOR_ITEMTYPES and a language Id.
HRESULT SelectItem([in] IDispatch* pItem,
[in, defaultvalue(TYPE_NULL)] EVTCFGEDITOR_ITEMTYPES subItem,
[in, defaultvalue(0)] LONG langId
);
Parameters
pItem
[in] IDispatch pointer which contains a pointer to one of the interfaces mentioned above
subItem
[in] Subitem to be selected. If TYPE_NULL, the item itself is selected. See the EVTCFGEDITOR_ITEMTYPES for more details.
If subItem is TYPE_SRCNAME, TYPE_EVTMSG or TYPE_URL, a language Id for the item to be selected must be specified.
langId
[in] Language identifier of the item to be selected.
Return Values
S_OK
The item was selected as requested.
E_FAIL
The requested Item could not be selected, e.g. because the subitem does not match the supplied item type, or an item could not be found in the specified language.
E_POINTER
pItem was no valid pointer