Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. //==========================================================================;
  2. //
  3. // WDMDRV.H
  4. // WDM Capture Class Driver definitions.
  5. // Main Include Module.
  6. // Copyright (c) 1996 - 1998 ATI Technologies Inc. All Rights Reserved.
  7. //
  8. //==========================================================================;
  9. #ifndef _WDMDRV_H_
  10. #define _WDMDRV_H_
  11. #define ENSURE do
  12. #define END_ENSURE while( FALSE)
  13. #define FAIL break
  14. // WDM MiniDriver Error codes
  15. #define WDMMINI_NOERROR 0x0000
  16. #define WDMMINI_INVALIDPARAM 0x0010
  17. #define WDMMINI_NOHARDWARE 0x0020
  18. #define WDMMINI_UNKNOWNHARDWARE 0x0021
  19. #define WDMMINI_HARDWAREFAILURE 0x0022
  20. #define WDMMINI_ERROR_NOI2CPROVIDER 0x0040
  21. #define WDMMINI_ERROR_NOGPIOPROVIDER 0x0041
  22. #define WDMMINI_ERROR_MEMORYALLOCATION 0x0080
  23. // global space functions definition
  24. ULONG GetDriverInstanceNumber ( PDEVICE_OBJECT pDeviceObject);
  25. HANDLE OpenRegistryFolder ( PDEVICE_OBJECT pDeviceObject, PWCHAR pwchFolderName);
  26. NTSTATUS ReadStringFromRegistryFolder ( HANDLE hFolder, PWCHAR pwcKeyNameString, PWCHAR pwchBuffer, ULONG ulDataLength);
  27. void OutputDebugMessage ( ULONG ulDebugLevel, PCCHAR DebugMessage, ...);
  28. extern "C"
  29. void SetMiniDriverDebugLevel ( PUNICODE_STRING pRegistryPath);
  30. // DebugLevel
  31. #define MINIDRIVER_DEBUGLEVEL_ERROR 0x0001
  32. #define MINIDRIVER_DEBUGLEVEL_INFO 0x0003
  33. #define MINIDRIVER_DEBUGLEVEL_MESSAGE 0x0005
  34. #endif // _WDMDRV_H_