REGMON.H
资源名称:regmonsrc.zip [点击查看]
上传用户:kevenhsn
上传日期:2007-01-03
资源大小:251k
文件大小:2k
源码类别:
系统编程
开发平台:
Visual C++
- //======================================================================
- //
- // REGMON.h - include file for VxD REGMON
- //
- // Copyright (C) 1996 Mark Russinovich and Bryce Cogswell
- //
- //======================================================================
- #include <vtoolsc.h>
- //----------------------------------------------------------------------
- // D E F I N E S
- //----------------------------------------------------------------------
- #define REGMON_Major 1
- #define REGMON_Minor 0
- #define REGMON_DeviceID UNDEFINED_DEVICE_ID
- #define REGMON_Init_Order UNDEFINED_INIT_ORDER
- //
- // Number of hash buckets
- //
- #define NUMHASH 0x100
- #define HASHOBJECT(_hkey) (((ULONG)_hkey)>>2)%NUMHASH
- //
- // Size of storage buffer in pages
- //
- #define STORESIZE (MAX_STORE/0x1000+1)
- //
- // Maximum path length
- //
- #define MAXPATHLEN 1024
- //
- // Sizes of various buffers
- //
- #define STRINGLEN 240
- #define DATASIZE 512
- #define NAMELEN 256
- #define PROCESSLEN 16
- #define BINARYLEN 8
- //
- // Maximum seperate filter components
- //
- #define MAXFILTERS 64
- //
- // Entries in VMM Win32 service table
- //
- #define VMMWIN32QUERYINFOKEY (0x1E * 2 )
- //----------------------------------------------------------------------
- // S T R U C T U R E S
- //----------------------------------------------------------------------
- //
- // Structure for our name hash table
- //
- typedef struct _nameentry {
- HKEY hkey;
- PCHAR FullName;
- struct _nameentry *Next;
- } HASH_ENTRY, *PHASH_ENTRY;
- //
- // Structure for keeping linked lists of output buffers
- //
- typedef struct _store {
- ULONG Len;
- struct _store *Next;
- char Data[ MAX_STORE ];
- } STORE_BUF, *PSTORE_BUF;