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.

100 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. proj.h
  5. Abstract:
  6. Battery Class Installer header
  7. Author:
  8. Scott Brenden
  9. Environment:
  10. Notes:
  11. Revision History:
  12. --*/
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. #include <ntpoapi.h>
  18. #include <setupapi.h> // PnP setup/installer services
  19. #include <cfgmgr32.h>
  20. #include "powrprof.h"
  21. //
  22. // Debug stuff
  23. //
  24. #if DBG > 0 && !defined(DEBUG)
  25. #define DEBUG
  26. #endif
  27. #if DBG > 0 && !defined(FULL_DEBUG)
  28. #define FULL_DEBUG
  29. #endif
  30. //
  31. // Trace flags
  32. //
  33. #define TF_WARNING 0x00000001
  34. #define TF_ERROR 0x00000002
  35. #define TF_GENERAL 0x00000004 // Standard messages
  36. #define TF_FUNC 0x00000008 // Trace function calls
  37. //
  38. // Calling declarations
  39. //
  40. #define PUBLIC FAR PASCAL
  41. #define CPUBLIC FAR CDECL
  42. #define PRIVATE NEAR PASCAL
  43. #ifdef DEBUG
  44. extern DWORD BattDebugPrintLevel;
  45. #define TRACE_MSG(_FLAG,_RESTOFVARARG) if (BattDebugPrintLevel & _FLAG) DbgPrint _RESTOFVARARG
  46. #else // !defined(DEBUG)
  47. #define TRACE_MSG
  48. #endif
  49. //
  50. // Prototypes
  51. //
  52. DWORD
  53. PRIVATE
  54. InstallCompositeBattery (
  55. IN HDEVINFO DevInfoHandle,
  56. IN PSP_DEVINFO_DATA DevInfoData, OPTIONAL
  57. IN OUT PSP_DEVINSTALL_PARAMS DevInstallParams
  58. );