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.

53 lines
1.4 KiB

  1. //***************************************************************************
  2. //
  3. // Copyright � Microsoft Corporation. All rights reserved.
  4. //
  5. // utils.h
  6. //
  7. // Purpose: utility functions
  8. //
  9. //***************************************************************************
  10. #pragma once
  11. #define NORMALIZE_NULL 1
  12. typedef enum
  13. {
  14. e_OK,
  15. e_UnparsablePath,
  16. e_NonLocalPath,
  17. e_UnParseError,
  18. e_NullName
  19. } GetValuesForPropResults;
  20. /*****************************************************************************
  21. *
  22. * FUNCTION : NormalizePath
  23. *
  24. * DESCRIPTION : Converts object paths to a normalized form
  25. *
  26. * INPUTS :
  27. *
  28. * OUTPUTS :
  29. *
  30. * RETURNS :
  31. *
  32. * COMMENTS : Machine name is verified, then removed. Namespace is verified
  33. * then removed. If there is only one key, then the key property
  34. * name is removed. If there is more than one key, then the order
  35. * of the key names is alphabetized.
  36. *
  37. * If dwFlags == 0, then DON'T null the key
  38. * property name, if NORMALIZE_NULL, then DO null the key.
  39. *
  40. *****************************************************************************/
  41. DWORD POLARITY WINAPI NormalizePath(
  42. LPCWSTR lpwszInPath,
  43. LPCWSTR lpwszComputerName,
  44. LPCWSTR lpwszNamespace,
  45. DWORD dwFlags,
  46. CHString &sOutPath
  47. );