Source code of Windows XP (NT5)
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 Corporation all rights reserved.
  4. //
  5. // Module: Attributes.cpp
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description:
  10. // Implementation of the CAttributes class (dnary.mdb)
  11. //
  12. // Author: tperraut
  13. //
  14. // Revision 03/15/2000 created
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #include "stdafx.h"
  18. #include "Attributes.h"
  19. CAttributes::CAttributes(CSession& Session)
  20. {
  21. Init(Session);
  22. }
  23. //////////////////////////////////////////////////////////////////////////
  24. // GetAttribute
  25. //////////////////////////////////////////////////////////////////////////
  26. HRESULT CAttributes::GetAttribute(
  27. LONG ID,
  28. _bstr_t& LDAPName,
  29. LONG& Syntax,
  30. BOOL& IsMultiValued
  31. )
  32. {
  33. m_IDParam = ID;
  34. // Used if you have previously created the command
  35. HRESULT hr = BaseExecute();
  36. if ( hr == S_OK )
  37. {
  38. LDAPName = m_LDAPName;
  39. Syntax = m_Syntax;
  40. IsMultiValued = m_MultiValued;
  41. }
  42. return hr;
  43. }