clusapi.h 1.91 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * Copyright 2006 James Hawkins
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef __WINE_CLUSAPI_H
#define __WINE_CLUSAPI_H

22 23 24 25
#ifdef __cplusplus
extern "C" {
#endif

26
typedef struct _HCLUSTER *HCLUSTER;
27
typedef struct _HCLUSENUM *HCLUSENUM;
28

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

typedef struct _CLUSTERVERSIONINFO
{
    DWORD   dwVersionInfoSize;
    WORD    MajorVersion;
    WORD    MinorVersion;
    WORD    BuildNumber;
    WCHAR   szVendorId[64];
    WCHAR   szCSDVersion[64];
    DWORD   dwClusterHighestVersion;
    DWORD   dwClusterLowestVersion;
    DWORD   dwFlags;
    DWORD   dwReserved;
} CLUSTERVERSIONINFO, *LPCLUSTERVERSIONINFO;

44
BOOL WINAPI CloseCluster(HCLUSTER hCluster);
45 46
DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName,
                                   LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo);
47
DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState);
48
HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName);
49 50 51
HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType);
DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName);
DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum);
52

53 54 55 56
#ifdef __cplusplus
}
#endif

57
#endif /* __WINE_CLUSAPI_H */