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.

40 lines
990 B

  1. /*===================================================================
  2. Microsoft Denali
  3. Microsoft Confidential.
  4. Copyright 1997 Microsoft Corporation. All Rights Reserved.
  5. Component: MetaUtil object
  6. File: Utility.h
  7. Owner: t-BrianM
  8. This file contains the headers for the utility functions.
  9. ===================================================================*/
  10. #ifndef __UTILITY_H_
  11. #define __UTILITY_H_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. /*
  16. * U t i l i t i e s
  17. */
  18. // Sets up the ErrorInfo structure
  19. HRESULT ReportError(DWORD dwErr);
  20. HRESULT ReportError(HRESULT hr);
  21. // Metabase key manipulation
  22. LPTSTR CannonizeKey(LPTSTR tszKey);
  23. void SplitKey(LPCTSTR tszKey, LPTSTR tszParent, LPTSTR tszChild);
  24. void GetMachineFromKey(LPCTSTR tszFullKey, LPTSTR tszMachine);
  25. BOOL KeyIsInSchema(LPCTSTR tszFullKey);
  26. BOOL KeyIsInIISAdmin(LPCTSTR tszFullKey);
  27. // Variant manipulation
  28. HRESULT VariantResolveDispatch(VARIANT* pVarIn, VARIANT* pVarOut);
  29. #endif //__UTILITY_H_