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.

56 lines
2.3 KiB

  1. //---------------------------------------------------------------------------
  2. // VBOCHOST.H
  3. //---------------------------------------------------------------------------
  4. // Copyright (c) 1991-1995, Microsoft Corp. All Rights Reserved.
  5. //---------------------------------------------------------------------------
  6. // Include file for the OLE Custom Controls Visual Basic
  7. // programming interface.
  8. //---------------------------------------------------------------------------
  9. #if !defined (_VBOCHOST_H_)
  10. #define _VBOCHOST_H_
  11. DEFINE_GUID(IID_IVBGetControl, 0x40A050A0L, 0x3C31, 0x101B, 0xA8, 0x2E, 0x08, 0x00, 0x2B, 0x2B, 0x23, 0x37);
  12. DEFINE_GUID(IID_IGetOleObject, 0x8A701DA0L, 0x4FEB, 0x101B, 0xA8, 0x2E, 0x08, 0x00, 0x2B, 0x2B, 0x23, 0x37);
  13. //---------------------------------------------------------------------------
  14. // IVBGetControl
  15. //---------------------------------------------------------------------------
  16. // Constants for dwWhich parameter:
  17. #define GC_WCH_SIBLING 0x00000001L
  18. #define GC_WCH_CONTAINER 0x00000002L // no FONLYNEXT/PREV
  19. #define GC_WCH_CONTAINED 0x00000003L // no FONLYNEXT/PREV
  20. #define GC_WCH_ALL 0x00000004L
  21. #define GC_WCH_FREVERSEDIR 0x08000000L // OR'd with others
  22. #define GC_WCH_FONLYNEXT 0x10000000L // OR'd with others
  23. #define GC_WCH_FONLYPREV 0x20000000L // OR'd with others
  24. #define GC_WCH_FSELECTED 0x40000000L // OR'd with others
  25. DECLARE_INTERFACE_(IVBGetControl, IUnknown)
  26. {
  27. // *** IUnknown methods ****
  28. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  29. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  30. STDMETHOD_(ULONG, Release)(THIS) PURE;
  31. // *** IVBGetControl methods ****
  32. STDMETHOD(EnumControls)(THIS_ DWORD dwOleContF, DWORD dwWhich,
  33. LPENUMUNKNOWN FAR *ppenumUnk) PURE;
  34. };
  35. //---------------------------------------------------------------------------
  36. // IGetOleObject
  37. //---------------------------------------------------------------------------
  38. DECLARE_INTERFACE_(IGetOleObject, IUnknown)
  39. {
  40. // *** IUnknown methods ****
  41. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  42. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  43. STDMETHOD_(ULONG, Release)(THIS) PURE;
  44. // *** IGetOleObject methods ****
  45. STDMETHOD(GetOleObject)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  46. };
  47. #endif // !defined (_VBOCHOST_H_)