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.

50 lines
1.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: Providers.cpp
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description: Implementation of the CProviders class
  10. //
  11. // Author: tperraut
  12. //
  13. // Revision 02/24/2000 created
  14. //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #include "stdafx.h"
  17. #include "Providers.h"
  18. //////////////////////////////////////////////////////////////////////////
  19. // GetProvider
  20. //////////////////////////////////////////////////////////////////////////
  21. void CProviders::GetProvider(
  22. const _bstr_t& UserDefinedName,
  23. _bstr_t& Description,
  24. _bstr_t& Type,
  25. _bstr_t& DLLName,
  26. VARIANT_BOOL& IsConfigured,
  27. VARIANT_BOOL& CanConfigure
  28. )
  29. {
  30. lstrcpynW(m_UserDefinedNameParam, UserDefinedName, COLUMN_SIZE);
  31. _com_util::CheckError(BaseExecute());
  32. Description = m_Description;
  33. Type = m_Type;
  34. DLLName = m_DLLName;
  35. IsConfigured = m_IsConfigured;
  36. CanConfigure = m_CanConfigure;
  37. }
  38. //////////////////////////////////////////////////////////////////////////////
  39. // GetProviderDescription
  40. //////////////////////////////////////////////////////////////////////////////
  41. LPCOLESTR CProviders::GetProviderDescription(const _bstr_t& UserDefinedName)
  42. {
  43. lstrcpynW(m_UserDefinedNameParam, UserDefinedName, COLUMN_SIZE);
  44. _com_util::CheckError(BaseExecute());
  45. return m_Description;
  46. }