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.

31 lines
492 B

  1. // Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
  2. #ifndef _dispexa_h_
  3. #define _dispexa_h_
  4. #include <dispex.h>
  5. class CDispExArray
  6. {
  7. public:
  8. CDispExArray() {
  9. };
  10. ~CDispExArray() {
  11. };
  12. void Attach(IDispatchEx* pDispEx) {
  13. m_piDispEx = pDispEx;
  14. };
  15. void Detach() {
  16. m_piDispEx = NULL;
  17. };
  18. HRESULT HrGetLength(ULONG* pLength);
  19. HRESULT HrGetElement(ULONG index, LPVARIANT pVar);
  20. private:
  21. CComPtr<IDispatchEx> m_piDispEx;
  22. };
  23. #endif