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.

84 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. Server.h
  5. Abstract:
  6. Author:
  7. Arthur Hanson (arth) Dec 07, 1994
  8. Environment:
  9. Revision History:
  10. --*/
  11. #ifndef _LLS_SERVERTBL_H
  12. #define _LLS_SERVERTBL_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. typedef struct _SERVER_SERVICE_RECORD {
  17. ULONG Service;
  18. DWORD Flags;
  19. ULONG MaxSessionCount; // Max # simultaneous sessions
  20. ULONG MaxSetSessionCount; // Max # simultaneous sessions ever set
  21. ULONG HighMark; // Max # simultaneous sessions ever attempted
  22. } SERVER_SERVICE_RECORD, *PSERVER_SERVICE_RECORD;
  23. typedef struct _SERVER_RECORD {
  24. ULONG Index;
  25. LPTSTR Name;
  26. DWORD LastReplicated;
  27. BOOL IsReplicating;
  28. ULONG MasterServer;
  29. ULONG SlaveServer;
  30. ULONG NextServer;
  31. ULONG ServiceTableSize;
  32. PSERVER_SERVICE_RECORD *Services;
  33. } SERVER_RECORD, *PSERVER_RECORD;
  34. extern ULONG ServerListSize;
  35. extern PSERVER_RECORD *ServerList;
  36. extern PSERVER_RECORD *ServerTable;
  37. extern RTL_RESOURCE ServerListLock;
  38. NTSTATUS ServerListInit();
  39. PSERVER_RECORD ServerListFind( LPTSTR Name );
  40. PSERVER_RECORD ServerListAdd( LPTSTR Name, LPTSTR Master );
  41. PSERVER_SERVICE_RECORD ServerServiceListFind( LPTSTR Name, ULONG ServiceTableSize, PSERVER_SERVICE_RECORD *ServiceList );
  42. PSERVER_SERVICE_RECORD ServerServiceListAdd( LPTSTR Name, ULONG ServiceIndex, PULONG pServiceTableSize, PSERVER_SERVICE_RECORD **pServiceList );
  43. VOID LocalServerServiceListUpdate();
  44. VOID LocalServerServiceListHighMarkUpdate();
  45. #if DBG
  46. VOID ServerListDebugDump( );
  47. VOID ServerListDebugInfoDump( PVOID Data );
  48. #endif
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif