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

  1. #pragma
  2.  
  3. //-----------------------------------------------------------------------------------//
  4. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  5. //                             ISBN  0-13-086985-6                                   //
  6. //                                                                                   //
  7. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  8. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  9. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  10. //                                                                                   //
  11. //  FileName   : kernelopt.h                                                            //
  12. //  Description: Options for making a kernel mode device driver                      //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. #ifndef WINDDK_H
  17.  
  18. #define WINDDK_H
  19.  
  20. extern "C"
  21. {
  22.  
  23. #undef WIN32
  24.  
  25. #define _X86_                1 
  26. #define i386                1  
  27. #define STD_CALL 
  28. #define CONDITION_HANDLING  1 
  29. #define NT_UP               1  
  30. #define NT_INST             0 
  31. #define WIN32                100 
  32. #define _NT1X_                100 
  33. #define WINNT                1 
  34. #define _WIN32_WINNT        0x0400    
  35. #define WIN32_LEAN_AND_MEAN 1 
  36. #define DBG                    1
  37. #define DEVL                1 
  38. #define FPO                    0
  39. #define _DLL                1 
  40. #define _IDWBUILD  
  41.  
  42. #pragma message("add DDK to VC include and library directories")
  43.  
  44. #include <ddk\ntddk.h>
  45.  
  46. }
  47.  
  48. #pragma check_stack(off)
  49.  
  50. #pragma comment(lib, "ntoskrnl.lib")
  51.  
  52. #pragma comment(linker, "-MERGE:.rdata=.text")
  53. #pragma comment(linker, "-MERGE:.reloc=.text")
  54. #pragma comment(linker, "-entry:DriverEntry")
  55. #pragma comment(linker, "-IGNORE:4001,4037,4039,4065,4070,4078,4087,4089,4096")
  56.  
  57. #endif