SECAScriptHost::AddTopLevelItem
HRESULTSECAScriptHost::AddTopLevelItem(LPCOLESTRpstrItemName, LPDISPATCHlpDisp, CWnd*pItemWnd, DWORDdwItemFlags)
Add a top-level OLE automation object to this script
Defined in: ScriptHost.cpp
Return Value
HRESULT as appropriate
Parameters
pstrItemName
Item name as OLE string
lpDisp
IDispatch interface
pItemWnd
Window associated with control. Can be NULL.
dwItemFlags
Item flags to be passed to AddNamedItem
Comments
This function can be used to add a top-level form object to the embedded script.