home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_04 / DDISpy / DDISpy.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-11  |  2.1 KB  |  46 lines

  1. //-----------------------------------------------------------------------------------//
  2. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  3. //                             ISBN  0-13-086985-6                                   //
  4. //                                                                                   //
  5. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  6. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  7. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  8. //                                                                                   //
  9. //  FileName   : ddispy.h                                                             //
  10. //  Description: Interface to DDI Spy driver                                         //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. // instance information associated with device
  15. class KDeviceExtension
  16. {
  17.     ULONG  StateVariable;
  18. };
  19.  
  20.  
  21. // Define the various device type values.  Range 0-32767 reserved by
  22. // MS, and range 32768-65535 are reserved for use by customers.
  23. #define FILE_DEVICE_DDISPY  0x00008302
  24.  
  25. // Macro definition for defining IOCTL and FSCTL function control codes. 
  26. // Rabge 0-2047  Note range0-2047 reserved by MS, and range 2048-4095 
  27. // are reserved for customers.
  28.  
  29. #define DDISPY_IOCTL_START  0x8301
  30. #define DDISPY_IOCTL_END    0x8302
  31. #define DDISPY_IOCTL_READ   0x8303
  32. #define DDISPY_IOCTL_REPORT 0x8304
  33.  
  34. #define DDISPY_(i)     CTL_CODE(FILE_DEVICE_DDISPY, i, METHOD_BUFFERED, FILE_ANY_ACCESS)
  35.  
  36. #define DDISPY_START  DDISPY_(DDISPY_IOCTL_START )
  37. #define DDISPY_END    DDISPY_(DDISPY_IOCTL_END   )
  38. #define DDISPY_READ   DDISPY_(DDISPY_IOCTL_READ  )
  39. #define DDISPY_REPORT DDISPY_(DDISPY_IOCTL_REPORT)
  40.  
  41. #define BUFFER_SIZE  8192
  42.  
  43. extern unsigned char Buffer[];
  44.  
  45. void DDISpy_Start(unsigned fntable, int count);
  46. void DDISpy_Stop(unsigned fntable, int count);