//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1998 - 1999 // // File: cmap.cxx // //-------------------------------------------------------------------------- #include #include //------------------------------------------------------------------------ // Constructor //------------------------------------------------------------------------ CQueueMap::CQueueMap() : cs((InitStatus = RPC_S_OK, &InitStatus)) { dwMapSize = 0; dwOldest = 0; pMap = 0; } //------------------------------------------------------------------------ // Initialize() //------------------------------------------------------------------------ BOOL CQueueMap::Initialize( DWORD dwNewMapSize ) { if (!dwNewMapSize) return FALSE; if (!dwMapSize) { if (InitStatus != RPC_S_OK) return FALSE; pMap = new QUEUEMAP_ENTRY [dwNewMapSize]; if (!pMap) return FALSE; dwMapSize = dwNewMapSize; for (unsigned i=0; i