Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ForUsbDevice.h
Package: TX-1C-usbdriver.rar [view]
Upload User: lyfy_2008
Upload Date: 2014-07-13
Package Size: 3016k
Code Size: 2k
Category:
USB develop
Development Platform:
Visual C++
- // ForUsbDevice.h
- //
- // Generated by DriverWizard version DriverStudio 2.7.0 (Build 562)
- // Requires Compuware's DriverWorks classes
- //
- #ifndef __ForUsbDevice_h__
- #define __ForUsbDevice_h__
- // Forward declaration
- class ForUsbDevice;
- struct USB_COMPLETION_INFO
- {
- PURB m_pUrb;
- ForUsbDevice* m_pClass;
- };
- class ForUsbDevice : public KPnpDevice
- {
- // Constructors
- public:
- SAFE_DESTRUCTORS;
- ForUsbDevice(PDEVICE_OBJECT Pdo, ULONG Unit);
- ~ForUsbDevice();
- // Member Functions
- public:
- DEVMEMBER_DISPATCHERS
- MEMBER_COMPLETEIRPWITHCONTEXT(USB_COMPLETION_INFO, ReadComplete)
- MEMBER_COMPLETEIRPWITHCONTEXT(USB_COMPLETION_INFO, WriteComplete)
- virtual NTSTATUS OnStartDevice(KIrp I);
- virtual NTSTATUS OnStopDevice(KIrp I);
- virtual NTSTATUS OnRemoveDevice(KIrp I);
- virtual NTSTATUS DefaultPnp(KIrp I);
- virtual NTSTATUS DefaultPower(KIrp I);
- virtual NTSTATUS OnDevicePowerUp(KIrp I);
- virtual NTSTATUS OnDeviceSleep(KIrp I);
- NTSTATUS FORUSB_IOCTL_Test_Handler(KIrp I);
- NTSTATUS FORUSB_IOCTL_Read_Handler(KIrp I);
- NTSTATUS FORUSB_IOCTL_Write_Handler(KIrp I);
- #ifdef _COMMENT_ONLY
- // The following member functions are actually defined by the
- // a DEVMEMBER_xxx or MEMBER_xxx macro (such as DEVMEMBER_DISPATCHERS).
- // The macro __COMMENT_ONLY never gets defined. These comment-only
- // definitions simply allow easy navigation to the functions within
- // the Developer Studio using the class browser.
- NTSTATUS __stdcall ReadComplete(KIrp I, USB_COMPLETION_INFO* pContext); // COMMENT_ONLY
- NTSTATUS __stdcall WriteComplete(KIrp I, USB_COMPLETION_INFO* pContext); // COMMENT_ONLY
- virtual NTSTATUS CleanUp(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS Create(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS Close(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS DeviceControl(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS SystemControl(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS Read(KIrp I); // COMMENT_ONLY
- virtual NTSTATUS Write(KIrp I); // COMMENT_ONLY
- #endif
- // Member Data
- protected:
- // Unit number for this device (0-9)
- ULONG m_Unit;
- KUsbLowerDevice m_Lower;
- KUsbInterface m_Interface;
- // Pipe for USB endpoint 1 IN (address 0x81)
- KUsbPipe m_Endpoint1IN;
- // Pipe for USB endpoint 1 OUT (address 0x1)
- KUsbPipe m_Endpoint1OUT;
- // Pipe for USB endpoint 2 IN (address 0x82)
- KUsbPipe m_Endpoint2IN;
- // Pipe for USB endpoint 2 OUT (address 0x2)
- KUsbPipe m_Endpoint2OUT;
- };
- #endif