Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
enum.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- //\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\//\
- //
- // enum.h
- //
- // The definition of the cdf enumerator.
- //
- // History:
- //
- // 3/17/97 edwardp Created.
- //
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Check for previous includes of this file.
- //
- #ifndef _ENUM_H_
- #define _ENUM_H_
- //
- // Class definition for the cdf enumerator class.
- //
- class CCdfEnum : public IEnumIDList
- {
- //
- // Methods
- //
- public:
- // Constructor
- CCdfEnum(IXMLElementCollection* pIXMLElementCollection,
- DWORD fEnumerateFlags, PCDFITEMIDLIST pcdfidlFolder);
- // IUnknown
- STDMETHODIMP QueryInterface(REFIID, void **);
- STDMETHODIMP_(ULONG) AddRef(void);
- STDMETHODIMP_(ULONG) Release(void);
- // IEnumIDList
- STDMETHODIMP Next(ULONG celt, LPITEMIDLIST *rgelt, ULONG *pceltFetched);
- STDMETHODIMP Skip(ULONG celt);
- STDMETHODIMP Reset(void);
- STDMETHODIMP Clone(IEnumIDList **ppenum);
- private:
- // Destructor
- ~CCdfEnum(void);
- // Helper methods
- LPITEMIDLIST NextCdfidl(void);
- HRESULT GetNextCdfElement(IXMLElement** ppIXMLElement,PULONG pnIndex);
- inline BOOL IsCorrectType(IXMLElement* pIXMLElement);
- //
- // Member variables.
- //
- private:
- ULONG m_cRef;
- IXMLElementCollection* m_pIXMLElementCollection;
- DWORD m_fEnumerate;
- ULONG m_nCurrentItem;
- PCDFITEMIDLIST m_pcdfidlFolder;
- BOOL m_fReturnedFolderPidl;
- };
- #endif _ENUM_H_