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.

109 lines
2.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // WMIHelpers.h
  7. //
  8. // Description:
  9. // This file contains the declaration of the WMI helper functions.
  10. //
  11. // Documentation:
  12. //
  13. // Implementation Files:
  14. // WMIHelpers.cpp
  15. //
  16. // Maintained By:
  17. // Galen Barbee (GalenB) 27-Apr-2000
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. // Make sure that this file is included only once per compile path.
  21. #pragma once
  22. //////////////////////////////////////////////////////////////////////////////
  23. // Include Files
  24. //////////////////////////////////////////////////////////////////////////////
  25. //////////////////////////////////////////////////////////////////////////////
  26. // Constant Declarations
  27. //////////////////////////////////////////////////////////////////////////////
  28. //////////////////////////////////////////////////////////////////////////////
  29. // Function Declarations
  30. //////////////////////////////////////////////////////////////////////////////
  31. HRESULT
  32. HrGetWMIProperty(
  33. IWbemClassObject * pWMIObjectIn,
  34. LPCWSTR pcszPropertyNameIn,
  35. ULONG ulPropertyTypeIn,
  36. VARIANT * pVariantOut
  37. );
  38. HRESULT
  39. HrSetWbemServices(
  40. IUnknown * punkIn,
  41. IWbemServices * pIWbemServicesIn
  42. );
  43. HRESULT
  44. HrSetInitialize(
  45. IUnknown * punkIn,
  46. IClusCfgCallback * picccIn,
  47. LCID lcidIn
  48. );
  49. HRESULT
  50. HrCreateNetworksEnum(
  51. IClusCfgCallback * picccIn,
  52. LCID lcidIn,
  53. IWbemServices * pIWbemServicesIn,
  54. IUnknown ** ppunkOut
  55. );
  56. HRESULT
  57. HrLoadOperatingSystemInfo(
  58. IClusCfgCallback * picccIn,
  59. IWbemServices * pIWbemServicesIn,
  60. BSTR * pbstrBootDeviceOut,
  61. BSTR * pbstrSystemDeviceOut
  62. );
  63. HRESULT
  64. HrConvertDeviceVolumeToLogicalDisk(
  65. BSTR bstrDeviceVolumeIn,
  66. BSTR * pbstrLogicalDiskOut
  67. );
  68. HRESULT
  69. HrConvertDeviceVolumeToWMIDeviceID(
  70. BSTR bstrDeviceVolumeIn,
  71. BSTR * pbstrWMIDeviceIDOut
  72. );
  73. HRESULT
  74. HrGetPageFileLogicalDisks(
  75. IClusCfgCallback * picccIn,
  76. IWbemServices * pIWbemServicesIn,
  77. WCHAR szLogicalDisksOut[ 26 ],
  78. int * pcLogicalDisksOut
  79. );
  80. HRESULT
  81. HrGetSystemDevice( BSTR * pbstrSystemDeviceOut );
  82. HRESULT
  83. HrGetBootLogicalDisk( BSTR * pbstrBootDeviceOut );
  84. HRESULT
  85. HrCheckSecurity( void );
  86. #ifdef DEBUG
  87. void TraceWMIProperties( IWbemClassObject * pDiskIn );
  88. #endif