bool wxTaskBarJumpListImpl::BeginUpdate() { if ( m_destinationList == NULL ) return false; unsigned int max_count = 0; HRESULT hr = m_destinationList->BeginList(&max_count, wxIID_IObjectArray, reinterpret_cast<void**>(&(m_objectArray))); if ( !m_appID.empty() ) m_destinationList->SetAppID(m_appID.wc_str()); return SUCCEEDED(hr); }
// @pymethod |PyICustomDestinationList|SetAppID|Specifies the taskbar identifier for the jump list // @comm Only needed if the calling app doesn't use the system-assigned default PyObject *PyICustomDestinationList::SetAppID(PyObject *self, PyObject *args) { ICustomDestinationList *pICDL = GetI(self); if ( pICDL == NULL ) return NULL; TmpWCHAR AppID; PyObject *obAppID; // @pyparm str|AppID||The taskbar identifier of the application if ( !PyArg_ParseTuple(args, "O:SetAppID", &obAppID) ) return NULL; if (!PyWinObject_AsWCHAR(obAppID, &AppID )) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; hr = pICDL->SetAppID(AppID ); PY_INTERFACE_POSTCALL; if ( FAILED(hr) ) return PyCom_BuildPyException(hr, pICDL, IID_ICustomDestinationList ); Py_INCREF(Py_None); return Py_None; }