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.

65 lines
1.4 KiB

  1. /*
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. blbatt.h
  5. Abstract:
  6. Author:
  7. */
  8. #ifndef __SDP_ATTRIBUTE_IMPLEMENTATION_
  9. #define __SDP_ATTRIBUTE_IMPLEMENTATION_
  10. #include "resource.h" // main symbols
  11. #include "sdpblb.h"
  12. #include "sdp.h"
  13. class ATL_NO_VTABLE ITAttributeListImpl :
  14. public IDispatchImpl<ITAttributeList, &IID_ITAttributeList, &LIBID_SDPBLBLib>
  15. {
  16. public:
  17. inline ITAttributeListImpl();
  18. inline void SuccessInit(
  19. IN SDP_ATTRIBUTE_LIST &SdpAttributeList
  20. );
  21. STDMETHOD(get_AttributeList)(/*[out, retval]*/ VARIANT /*SAFEARRAY(BSTR)*/ * pVal);
  22. STDMETHOD(put_AttributeList)(/*[in]*/ VARIANT /*SAFEARRAY(BSTR)*/ newVal);
  23. STDMETHOD(Delete)(/*[in]*/ LONG Index);
  24. STDMETHOD(Add)(/*[in]*/ LONG Index, /*[in]*/ BSTR pAttribute);
  25. STDMETHOD(get_Item)(/*[in]*/ LONG Index, /*[out, retval]*/ BSTR *pVal);
  26. STDMETHOD(get_Count)(/*[out, retval]*/ LONG *pVal);
  27. protected:
  28. SDP_ATTRIBUTE_LIST *m_SdpAttributeList;
  29. };
  30. inline
  31. ITAttributeListImpl::ITAttributeListImpl(
  32. )
  33. : m_SdpAttributeList(NULL)
  34. {
  35. }
  36. inline void
  37. ITAttributeListImpl::SuccessInit(
  38. IN SDP_ATTRIBUTE_LIST &SdpAttributeList
  39. )
  40. {
  41. ASSERT(NULL == m_SdpAttributeList);
  42. m_SdpAttributeList = &SdpAttributeList;
  43. }
  44. #endif // __SDP_ATTRIBUTE_IMPLEMENTATION_