Source code of Windows XP (NT5)
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.

126 lines
1.6 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. #define DEBUG_PRINT_BUFFER_LEN 1030
  31. #define MAX_BUF 260
  32. //
  33. // Trace flags
  34. //
  35. #define TF_WARNING 0x00000001
  36. #define TF_ERROR 0x00000002
  37. #define TF_GENERAL 0x00000004 // Standard messages
  38. #define TF_FUNC 0x00000008 // Trace function calls
  39. //
  40. // Calling declarations
  41. //
  42. #define PUBLIC FAR PASCAL
  43. #define CPUBLIC FAR CDECL
  44. #define PRIVATE NEAR PASCAL
  45. #ifdef DEBUG
  46. void
  47. CPUBLIC
  48. CommonDebugMsgW(
  49. DWORD mask,
  50. LPCSTR pszMsg,
  51. ...
  52. );
  53. void
  54. CPUBLIC
  55. CommonDebugMsgA(
  56. DWORD mask,
  57. LPCSTR pszMsg,
  58. ...
  59. );
  60. #ifdef UNICODE
  61. #define TRACE_MSG CommonDebugMsgW
  62. #else
  63. #define TRACE_MSG CommonDebugMsgA
  64. #endif
  65. extern DWORD BattDebugPrintLevel;
  66. #else // !defined(DEBUG)
  67. #define TRACE_MSG
  68. #endif
  69. //
  70. // Prototypes
  71. //
  72. DWORD
  73. PRIVATE
  74. InstallCompositeBattery (
  75. IN HDEVINFO DevInfoHandle,
  76. IN PSP_DEVINFO_DATA DevInfoData, OPTIONAL
  77. IN OUT PSP_DEVINSTALL_PARAMS DevInstallParams
  78. );