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++
- #ifndef __enum_h
- #define __enum_h
- /*-----------------------------------------------------------------------------
- / CDsEnum
- /----------------------------------------------------------------------------*/
- #define MAX_DSSHELL_ENUM 64
- class CMyDocsEnum : public IEnumIDList, CUnknown
- {
- private:
- HWND m_hwndOwner; // used for MsgBox etc
- ULONG m_cFetched; // number of items previously fetched
- LPITEMIDLIST m_pidlRoot; // pidl to root of real folder we're enumerating...
- IShellFolder * m_psf; // real shell folder for this folder
- IEnumIDList * m_peidl; // real enumerator for this folder
- BOOL m_bRoot; // Is this the root MyDocs folder
- HDPA m_hidl; // array of special pidls
- private:
- VOID _GetSpecialItems( HKEY hkey );
- public:
- CMyDocsEnum(IShellFolder * psf, HWND hwndOwner, DWORD grfFlags, LPITEMIDLIST pidlRoot, BOOL bRoot );
- ~CMyDocsEnum();
- VOID DoFirstTimeInitialization( );
- LPITEMIDLIST FindSpecialItem( LPTSTR pName );
- // IUnknown
- STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObject);
- STDMETHOD_(ULONG, AddRef)();
- STDMETHOD_(ULONG, Release)();
- // IEnumIDList
- STDMETHODIMP Next(ULONG celt, LPITEMIDLIST* rgelt, ULONG* pceltFetched);
- STDMETHODIMP Skip(ULONG celt);
- STDMETHODIMP Reset();
- STDMETHODIMP Clone(LPENUMIDLIST* ppenum);
- };
- #endif