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.

48 lines
1.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1995-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // QuorumUtils.h
  7. //
  8. // Description:
  9. // Header file for the utility functions to retrieve, split, and format
  10. // quorum path.
  11. //
  12. // Maintained By:
  13. // George Potts (GPotts) 22-OCT-2001
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. #include <windows.h>
  18. #include <cluster.h>
  19. #include "cluswrap.h"
  20. DWORD SplitRootPath(
  21. HCLUSTER hClusterIn
  22. , WCHAR * pszPartitionNameOut
  23. , DWORD * pcchPartitionInout
  24. , WCHAR * pszRootPathOut
  25. , DWORD * pcchRootPathInout
  26. );
  27. DWORD ConstructQuorumPath(
  28. HRESOURCE hResourceIn
  29. , const WCHAR * pszRootPathIn
  30. , WCHAR * pszQuorumPathOut
  31. , DWORD * pcchQuorumPathInout
  32. );
  33. DWORD TrimLeft(
  34. const WCHAR * pszTargetIn
  35. , const WCHAR * pszCharsIn
  36. , WCHAR * pszTrimmedOut
  37. );
  38. DWORD TrimRight(
  39. const WCHAR * pszTargetIn
  40. , const WCHAR * pszCharsIn
  41. , WCHAR * pszTrimmedOut
  42. );