Init.h
上传用户:yitai_qhd
上传日期:2008-04-24
资源大小:31k
文件大小:1k
- #ifndef _INIT_H
- #define _INIT_H
- extern "C"
- {
- #include "ntddk.h"
- }
- #include "devioctl.h"
- #define CTL_CODE_EX(Function) CTL_CODE(0x7FFF + 78,
- ( 0x07FF + 78 + Function), METHOD_BUFFERED, FILE_ANY_ACCESS)
- #define GET_USER_MEMORY CTL_CODE_EX(1)
- typedef struct tagIOCTLParams
- {
- unsigned long dioc_IOCtlCode;
- void *dioc_InBuf;
- unsigned long dioc_cbInBuf;
- void * dioc_OutBuf;
- unsigned long dioc_cbOutBuf;
- } IOCTLPARAMS, *PIOCTLPARAMS;
- VOID DbpUnload(IN PDRIVER_OBJECT DriverObject);
- NTSTATUS
- Open(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- NTSTATUS
- Close(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- NTSTATUS
- Cleanup(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- NTSTATUS
- Read(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- NTSTATUS
- Write(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- NTSTATUS
- IoControl(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp
- );
- #endif