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.

75 lines
2.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 2000 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: RADIUSAttributes.H
  6. //
  7. // Project: Windows 2000 IAS
  8. //
  9. // Description:
  10. // Declaration of the CRADIUSAttributes class
  11. //
  12. // Author: tperraut
  13. //
  14. // Revision 03/15/2000 created
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #ifndef _RADIUSATTRIBUTES_H_7F7029A3_4862_478f_A02D_D70A92C08065
  18. #define _RADIUSATTRIBUTES_H_7F7029A3_4862_478f_A02D_D70A92C08065
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "nocopy.h"
  23. #include "basetable.h"
  24. //////////////////////////////////////////////////////////////////////////////
  25. // class CRADIUSAttributesAcc
  26. //////////////////////////////////////////////////////////////////////////////
  27. class CRADIUSAttributesAcc
  28. {
  29. protected:
  30. static const size_t COLUMN_SIZE = 65;
  31. VARIANT_BOOL m_Selectable;
  32. LONG m_AttributeNumber;
  33. WCHAR m_Attribute[COLUMN_SIZE];
  34. WCHAR m_AttributeType[COLUMN_SIZE];
  35. BEGIN_COLUMN_MAP(CRADIUSAttributesAcc)
  36. COLUMN_ENTRY(1, m_Attribute)
  37. COLUMN_ENTRY(2, m_AttributeNumber)
  38. END_COLUMN_MAP()
  39. WCHAR m_AttributesParam[COLUMN_SIZE];
  40. BEGIN_PARAM_MAP(CRADIUSAttributesAcc)
  41. COLUMN_ENTRY(1, m_AttributesParam)
  42. END_PARAM_MAP()
  43. DEFINE_COMMAND(CRADIUSAttributesAcc, L" \
  44. SELECT \
  45. szAttribute, \
  46. `lAttribute Number` \
  47. FROM `RADIUS Attributes` \
  48. WHERE szAttribute = ?")
  49. };
  50. //////////////////////////////////////////////////////////////////////////////
  51. // class CRADIUSAttributes
  52. //////////////////////////////////////////////////////////////////////////////
  53. class CRADIUSAttributes : public CBaseCommand<CAccessor<CRADIUSAttributesAcc> >,
  54. private NonCopyable
  55. {
  56. public:
  57. CRADIUSAttributes(CSession& Session);
  58. //////////////////////////////////////////////////////////////////////////
  59. // GetAttributeNumber
  60. //////////////////////////////////////////////////////////////////////////
  61. LONG GetAttributeNumber(const _bstr_t& AttributeName);
  62. };
  63. #endif // _RADIUSATTRIBUTES_H_7F7029A3_4862_478f_A02D_D70A92C08065