Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: peiter.hxx
//
// Contents: PExposedIterator class
//
// Classes: PExposedIterator
//
// History: 18-Jan-93 DrewB Created
//
// Notes: PExposedIterator is a partial exposed iterator
// implementation used by CExposedIterator.
//
//----------------------------------------------------------------------------
#ifndef __PEITER_HXX__
#define __PEITER_HXX__
#ifndef REF
#include <dfmem.hxx>
#ifndef REF
interface PExposedIterator : public CLocalAlloc #else
interface PExposedIterator #endif //!REF
{ public: SCODE hSkip(ULONG celt, BOOL fProps); SCODE hReset(void); inline LONG hAddRef(void); LONG hRelease(void); SCODE hQueryInterface(REFIID iid, REFIID riidSelf, IUnknown *punkSelf, void **ppv);
protected: CBasedPubDocFilePtr _ppdf; CDfName _dfnKey; #ifndef REF
CBasedDFBasisPtr _pdfb; CPerContext *_ppc; #endif //!REF
LONG _cReferences; ULONG _sig; };
//+---------------------------------------------------------------------------
//
// Member: PExposedIterator::hAddRef, public
//
// Synopsis: AddRef helper
//
// History: 18-Jan-93 DrewB Created
//
//----------------------------------------------------------------------------
LONG PExposedIterator::hAddRef(void) { olDebugOut((DEB_ITRACE, "In PExposedIterator::hAddRef:%p()\n", this)); InterlockedIncrement(&_cReferences); olDebugOut((DEB_ITRACE, "Out PExposedIterator::hAddRef\n")); return _cReferences; } #endif //!REF
#endif // #ifndef __PEITER_HXX__
|