Class KomodiaDNS::CDNSManager::
AddRecord()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: m_strDNSServerNext page: CDNSManager    Show member index
Private Function Declared in:
DNSManager.h

'Declaration' icon -- Shortcut to top of page. Declaration

void AddRecord(
    unsigned short usID,
    LPVOID lpLocalIDData,
    DWORD dwTimeout,
    const CDNSQuery& rQuery);

'Description' icon -- Shortcut to top of page. Description

Add a record

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Create the struct
    DNSData aData;
    aData.aQuery=rQuery;
    aData.dwTime=GetTickCount();
    aData.lpData=lpLocalIDData;
    aData.dwTimeout=dwTimeout;
    aData.bTimedout=FALSE;
    aData.bNotified=FALSE;
    aData.dwTimedoutTime=0;

    //Lock the data
    CCriticalAutoRelease aRelease(m_pCSection);

    //Delete the record if exists
    m_aData.erase(usID);

    //Insert the data
    m_aData.insert(IDMap::value_type(usID,aData));
}
ERROR_HANDLER("AddRecord")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.