📄 intrface.h
字号:
// intrface.h
//
// Generated by C DriverWizard 3.2.0 (Build 2485)
// Requires DDK Only
// File created on 3/10/2008
//
// Define an Interface Guid for Computer00USB device class.
// This GUID is used to register (IoRegisterDeviceInterface)
// an instance of an interface so that user application
// can control the Computer00USB device.
//
// {A2CBE209-7A8B-44B4-94E7-CD454A427F11}
DEFINE_GUID(GUID_DEVINTERFACE_COMPUTER00USB,
0xA2CBE209, 0x7A8B, 0x44B4, 0x94, 0xE7, 0xCD, 0x45, 0x4A, 0x42, 0x7F, 0x11);
// Define a Setup Class GUID for Computer00USB Class. This is same
// as the COMPUTER00USB CLASS guid in the INF files.
//
// {6E4CE7C2-4B5C-45F1-9073-6BC45B7E476A}
DEFINE_GUID(GUID_DEVCLASS_COMPUTER00USB,
0x6E4CE7C2, 0x4B5C, 0x45F1, 0x90, 0x73, 0x6B, 0xC4, 0x5B, 0x7E, 0x47, 0x6A);
// 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_COMPUTER00USB 0x8000
// Define Interface reference/dereference routines for
// Interfaces exported by IRP_MN_QUERY_INTERFACE
#define COMPUTER00USB_IOCTL(index) \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, index, METHOD_BUFFERED, FILE_READ_DATA)
#define READ_ENDP1 \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x800, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
#define WRITE_ENDP1 \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x801, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
#define READ_ENDP2 \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x802, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
#define WRITE_ENDP2 \
CTL_CODE(FILE_DEVICE_COMPUTER00USB, 0x803, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
#endif // __INTRFACE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -