GetSelectedItem
Get the current selection in the tree View.
The item is identified by the type of COM opject returned (can be IEvtCfgSource, IEvtCfgEvent or IEvtCfgDocLink).
Subitems are identified by Enum EVTCFGEDITOR_ITEMTYPES and a language Id.
HRESULT GetSelectedItem([out]
IDispatch** ppItem, [out] EVTCFGEDITOR_ITEMTYPES* subItem, [out]
LONG* langId);
Parameters
ppItem
[out] Pointer to IDispatch pointer. It contains a pointer to one of the interfaces mentioned above
subItem
[out] Selected subitem. 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, langId contains valid data.
langId
[out] Language identifier of the selected item.
Return Values
S_OK
Function completed successfully.
E_POINTER
ppItem was no valid pointer.