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.

60 lines
1.4 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: hydra4db.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __HYDRA4_DB_H__
  13. #define __HYDRA4_DB_H__
  14. #include "license.h"
  15. //----------------------------------------------------------------------
  16. //
  17. // NT4 Hydra specific
  18. //
  19. //
  20. #define NT4SZSERVICENAME _TEXT("TermServLicensing")
  21. #define NT4LSERVER_DEFAULT_DSN _TEXT("Hydra License")
  22. #define NT4LSERVER_DEFAULT_USER _TEXT("sa")
  23. #define NT4LSERVER_DEFAULT_PWD _TEXT("password")
  24. //---------------------------------------------------------------------------
  25. //
  26. // Server specified Registry Entry
  27. //
  28. #define NT4LSERVER_REGISTRY_BASE \
  29. _TEXT("SYSTEM\\CurrentControlSet\\Services")
  30. #define NT4LSERVER_PARAMETERS \
  31. _TEXT("Parameters")
  32. #define NT4LSERVER_REGKEY \
  33. NT4LSERVER_REGISTRY_BASE _TEXT("\\") NT4SZSERVICENAME _TEXT("\\") NT4LSERVER_PARAMETERS
  34. #define NT4LSERVER_PARAMETERS_DSN _TEXT("Dsn")
  35. #define NT4LSERVER_PARAMETERS_USER _TEXT("User")
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. DWORD
  40. GetNT4DbConfig(
  41. LPTSTR pszDsn,
  42. LPTSTR pszUserName,
  43. LPTSTR pszPwd,
  44. LPTSTR pszMdbFile
  45. );
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif