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.

43 lines
1.1 KiB

  1. // Copyright (c) 1996-1999 Microsoft Corporation
  2. //+============================================================================
  3. //
  4. // rpccfg.cxx
  5. //
  6. // Base class for CRpcServer and CRpcClientBinding, which provides
  7. // reg-based configuration support.
  8. //
  9. //=============================================================================
  10. #include <pch.cxx>
  11. #pragma hdrstop
  12. #include "trklib.hxx"
  13. BOOL CTrkRpcConfig::_fInitialized = FALSE;
  14. CMultiTsz CTrkRpcConfig::_mtszCustomDcName;
  15. CMultiTsz CTrkRpcConfig::_mtszCustomSecureDcName;
  16. CTrkRpcConfig::CTrkRpcConfig()
  17. {
  18. // This isn't thread-safe because it's not worth the expense;
  19. // if multiple threads load this data, they'll each load the
  20. // same data anyway.
  21. if( !_fInitialized )
  22. {
  23. CTrkConfiguration::Initialize( );
  24. Read( CUSTOM_DC_NAME_NAME, &_mtszCustomDcName, CUSTOM_DC_NAME_DEFAULT );
  25. Read( CUSTOM_SECURE_DC_NAME_NAME, &_mtszCustomSecureDcName, CUSTOM_SECURE_DC_NAME_DEFAULT );
  26. _fInitialized = TRUE;
  27. CTrkConfiguration::UnInitialize();
  28. }
  29. }