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.

115 lines
2.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2002 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. /*
  57. HRESULT
  58. HrLoadOperatingSystemInfo(
  59. IClusCfgCallback * picccIn,
  60. IWbemServices * pIWbemServicesIn,
  61. BSTR * pbstrBootDeviceOut,
  62. BSTR * pbstrSystemDeviceOut
  63. );
  64. */
  65. HRESULT
  66. HrConvertDeviceVolumeToLogicalDisk(
  67. BSTR bstrDeviceVolumeIn,
  68. BSTR * pbstrLogicalDiskOut
  69. );
  70. HRESULT
  71. HrConvertDeviceVolumeToWMIDeviceID(
  72. BSTR bstrDeviceVolumeIn,
  73. BSTR * pbstrWMIDeviceIDOut
  74. );
  75. HRESULT
  76. HrGetPageFileLogicalDisks(
  77. IClusCfgCallback * picccIn,
  78. IWbemServices * pIWbemServicesIn,
  79. WCHAR szLogicalDisksOut[ 26 ],
  80. int * pcLogicalDisksOut
  81. );
  82. HRESULT
  83. HrGetSystemDevice( BSTR * pbstrSystemDeviceOut );
  84. HRESULT
  85. HrGetBootLogicalDisk( BSTR * pbstrBootDeviceOut );
  86. HRESULT
  87. HrCheckSecurity( void );
  88. HRESULT
  89. HrGetCrashDumpLogicalDisk( BSTR * pbstrCrashDumpLogicalDiskOut );
  90. //HRESULT
  91. //HrGetVolumeInformation( const WCHAR * pcszRootPathIn, DWORD * pdwFlagsOut, BSTR * pbstrFileSystemOut );
  92. #ifdef DEBUG
  93. void TraceWMIProperties( IWbemClassObject * pDiskIn );
  94. #endif