Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Attributes
CRegTaskRegSvr Class Reference
Inheritance diagram for CRegTaskRegSvr:
Inheritance graph
Collaboration diagram for CRegTaskRegSvr:
Collaboration graph

List of all members.

Public Member Functions

 CRegTaskRegSvr (CRegTaskManager *pMgr)
CString GetDescription ()

Static Public Member Functions

static HRESULT PopulateTasks (CRegTaskManager &cMgr)

Protected Attributes

CString m_szDesc

Detailed Description

Definition at line 62 of file RegTask.cpp.

Constructor & Destructor Documentation

Definition at line 65 of file RegTask.cpp.

                                          : CRegTask(pMgr)
        m_szDesc = _T("Register Mozilla Control");

Member Function Documentation

Implements CRegTask.

Definition at line 73 of file RegTask.cpp.

    BOOL bRegister = TRUE;
    CString szBinDirPath;
    m_pTaskMgr->GetValue(c_szValueBinDirPath, szBinDirPath);

       // Now register the mozilla control
       CString szMozCtl = szBinDirPath + CString(_T("\\mozctl.dll"));
       HINSTANCE hMod = LoadLibrary(szMozCtl);
       if (hMod == NULL)
              AfxMessageBox(_T("Can't find mozctl.dll in current directory"));
        return E_FAIL;

    HRESULT hr = E_FAIL;
       FARPROC pfn = GetProcAddress(hMod, bRegister ? _T("DllRegisterServer") : _T("DllUnregisterServer"));
       if (pfn)
              hr = pfn();
    return hr;

Here is the call graph for this function:

CString CRegTask::GetDescription ( ) [inline, inherited]

Definition at line 28 of file RegTask.h.

        return m_szDesc;

Here is the caller graph for this function:

HRESULT CRegTask::PopulateTasks ( CRegTaskManager cMgr) [static, inherited]

Definition at line 147 of file RegTask.cpp.

    cMgr.AddTask(new CRegTaskRegistry(&cMgr));
    cMgr.AddTask(new CRegTaskPATH(&cMgr));
    cMgr.AddTask(new CRegTaskRegSvr(&cMgr));
    return S_OK;

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CRegTaskManager* CRegTask::m_pTaskMgr [protected, inherited]

Definition at line 17 of file RegTask.h.

CString CRegTask::m_szDesc [protected, inherited]

Definition at line 18 of file RegTask.h.

The documentation for this class was generated from the following file: