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.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: RADIUSAttributes.cpp
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description:
  10. // Implementation of the CRADIUSAttributes class
  11. //
  12. // Author: tperraut
  13. //
  14. // Revision 03/15/2000 created
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #include "stdafx.h"
  18. #include "RADIUSAttributes.h"
  19. CRADIUSAttributes::CRADIUSAttributes(CSession& Session)
  20. {
  21. Init(Session);
  22. }
  23. //////////////////////////////////////////////////////////////////////////
  24. // GetAttributeNumber
  25. //////////////////////////////////////////////////////////////////////////
  26. LONG CRADIUSAttributes::GetAttributeNumber(const _bstr_t& AttributeName)
  27. {
  28. lstrcpynW(m_AttributesParam, AttributeName, COLUMN_SIZE);
  29. HRESULT hr = BaseExecute();
  30. if ( hr == S_OK )
  31. {
  32. return m_AttributeNumber;
  33. }
  34. else
  35. {
  36. return 0;
  37. }
  38. }