USER::USER (LPCELL lpCellParent, LPTSTR pszPrincipal, LPTSTR pszInstance) { m_lpiCell = lpCellParent->GetIdentifier(); lstrcpy (m_szPrincipal, pszPrincipal); lstrcpy (m_szInstance, (pszInstance) ? pszInstance : TEXT("")); m_lpiThis = NULL; m_fStatusOutOfDate = TRUE; m_mszOwnerOf = NULL; m_mszMemberOf = NULL; memset(&m_us, 0, sizeof(m_us)); }
SERVER::SERVER (LPCELL lpCellParent, LPTSTR pszName) { m_lpiCell = lpCellParent->GetIdentifier(); lstrcpy (m_szName, pszName); m_lpCellBOS = NULL; m_hCellBOS = NULL; m_hBOS = NULL; m_cReqBOS = 0; m_hCellVOS = NULL; m_hVOS = NULL; m_cReqVOS = 0; m_fCanGetAggregates = TRUE; m_fAggregatesOutOfDate = TRUE; m_lAggregates = New (HASHLIST); m_lAggregates->SetCriticalSection (AfsClass_GetCriticalSection()); m_lkAggregateName = m_lAggregates->CreateKey ("Aggregate Name", SERVER::KeyAggregateName_Compare, SERVER::KeyAggregateName_HashObject, SERVER::KeyAggregateName_HashData, cKEYAGGREGATENAME_TABLESIZE); m_lkAggregateID = m_lAggregates->CreateKey ("Aggregate ID", SERVER::KeyAggregateID_Compare, SERVER::KeyAggregateID_HashObject, SERVER::KeyAggregateID_HashData, cKEYAGGREGATEID_TABLESIZE); m_fCanGetServices = TRUE; m_fServicesOutOfDate = TRUE; m_lServices = New (HASHLIST); m_lServices->SetCriticalSection (AfsClass_GetCriticalSection()); m_lkServiceName = m_lServices->CreateKey ("Service Name", SERVER::KeyServiceName_Compare, SERVER::KeyServiceName_HashObject, SERVER::KeyServiceName_HashData, cKEYSERVICENAME_TABLESIZE); m_wGhost = 0; m_lpiThis = NULL; m_fMonitor = TRUE; m_fDelete = FALSE; m_lastStatus = 0; m_fVLDBOutOfDate = FALSE; /* FIXME: added because it was missing */ m_fStatusOutOfDate = TRUE; memset (&m_ss, 0x00, sizeof(SERVERSTATUS)); }