Windows2003-3790/inetsrv/pop3/service/pop3svc/iolists.h
2020-09-30 16:53:55 +02:00

34 lines
950 B
C++

/************************************************************************************************
Copyright (c) 2001 Microsoft Corporation
File Name: IOLists.cpp
Abstract: Declare the CLists class, a double linked list.
Notes:
History: 08/01/2001 Created by Hao Yu (haoyu)
************************************************************************************************/
#ifndef __POP3_IOLIST__
#define __POP3_IOLIST__
#include <IOContext.h>
class CIOList
{
private:
LIST_ENTRY m_ListHead;
PLIST_ENTRY m_pCursor;
DWORD m_dwListCount;
CRITICAL_SECTION m_csListGuard;
public:
CIOList();
~CIOList();
void AppendToList(PLIST_ENTRY pListEntry);
DWORD RemoveFromList(PLIST_ENTRY pListEntry);
DWORD CheckTimeOut(DWORD dwTimeOutInterval, BOOL *pbIsAnyOneTimedOut=NULL);
void Cleanup();
};
#endif //__POP3_IOLIST__