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.
 
 
 
 
 
 

73 lines
1.8 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1992.
//
// File: PropIter.hxx
//
// Contents: Iterator for property store.
//
// Classes: CPropertyStoreWids
//
// History: 27-Dec-19 KyleP Created
//
//----------------------------------------------------------------------------
#pragma once
#include <propstor.hxx>
#include <borrow.hxx>
//+-------------------------------------------------------------------------
//
// Class: CPropertyStoreWids
//
// Purpose: Iterates through in-use wids.
//
// History: 04-Jan-96 KyleP Created
//
//--------------------------------------------------------------------------
class CPropertyStoreWids : INHERIT_UNWIND
{
INLINE_UNWIND( CPropertyStoreWids )
public:
CPropertyStoreWids( CPropStoreManager & propstoremgr );
CPropertyStoreWids( CPropertyStore & propstore );
~CPropertyStoreWids();
//
// Iteration
//
inline WORKID WorkId();
WORKID NextWorkId();
WORKID LokNextWorkId();
private:
void Init(CPropertyStore& propstore);
WORKID _wid;
CBorrowed _Borrowed;
CPropertyStore & _propstore;
ULONG _cRecPerPage;
};
//+---------------------------------------------------------------------------
//
// Member: CPropertyStoreWids::WorkId, public
//
// Returns: Current workid, or widInvalid if at end.
//
// History: 04-Jan-96 KyleP Created.
//
//----------------------------------------------------------------------------
inline WORKID CPropertyStoreWids::WorkId()
{
return _wid;
}