⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intrface.h

📁 一个简单的wdm驱动开发实例,可以大概看开发流程作为入门
💻 H
字号:
// intrface.h
//
// Generated by C DriverWizard 3.1.0 (Build 1722)
// Requires DDK Only
// File created on 1/23/2009
//

// Define an Interface Guid for CharSample device class.
// This GUID is used to register (IoRegisterDeviceInterface) 
// an instance of an interface so that user application 
// can control the CharSample device.
//
//  {FAAD18D5-C537-46A8-9DD7-108E0C256841}
DEFINE_GUID(GUID_DEVINTERFACE_CHARSAMPLE, 
    0xFAAD18D5, 0xC537, 0x46A8, 0x9D, 0xD7, 0x10, 0x8E, 0x0C, 0x25, 0x68, 0x41);

// Define a Setup Class GUID for CharSample Class. This is same
// as the CHARSAMPLE CLASS guid in the INF files.
//
//  {E0CB211E-7DDE-4D73-9DFD-FBB98E04746C}
DEFINE_GUID(GUID_DEVCLASS_CHARSAMPLE, 
    0xE0CB211E, 0x7DDE, 0x4D73, 0x9D, 0xFD, 0xFB, 0xB9, 0x8E, 0x04, 0x74, 0x6C);

// GUID definition are required to be outside of header inclusion pragma to avoid
// error during precompiled headers.
//

#ifndef __INTRFACE_H__
#define __INTRFACE_H__

#define FILE_DEVICE_CHARSAMPLE  0x8000

// Define Interface reference/dereference routines for
// Interfaces exported by IRP_MN_QUERY_INTERFACE

#define CHARSAMPLE_IOCTL(index) \
    CTL_CODE(FILE_DEVICE_CHARSAMPLE, index, METHOD_BUFFERED, FILE_READ_DATA)

#define IOCTL_800 \
    CTL_CODE(FILE_DEVICE_CHARSAMPLE, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)

#endif // __INTRFACE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -