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.

48 lines
1.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // sdoservergroup.cpp
  8. //
  9. // SYNOPSIS
  10. //
  11. // Defines the class SdoServerGroup.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/03/2000 Original version.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #include <stdafx.h>
  19. #include <sdoservergroup.h>
  20. HRESULT SdoServerGroup::FinalInitialize(
  21. bool fInitNew,
  22. ISdoMachine* pAttachedMachine
  23. )
  24. {
  25. HRESULT hr;
  26. IDataStoreContainer* container;
  27. hr = m_pDSObject->QueryInterface(
  28. __uuidof(IDataStoreContainer),
  29. (PVOID*)&container
  30. );
  31. if (SUCCEEDED(hr))
  32. {
  33. hr = InitializeCollection(
  34. PROPERTY_RADIUSSERVERGROUP_SERVERS_COLLECTION,
  35. SDO_PROG_ID_RADIUSSERVER,
  36. pAttachedMachine,
  37. container
  38. );
  39. container->Release();
  40. if (SUCCEEDED(hr) && !fInitNew) { hr = Load(); }
  41. }
  42. return hr;
  43. }