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.

64 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. clusutil.h
  5. Abstract:
  6. This files has to be kept in ssync with \kinglet\rats\testsrc\kernel\cluster\clusapi\clusutil.
  7. Author:
  8. Sivaprasad Padisetty (sivapad) 6/25/97
  9. Revision History:
  10. --*/
  11. #ifndef _CLUSUTIL_H_
  12. #define _CLUSUTIL_H_
  13. #include <clusapi.h>
  14. #define PARAM_LEN 512
  15. typedef struct {
  16. LPCWSTR pszDesc ;
  17. DWORD dwCode ;
  18. } DWORDTOSTRINGMAP, *PDWORDTOSTRINGMAP ;
  19. extern DWORDTOSTRINGMAP aTypeMap [] ;
  20. extern LPCWSTR GetType (PDWORDTOSTRINGMAP pTypeMap, DWORD_PTR dwCode) ;
  21. typedef struct {
  22. LPCWSTR pszDesc ;
  23. DWORD dwCode ;
  24. DWORD dwSubCode ;
  25. } DWORDTOSUBSTRINGMAP, *PDWORDTOSUBSTRINGMAP ;
  26. extern DWORDTOSUBSTRINGMAP aSubTypeMap [] ;
  27. extern LPCWSTR GetSubType (PDWORDTOSUBSTRINGMAP pTypeMap, DWORD dwCode, DWORD dwSubCode) ;
  28. LPCWSTR GetType (ULONG_PTR dwFilter) ;
  29. void RecurseEvalParam (LPCWSTR pszParam, LPWSTR pszValueconst, LPCWSTR pszSection = L"PARAMETER") ;
  30. int RecurseEvalIntParam (LPCWSTR pszParam) ;
  31. void SaveParam (LPCWSTR pszKey, LPCWSTR pszValue) ;
  32. void SaveIntParam (LPCWSTR pszKey, int iValue) ;
  33. void MemSet (LPWSTR pszBuf, WCHAR c, DWORD cb) ;
  34. int MemCheck (LPCWSTR pszBuf, WCHAR c, DWORD cb) ;
  35. DumpClusterDetails (HCLUSTER hCluster, LPCWSTR pszFileName, LPCWSTR pszComment) ;
  36. CLUSTER_GROUP_STATE MyGetClusterGroupState (HCLUSTER hCluster, LPCWSTR pszGroupName, LPWSTR pszNodeName) ;
  37. CLUSTER_NODE_STATE MyGetClusterNodeState (HCLUSTER hCluster, LPWSTR pszNodeName) ;
  38. CLUSTER_RESOURCE_STATE MyGetClusterResourceState (HCLUSTER hCluster, LPCWSTR pszResourceName, LPWSTR pszNodeName, LPWSTR pszGroupName) ;
  39. CLUSTER_NETWORK_STATE MyGetClusterNetworkState (HCLUSTER hCluster, LPWSTR pszNetworkName) ;
  40. CLUSTER_NETINTERFACE_STATE MyGetClusterNetInterfaceState (HCLUSTER hCluster, LPWSTR pszNetInterfaceName) ;
  41. #endif _CLUSUTIL_H_