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.

49 lines
1.4 KiB

  1. #ifndef __AppCollection_h__
  2. #define __AppCollection_h__
  3. #include "NetMeeting.h"
  4. #include "ias.h"
  5. class ATL_NO_VTABLE CSharableAppCollection :
  6. public CComObjectRootEx<CComSingleThreadModel>,
  7. public IDispatchImpl<ISharableAppCollection, &IID_ISharableAppCollection, &LIBID_NetMeetingLib>
  8. {
  9. protected:
  10. IAS_HWND_ARRAY* m_pList;
  11. public:
  12. DECLARE_NO_REGISTRY()
  13. DECLARE_NOT_AGGREGATABLE(CSharableAppCollection)
  14. DECLARE_PROTECT_FINAL_CONSTRUCT()
  15. BEGIN_COM_MAP(CSharableAppCollection)
  16. COM_INTERFACE_ENTRY(ISharableAppCollection)
  17. COM_INTERFACE_ENTRY(IDispatch)
  18. END_COM_MAP()
  19. //////////////////////////////////////////////////////////
  20. // Construction/destruction/initialization
  21. //////////////////////////////////////////////////////////
  22. CSharableAppCollection();
  23. ~CSharableAppCollection();
  24. static HRESULT CreateInstance(IAS_HWND_ARRAY* pList, ISharableAppCollection **ppSharebleAppCollection);
  25. //////////////////////////////////////////////////////////
  26. // ISharableAppCollection
  27. //////////////////////////////////////////////////////////
  28. STDMETHOD(get_Item)(VARIANT Index, DWORD* pSharableAppHWND);
  29. STDMETHOD(_NewEnum)(IUnknown** ppunk);
  30. STDMETHOD(get_Count)(LONG * pnCount);
  31. //////////////////////////////////////////////////////////
  32. // Helper Fns
  33. //////////////////////////////////////////////////////////
  34. HWND _GetHWNDFromName(LPCTSTR pcsz);
  35. };
  36. #endif // __AppCollection_h__