IDSAddIn::OnConnection (Windows CE 5.0)
This method loads an add-in.
HRESULT OnConnection ( IApplication* pApp,VARIANT BOOLbFirstTime,LongdwCookie VARIANT_BOOL* OnConnection
);
Parameters
pApp
[in] Pointer to the dual interface on the IApplication method.bFirstTime
[in, out] Determines if this is the first time the add-in is loaded into the environment.If it is the first time, bFirstTime is VARIANT_TRUE, and the add-in can add toolbar buttons or key sequences for carrying out its commands.
If you disconnect the add-in and reconnect it, bFirstTime is also VARIANT_TRUE.
dwCookie
[in] Cookie that identifies the add-in in subsequent calls. For example, the add-in uses this cookie to call the IApplication method.
Return Values
If the add-in loads successfully, it returns VARIANT_TRUE.
If required objects are not available, the add-in returns VARIANT_FALSE, indicating that it should not be loaded.
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Addauto.h.
Link Library: Developer implemented.
See Also
Macros and Add-ins | IDSAddIn::OnDisconnection | IApplication::AddCommand | IApplication::SetAddInInfo
Send Feedback on this topic to the authors