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

//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1995-2001 Microsoft Corporation
//
// Module Name:
// QuorumUtils.h
//
// Description:
// Header file for the utility functions to retrieve, split, and format
// quorum path.
//
// Maintained By:
// George Potts (GPotts) 22-OCT-2001
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
#include <windows.h>
#include <cluster.h>
#include "cluswrap.h"
DWORD SplitRootPath(
HCLUSTER hClusterIn
, WCHAR * pszPartitionNameOut
, DWORD * pcchPartitionInout
, WCHAR * pszRootPathOut
, DWORD * pcchRootPathInout
);
DWORD ConstructQuorumPath(
HRESOURCE hResourceIn
, const WCHAR * pszRootPathIn
, WCHAR * pszQuorumPathOut
, DWORD * pcchQuorumPathInout
);
DWORD TrimLeft(
const WCHAR * pszTargetIn
, const WCHAR * pszCharsIn
, WCHAR * pszTrimmedOut
);
DWORD TrimRight(
const WCHAR * pszTargetIn
, const WCHAR * pszCharsIn
, WCHAR * pszTrimmedOut
);