这是一本学习 window编程的很好的参考教材

源代码在线查看: t-procmonctl.h

软件大小: 5535 K
上传用户: ok34090512
关键词: window 编程 教材
下载地址: 免注册下载 普通下载 VIP

相关代码

				#ifndef T_PROCMONCTRL_H
				#define T_PROCMONCTRL_H
				
				#define FILE_DEVICE_PROCMON  0x00008201
				#define DEVICE_DRIVER_NAME   L"T-ProcMon"
				#define SYS_DRIVER_NAME      "T-ProcMon"
				#define SYS_DRIVER_FILE      "T-ProcMon.sys"
				#define SYS_INIT_FILE        "T-ProcMon.ini"
				#define Version				 L"v1.0"
				
				#define PROCMON_MONITOR (ULONG) CTL_CODE(FILE_DEVICE_PROCMON,0x01,METHOD_BUFFERED,FILE_ANY_ACCESS)
				#define PROCMON_HIDDEN  (ULONG) CTL_CODE(FILE_DEVICE_PROCMON,0x02,METHOD_BUFFERED,FILE_ANY_ACCESS)
				#define PROCMON_HOOK    (ULONG) CTL_CODE(FILE_DEVICE_PROCMON,0x03,METHOD_BUFFERED,FILE_ANY_ACCESS)
				#define PROCMON_UNHOOK  (ULONG) CTL_CODE(FILE_DEVICE_PROCMON,0x04,METHOD_BUFFERED,FILE_ANY_ACCESS)
				
				typedef unsigned int    UINT;
				typedef char            CHAR;
				typedef char *          PCHAR;
				typedef unsigned char * PUCHAR;
				typedef PVOID           POBJECT;
				typedef LONG            KPRIORITY;
				
				typedef struct
				{
					ULONG  Sequence;
					TCHAR  Message[0];
				}MESSAGEU,*PMESSAGEU;
				
				typedef struct
				{
					TCHAR  Name[0];
				}PROCNAMEU,*PPROCNAMEU;
				
				#ifndef PAGE_SIZE
				#define PAGE_SIZE   1024*4
				#endif
				
				#define MAX_MESSAGE (1024*64 - 16)
				
				#endif			

相关资源