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
emptyvol.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 __EMPTY_VOLUME_CACHE__
- #define __EMPTY_VOLUME_CACHE__
- #include "utils.h"
- // Define node storing a path read from the registry in a singly-linked list.
- typedef struct _TAG_CACHE_PATH_NODE CACHE_PATH_NODE;
- typedef CACHE_PATH_NODE* LPCACHE_PATH_NODE;
- struct _TAG_CACHE_PATH_NODE
- {
- TCHAR szCachePath[MAX_PATH];
- LPCACHE_PATH_NODE pNext;
- };
- // Define node storing control handles in a singly-linked list.
- typedef struct _TAG_CONTROL_HANDLE_NODE CONTROL_HANDLE_NODE;
- typedef CONTROL_HANDLE_NODE* LPCONTROL_HANDLE_NODE;
- struct _TAG_CONTROL_HANDLE_NODE
- {
- HANDLE hControl;
- LPCONTROL_HANDLE_NODE pNext;
- };
- // Define node storing heads and tails of control handle lists in a
- // singly-linked list.
- // There is a control handle list for each volume.
- typedef struct _TAG_CONTROL_HANDLE_HEADER CONTROL_HANDLE_HEADER;
- typedef CONTROL_HANDLE_HEADER* LPCONTROL_HANDLE_HEADER;
- struct _TAG_CONTROL_HANDLE_HEADER
- {
- DWORD dwSpaceUsed;
- int nDriveNum;
- LPCONTROL_HANDLE_NODE pHandlesHead;
- LPCONTROL_HANDLE_NODE pHandlesTail;
- LPCONTROL_HANDLE_HEADER pNext;
- };
- // Handles to activeX controls are cached in memory during calls to
- // GetSpaceUsed so that re-enumeration is not needed for subsequent
- // calls to Purge.
- //
- // The structure for storing control handles for various volumes is:
- //
- // m_pControlsTail -+
- // |
- // |/
- // m_pControlsHead --> Header01 --> Header02 --> Header03 --> NULL
- // | | |
- // +- C: +- D: +- E:
- // | | |
- // +- Head01 +- Head02 +- Head03
- // | | |
- // +- Tail01 +- Tail02 +- Tail03
- //
- // where
- // HeaderXX is of type CONTROL_HANDLE_HEADER, and
- // HeadXX and TailXX are of type LPCONTROL_HANDLE_NODE.
- //
- // HeadXX and TailXX are respectively head and tail pointers to a list
- // of handles. Those are handles to controls installed on the drive
- // specified in HeaderXX.
- //
- #endif // __EMPTY_VOLUME_CACHE__