2002-06-13 02:13:34 +02:00
|
|
|
#ifndef _COMCAT_H
|
|
|
|
#define _COMCAT_H
|
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2002-12-26 05:23:57 +01:00
|
|
|
#ifndef COM_NO_WINDOWS_H
|
2002-06-13 02:13:34 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#include <ole2.h>
|
2002-12-26 05:23:57 +01:00
|
|
|
#endif
|
2002-06-13 02:13:34 +02:00
|
|
|
|
|
|
|
#ifndef _RC_INVOKED
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EXTERN_C const IID IID_IEnumGUID;
|
2006-07-25 02:22:19 +02:00
|
|
|
typedef _COM_interface IEnumGUID *LPENUMGUID;
|
2002-06-13 02:13:34 +02:00
|
|
|
|
|
|
|
#define INTERFACE IEnumGUID
|
|
|
|
DECLARE_INTERFACE_(IEnumGUID,IUnknown)
|
|
|
|
{
|
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
STDMETHOD(Next)(THIS_ ULONG,GUID*,ULONG*) PURE;
|
|
|
|
STDMETHOD(Skip)(THIS_ ULONG) PURE;
|
|
|
|
STDMETHOD(Reset)(THIS) PURE;
|
|
|
|
STDMETHOD(Clone)(THIS_ LPENUMGUID*) PURE;
|
|
|
|
};
|
|
|
|
#undef INTERFACE
|
2003-08-25 01:04:57 +02:00
|
|
|
#if (!defined (__cplusplus) || defined (CINTERFACE)) \
|
|
|
|
&& defined (COBJMACROS)
|
2002-06-13 02:13:34 +02:00
|
|
|
#define IEnumGUID_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumGUID_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumGUID_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define IEnumGUID_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumGUID_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumGUID_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumGUID_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef GUID CATID;
|
|
|
|
typedef REFGUID REFCATID;
|
|
|
|
#define CATID_NULL GUID_NULL
|
|
|
|
#define IsEqualCATID(a, b) IsEqualGUID(a, b)
|
|
|
|
|
|
|
|
typedef struct tagCATEGORYINFO {
|
|
|
|
CATID catid; /* category identifier for component */
|
|
|
|
LCID lcid; /* locale identifier */
|
|
|
|
OLECHAR szDescription[128]; /* description of the category */
|
|
|
|
} CATEGORYINFO, *LPCATEGORYINFO;
|
|
|
|
|
|
|
|
EXTERN_C const CATID CATID_Insertable;
|
|
|
|
EXTERN_C const CATID CATID_Control;
|
|
|
|
EXTERN_C const CATID CATID_Programmable;
|
|
|
|
EXTERN_C const CATID CATID_IsShortcut;
|
|
|
|
EXTERN_C const CATID CATID_NeverShowExt;
|
|
|
|
EXTERN_C const CATID CATID_DocObject;
|
|
|
|
EXTERN_C const CATID CATID_Printable;
|
|
|
|
EXTERN_C const CATID CATID_RequiresDataPathHost;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToMoniker;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToStorage;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToStreamInit;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToStream;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToMemory;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToFile;
|
|
|
|
EXTERN_C const CATID CATID_PersistsToPropertyBag;
|
|
|
|
EXTERN_C const CATID CATID_InternetAware;
|
|
|
|
EXTERN_C const CATID CATID_DesignTimeUIActivatableControl;
|
|
|
|
|
|
|
|
#define IEnumCATID IEnumGUID
|
|
|
|
#define LPENUMCATID LPENUMGUID
|
|
|
|
#define IID_IEnumCATID IID_IEnumGUID
|
|
|
|
|
|
|
|
#define IEnumCLSID IEnumGUID
|
|
|
|
#define LPENUMCLSID LPENUMGUID
|
|
|
|
#define IID_IEnumCLSID IID_IEnumGUID
|
|
|
|
|
|
|
|
EXTERN_C const IID IID_ICatInformation;
|
2006-07-25 02:22:19 +02:00
|
|
|
typedef _COM_interface ICatInformation *LPCATINFORMATION;
|
2002-06-13 02:13:34 +02:00
|
|
|
|
|
|
|
EXTERN_C const IID IID_ICatRegister;
|
2006-07-25 02:22:19 +02:00
|
|
|
typedef _COM_interface ICatRegister *LPCATREGISTER;
|
2002-06-13 02:13:34 +02:00
|
|
|
|
|
|
|
EXTERN_C const IID IID_IEnumCATEGORYINFO;
|
2006-07-25 02:22:19 +02:00
|
|
|
typedef _COM_interface IEnumCATEGORYINFO *LPENUMCATEGORYINFO;
|
2002-06-13 02:13:34 +02:00
|
|
|
|
|
|
|
EXTERN_C const CLSID CLSID_StdComponentCategoriesMgr;
|
|
|
|
|
|
|
|
#define INTERFACE ICatInformation
|
|
|
|
DECLARE_INTERFACE_(ICatInformation,IUnknown)
|
|
|
|
{
|
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
STDMETHOD(EnumCategories)(THIS_ LCID,LPENUMCATEGORYINFO*) PURE;
|
|
|
|
STDMETHOD(GetCategoryDesc)(THIS_ REFCATID,LCID,PWCHAR*) PURE;
|
|
|
|
STDMETHOD(EnumClassesOfCategories)(THIS_ ULONG,CATID*,ULONG,CATID*,LPENUMCLSID*) PURE;
|
|
|
|
STDMETHOD(IsClassOfCategories)(THIS_ REFCLSID,ULONG,CATID*,ULONG,CATID*) PURE;
|
|
|
|
STDMETHOD(EnumImplCategoriesOfClass)(THIS_ REFCLSID,LPENUMCATID*) PURE;
|
|
|
|
STDMETHOD(EnumReqCategoriesOfClass)(THIS_ REFCLSID,LPENUMCATID*) PURE;
|
|
|
|
};
|
|
|
|
#undef INTERFACE
|
2003-08-25 01:04:57 +02:00
|
|
|
#if (!defined (__cplusplus) || defined (CINTERFACE)) \
|
|
|
|
&& defined (COBJMACROS)
|
2002-06-13 02:13:34 +02:00
|
|
|
#define ICatInformation_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ICatInformation_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ICatInformation_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define ICatInformation_EnumCategories(p,a,b) (p)->lpVtbl->EnumCategories(p,a,b)
|
|
|
|
#define ICatInformation_GetCategoryDesc(p,a,b,c) (p)->lpVtbl->GetCategoryDesc(p,a,b,c)
|
|
|
|
#define ICatInformation_EnumClassesOfCategories(p,a,b,c,d,e) (p)->lpVtbl->EnumClassesOfCategories(p,a,b,c,d,e)
|
|
|
|
#define ICatInformation_IsClassOfCategories(p,a,b,c,d,e) (p)->lpVtbl->IsClassOfCategories(p,a,b,c,d,e)
|
|
|
|
#define ICatInformation_EnumImplCategoriesOfClass(p,a,b) (p)->lpVtbl->EnumImplCategoriesOfClass(p,a,b)
|
|
|
|
#define ICatInformation_EnumReqCategoriesOfClass(p,a,b) (p)->lpVtbl->EnumReqCategoriesOfClass(p,a,b)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define INTERFACE ICatRegister
|
|
|
|
DECLARE_INTERFACE_(ICatRegister,IUnknown)
|
|
|
|
{
|
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
STDMETHOD(RegisterCategories)(THIS_ ULONG,CATEGORYINFO*) PURE;
|
|
|
|
STDMETHOD(UnRegisterCategories)(THIS_ ULONG,CATID*) PURE;
|
|
|
|
STDMETHOD(RegisterClassImplCategories)(THIS_ REFCLSID,ULONG,CATID*) PURE;
|
|
|
|
STDMETHOD(UnRegisterClassImplCategories)(THIS_ REFCLSID,ULONG,CATID*) PURE;
|
|
|
|
STDMETHOD(RegisterClassReqCategories)(THIS_ REFCLSID,ULONG,CATID*) PURE;
|
|
|
|
STDMETHOD(UnRegisterClassReqCategories)(THIS_ REFCLSID,ULONG,CATID*) PURE;
|
|
|
|
};
|
|
|
|
#undef INTERFACE
|
2003-08-25 01:04:57 +02:00
|
|
|
#if (!defined (__cplusplus) || defined (CINTERFACE)) \
|
|
|
|
&& defined (COBJMACROS)
|
2002-06-13 02:13:34 +02:00
|
|
|
#define ICatRegister_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ICatRegister_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ICatRegister_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define ICatRegister_RegisterCategories(p,a,b) (p)->lpVtbl->RegisterCategories(p,a,b)
|
|
|
|
#define ICatRegister_UnRegisterCategories(p,a,b) (p)->lpVtbl->UnRegisterCategories(p,a,b)
|
|
|
|
#define ICatRegister_RegisterClassImplCategories(p,a,b,c) (p)->lpVtbl->RegisterClassImplCategories(p,a,b,c)
|
|
|
|
#define ICatRegister_UnRegisterClassImplCategories(p,a,b,c) (p)->lpVtbl->UnRegisterClassImplCategories(p,a,b,c)
|
|
|
|
#define ICatRegister_RegisterClassReqCategories(p,a,b,c) (p)->lpVtbl->RegisterClassReqCategories(p,a,b,c)
|
|
|
|
#define ICatRegister_UnRegisterClassReqCategories(p,a,b,c) (p)->lpVtbl->UnRegisterClassReqCategories(p,a,b,c)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EXTERN_C const IID IID_IEnumCATEGORYINFO;
|
|
|
|
#define INTERFACE IEnumCATEGORYINFO
|
|
|
|
DECLARE_INTERFACE_(IEnumCATEGORYINFO,IUnknown)
|
|
|
|
{
|
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
STDMETHOD(Next)(THIS_ ULONG,CATEGORYINFO*,ULONG*) PURE;
|
|
|
|
STDMETHOD(Skip)(THIS_ ULONG) PURE;
|
|
|
|
STDMETHOD(Reset)(THIS) PURE;
|
|
|
|
STDMETHOD(Clone)(THIS_ LPENUMCATEGORYINFO*) PURE;
|
|
|
|
};
|
|
|
|
#undef INTERFACE
|
2003-08-25 01:04:57 +02:00
|
|
|
#if (!defined (__cplusplus) || defined (CINTERFACE)) \
|
|
|
|
&& defined (COBJMACROS)
|
2002-06-13 02:13:34 +02:00
|
|
|
#define IEnumCATEGORYINFO_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumCATEGORYINFO_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumCATEGORYINFO_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define IEnumCATEGORYINFO_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumCATEGORYINFO_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumCATEGORYINFO_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumCATEGORYINFO_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _RC_INVOKED */
|
|
|
|
#endif
|