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.

83 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. Registry.h
  5. Abstract:
  6. Author:
  7. Arthur Hanson (arth) Dec 07, 1994
  8. Environment:
  9. Revision History:
  10. Jeff Parham (jeffparh) 05-Dec-1995
  11. o Added secure service list. This list tracks the products that
  12. require "secure" license certificates for all licenses; i.e., the
  13. products that do not accept the 3.51 Honesty method of "enter the
  14. number of licenses you purchased."
  15. o Added routine to update the concurrent limit value in the registry
  16. to accurately reflect the connection limit of secure products.
  17. --*/
  18. #ifndef _LLS_REGISTRY_H
  19. #define _LLS_REGISTRY_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. typedef struct _LOCAL_SERVICE_RECORD {
  24. LPTSTR Name;
  25. LPTSTR DisplayName;
  26. LPTSTR FamilyDisplayName;
  27. DWORD ConcurrentLimit;
  28. DWORD FlipAllow;
  29. DWORD Mode;
  30. ULONG HighMark;
  31. } LOCAL_SERVICE_RECORD, *PLOCAL_SERVICE_RECORD;
  32. extern ULONG LocalServiceListSize;
  33. extern PLOCAL_SERVICE_RECORD *LocalServiceList;
  34. extern RTL_RESOURCE LocalServiceListLock;
  35. VOID RegistryInit( );
  36. VOID RegistryStartMonitor( );
  37. VOID ConfigInfoRegistryInit( DWORD *pReplicationType, DWORD *pReplicationTime, DWORD *pLogLevel, BOOL * pPerServerCapacityWarning );
  38. VOID RegistryInitValues( LPTSTR ServiceName, BOOL *PerSeatLicensing, ULONG *SessionLimit );
  39. VOID RegistryDisplayNameGet( LPTSTR ServiceName, LPTSTR DefaultName, LPTSTR *pDisplayName );
  40. VOID RegistryFamilyDisplayNameGet( LPTSTR ServiceName, LPTSTR DefaultName, LPTSTR *pDisplayName );
  41. VOID RegistryInitService( LPTSTR ServiceName, BOOL *PerSeatLicensing, ULONG *SessionLimit );
  42. LPTSTR ServiceFindInTable( LPTSTR ServiceName, const LPTSTR Table[], ULONG TableSize, ULONG *TableIndex );
  43. NTSTATUS LocalServiceListInit();
  44. PLOCAL_SERVICE_RECORD LocalServiceListFind( LPTSTR Name );
  45. PLOCAL_SERVICE_RECORD LocalServiceListAdd( LPTSTR Name, LPTSTR DisplayName, LPTSTR FamilyDisplayName, DWORD ConcurrentLimit, DWORD FlipAllow, DWORD Mode, DWORD SessLimit );
  46. VOID LocalServiceListUpdate( );
  47. VOID LocalServiceListHighMarkSet( );
  48. VOID LocalServiceListConcurrentLimitSet( );
  49. BOOL ServiceIsSecure( LPTSTR ServiceName );
  50. NTSTATUS ServiceSecuritySet( LPTSTR ServiceName );
  51. NTSTATUS ProductSecurityUnpack( DWORD cchProductSecurityStrings, WCHAR * pchProductSecurityStrings );
  52. NTSTATUS ProductSecurityPack( LPDWORD pcchProductSecurityStrings, WCHAR ** ppchProductSecurityStrings );
  53. #if DBG
  54. void ProductSecurityListDebugDump();
  55. #endif
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif