Leaked source code of windows server 2003
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.
 
 
 
 
 
 

56 lines
1.6 KiB

//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999-2001 Microsoft Corporation
//
// Module Name:
// EnumCookies.h
//
// Description:
// CEnumCookies implementation.
//
// Maintained By:
// David Potter (DavidP) 19-JUN-2001
// Geoffrey Pease (GPease) 08-MAY-2000
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
class CObjectManager;
// CEnumCookies
class CEnumCookies
: public IEnumCookies
{
friend class CObjectManager;
private:
// IUnknown
LONG m_cRef;
// IEnumCookies
ULONG m_cAlloced; // Size of the array.
ULONG m_cIter; // Our iter counter.
OBJECTCOOKIE * m_pList; // Array of cookies.
DWORD m_cCookies; // Number of array items in use
private: // Methods
CEnumCookies( void );
~CEnumCookies( void );
STDMETHOD( HrInit )( void );
public: // Methods
static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
// IUnknown
STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
STDMETHOD_( ULONG, AddRef )( void );
STDMETHOD_( ULONG, Release )( void );
// IEnumCookies
STDMETHOD( Next )( ULONG celt, OBJECTCOOKIE rgcookieOut[], ULONG * pceltFetchedOut );
STDMETHOD( Skip )( ULONG celt );
STDMETHOD( Reset )( void );
STDMETHOD( Clone )( IEnumCookies ** ppenumOut );
STDMETHOD( Count )( DWORD * pnCountOut );
}; //*** class CEnumCookies