Example #1
0
void CTabZope::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	if (bShow == TRUE)
	{
		GetServiceData();

		SetCurSelStartupType();
	}

	CDialog::OnShowWindow(bShow, nStatus);
}
Example #2
0
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();
	}
}
Example #3
0
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();
}
Example #4
0
 void* FiberService::GetFiberServiceData(Fiber* fiber)
 {
     return fiber->GetServiceData();
 }