home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_03 / Periscope / periscope.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-11  |  1.7 KB  |  33 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   : periscope.h                                                         //
  10. //  Description: Periscope interface                                                 //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. // instance information associated with device
  15. class KDeviceExtension
  16. {
  17.     unsigned long  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_PERISCOPE  0x00008301
  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 PERISCOPE_IOCTL_INDEX  0x8301
  30.  
  31. #define IOCTL_PERISCOPE CTL_CODE(FILE_DEVICE_PERISCOPE, PERISCOPE_IOCTL_INDEX, METHOD_BUFFERED, FILE_ANY_ACCESS)
  32.  
  33.