windows-nt/Source/XPSP1/NT/printscan/print/spooler/spoolss/bidispl/reqdata.h
2020-09-26 16:20:57 +08:00

34 lines
754 B
C++

#ifndef _TBIDIREQUESTINTERFACEDATA
#define _TBIDIREQUESTINTERFACEDATA
class TBidiRequestInterfaceData
{
public:
TBidiRequestInterfaceData (
IBidiRequest *pRequest):
m_pRequest (pRequest),
m_bValid (FALSE) {m_pRequest->AddRef ();};
virtual ~TBidiRequestInterfaceData () {m_pRequest->Release ();};
inline BOOL
bValid () CONST {return m_bValid;};
inline IBidiRequest *
GetInterface (VOID) CONST {return m_pRequest;};
private:
IBidiRequest *m_pRequest;
BOOL m_bValid;
};
typedef TDoubleNode<TBidiRequestInterfaceData *, DWORD> TReqInterfaceNode;
typedef TDoubleListLock<TBidiRequestInterfaceData *, DWORD> TReqInterfaceList;
#endif