void CTabZope::OnShowWindow(BOOL bShow, UINT nStatus) { if (bShow == TRUE) { GetServiceData(); SetCurSelStartupType(); } CDialog::OnShowWindow(bShow, nStatus); }
void CTabZope::OnTimer(UINT nIDEvent) { CDialog::OnTimer(nIDEvent); // get information about the Zope service GetServiceData(); // setservice startup type if (m_cbxStartType.GetCurSel() == CB_ERR) { SetCurSelStartupType(); } }
void CTabZope::OnApplyButton() { CServiceManager* pServiceManager = ((CPTKConsoleDlg*)GetParent())->m_pServiceManager; CString strError; // change service type int nStartupType = (m_cbxStartType.GetCurSel()==1) ? SERVICE_DEMAND_START:SERVICE_AUTO_START; BOOL bResult = pServiceManager->SMChangeServiceConfig(CRString(IDS_SERVICE_NAME_ZOPE), nStartupType, strError); if (!bResult) { AfxMessageBox(strError); } GetServiceData(); SetCurSelStartupType(); }
void* FiberService::GetFiberServiceData(Fiber* fiber) { return fiber->GetServiceData(); }