📄 correg.h
字号:
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataInternal =
{ 0x2d601bb, 0xc5b9, 0x11d1, {0x93, 0xf9, 0x0, 0x0, 0xf8, 0x8, 0x34, 0x60 } };
// {AD93D71D-E1F2-11d1-9409-0000F8083460}
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataEmitTemp =
{ 0xad93d71d, 0xe1f2, 0x11d1, {0x94, 0x9, 0x0, 0x0, 0xf8, 0x8, 0x34, 0x60 } };
interface IMetaDataRegEmit;
interface IMetaDataRegImport;
interface IMetaDataDispenser;
// %%Interfaces: -------------------------------------------------------------
//-------------------------------------
//--- IMemory
//-------------------------------------
//---
// IID_IMemory: {06A3EA8A-0225-11d1-BF72-00C04FC31E12}
extern const GUID DECLSPEC_SELECT_ANY IID_IMemory =
{ 0x6a3ea8a, 0x225, 0x11d1, {0xbf, 0x72, 0x0, 0xc0, 0x4f, 0xc3, 0x1e, 0x12 } };
//---
#undef INTERFACE
#define INTERFACE IMemory
DECLARE_INTERFACE_(IMemory, IUnknown)
{
// *** IUnknown methods ***
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
// *** IMemory methods ***
STDMETHOD(GetMemory)(void **pMem, ULONG *iSize) PURE;
STDMETHOD(SetMemory)(void *pMem, ULONG iSize) PURE;
};
//-------------------------------------
//--- IMetaDataError
//-------------------------------------
//---
// {B81FF171-20F3-11d2-8DCC-00A0C9B09C19}
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataError =
{ 0xb81ff171, 0x20f3, 0x11d2, { 0x8d, 0xcc, 0x0, 0xa0, 0xc9, 0xb0, 0x9c, 0x19 } };
//---
#undef INTERFACE
#define INTERFACE IMetaDataError
DECLARE_INTERFACE_(IMetaDataError, IUnknown)
{
STDMETHOD(OnError)(HRESULT hrError, mdToken token) PURE;
};
//-------------------------------------
//--- IMapToken
//-------------------------------------
//---
// IID_IMapToken: {06A3EA8B-0225-11d1-BF72-00C04FC31E12}
extern const GUID DECLSPEC_SELECT_ANY IID_IMapToken =
{ 0x6a3ea8b, 0x225, 0x11d1, {0xbf, 0x72, 0x0, 0xc0, 0x4f, 0xc3, 0x1e, 0x12 } };
//---
#undef INTERFACE
#define INTERFACE IMapToken
DECLARE_INTERFACE_(IMapToken, IUnknown)
{
STDMETHOD(Map)(ULONG tkImp, ULONG tkEmit) PURE;
};
//-------------------------------------
//--- IMetaDataDispenser
//-------------------------------------
//---
// {B81FF171-20F3-11d2-8DCC-00A0C9B09C19}
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataDispenser =
{ 0x809c652e, 0x7396, 0x11d2, { 0x97, 0x71, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc } };
#undef INTERFACE
#define INTERFACE IMetaDataDispenser
DECLARE_INTERFACE_(IMetaDataDispenser, IUnknown)
{
STDMETHOD(DefineScope)( // Return code.
REFCLSID rclsid, // [in] What version to create.
DWORD dwCreateFlags, // [in] Flags on the create.
REFIID riid, // [in] The interface desired.
IUnknown **ppIUnk) PURE; // [out] Return interface on success.
STDMETHOD(OpenScope)( // Return code.
LPCWSTR szScope, // [in] The scope to open.
DWORD dwOpenFlags, // [in] Open mode flags.
REFIID riid, // [in] The interface desired.
IUnknown **ppIUnk) PURE; // [out] Return interface on success.
STDMETHOD(OpenScopeOnStream)( // Return code.
IStream *pIStream, // [in] The scope to open.
DWORD dwOpenFlags, // [in] Open mode flags.
REFIID riid, // [in] The interface desired.
IUnknown **ppIUnk) PURE; // [out] Return interface on success.
STDMETHOD(OpenScopeOnMemory)( // Return code.
LPCVOID pData, // [in] Location of scope data.
ULONG cbData, // [in] Size of the data pointed to by pData.
DWORD dwOpenFlags, // [in] Open mode flags.
REFIID riid, // [in] The interface desired.
IUnknown **ppIUnk) PURE; // [out] Return interface on success.
};
//-------------------------------------
//--- IMetaDataRegEmit
//-------------------------------------
//---
#if defined(_META_DATA_NO_SCOPE_) || defined(_META_DATA_SCOPE_WRAPPER_)
// {601C95B9-7398-11d2-9771-00A0C9B4D50C}
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataRegEmit =
{ 0x601c95b9, 0x7398, 0x11d2, { 0x97, 0x71, 0x0, 0xa0, 0xc9, 0xb4, 0xd5, 0xc } };
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataRegEmitOld =
{ 0xf28f419b, 0x62ca, 0x11d2, { 0x8f, 0x2c, 0x0, 0xa0, 0xc9, 0xa6, 0x18, 0x6d } };
//---
#undef INTERFACE
#define INTERFACE IMetaDataRegEmit
DECLARE_INTERFACE_(IMetaDataRegEmit, IUnknown)
{
STDMETHOD(SetModuleProps)( // S_OK or error.
LPCWSTR szName, // [IN] If not NULL, the name to set.
const GUID *ppid, // [IN] If not NULL, the GUID to set.
LCID lcid) PURE; // [IN] If not -1, the lcid to set.
STDMETHOD(Save)( // S_OK or error.
LPCWSTR szFile, // [IN] The filename to save to.
DWORD dwSaveFlags) PURE; // [IN] Flags for the save.
STDMETHOD(SaveToStream)( // S_OK or error.
IStream *pIStream, // [IN] A writable stream to save to.
DWORD dwSaveFlags) PURE; // [IN] Flags for the save.
STDMETHOD(GetSaveSize)( // S_OK or error.
CorSaveSize fSave, // [IN] cssAccurate or cssQuick.
DWORD *pdwSaveSize) PURE; // [OUT] Put the size here.
STDMETHOD(Merge)( // S_OK or error.
IMetaDataRegImport *pImport, // [IN] The scope to be merged.
IMapToken *pIMap) PURE; // [IN] An object to receive token remap notices.
STDMETHOD(DefineCustomValueAsBlob)(
mdToken tkObj,
LPCWSTR szName,
void const *pCustomValue,
ULONG cbCustomValue,
mdCustomValue *pcv) PURE;
STDMETHOD(DefineTypeDef)( // S_OK or error.
LPCWSTR szNamespace, // [IN] Namespace that the TypeDef is in. Must be 0 in '98
LPCWSTR szTypeDef, // [IN] Name of TypeDef
const GUID *pguid, // [IN] Optional clsid
CLASSVERSION *pVer, // [IN] Optional version
DWORD dwTypeDefFlags, // [IN] CustomValue flags
mdToken tkExtends, // [IN] extends this TypeDef or typeref
DWORD dwExtendsFlags, // [IN] Extends flags
mdToken rtkImplements[], // [IN] Implements interfaces
mdToken rtkEvents[], // [IN] Events interfaces
mdTypeDef *ptd) PURE; // [OUT] Put TypeDef token here
STDMETHOD(SetTypeDefProps)( // S_OK or error.
mdTypeDef td, // [IN] The TypeDef.
CLASSVERSION *pVer, // [IN] Optional version.
DWORD dwTypeDefFlags, // [IN] TypeDef flags.
mdToken tkExtends, // [IN] Base TypeDef or TypeRef.
DWORD dwExtendsFlags, // [IN] Extends flags.
mdToken rtkImplements[], // [IN] Implemented interfaces.
mdToken rtkEvents[]) PURE; // [IN] Event interfaces.
STDMETHOD(SetClassSvcsContext)(mdTypeDef td, DWORD dwClassActivateAttr, DWORD dwClassThreadAttr,
DWORD dwXactionAttr, DWORD dwSynchAttr) PURE;
STDMETHOD(DefineTypeRefByGUID)( // S_OK or error.
GUID *pguid, // [IN] The Type's GUID.
mdTypeRef *ptr) PURE; // [OUT] Put TypeRef token here.
STDMETHOD(SetModuleReg)(DWORD dwModuleRegAttr, const GUID *pguid) PURE;
STDMETHOD(SetClassReg)(mdTypeDef td, LPCWSTR szProgID,
LPCWSTR szVIProgID, LPCWSTR szIconURL, ULONG ulIconResource, LPCWSTR szSmallIconURL,
ULONG ulSmallIconResource, LPCWSTR szDefaultDispName) PURE;
STDMETHOD(SetIfaceReg)(mdTypeDef td, DWORD dwIfaceSvcs, const GUID *proxyStub) PURE;
STDMETHOD(SetCategoryImpl)(mdTypeDef td, GUID rGuidCoCatImpl[], GUID rGuidCoCatReqd[]) PURE;
STDMETHOD(SetRedirectProgID)(mdTypeDef td, LPCWSTR rszRedirectProgID[]) PURE;
STDMETHOD(SetMimeTypeImpl)(mdTypeDef td, LPCWSTR rszMimeType[]) PURE;
STDMETHOD(SetFormatImpl)( // S_OK or error.
mdTypeDef td, // [IN] The TypeDef.
LPCWSTR rszFormatSupported[], // [IN] If not 0, array of supported formats. 0 for EOL.
LPCWSTR rszFormatConvertsFrom[],// [IN] If not 0, array of ConvertsFrom values. "
LPCWSTR rszFormatConvertsTo[], // [IN] If not 0, array of ConvertsTo values. "
LPCWSTR rszFormatDefault[], // [IN] If not 0, array of Default format. Only one item.
LPCWSTR rszFileExt[], // [IN] If not 0, array of file extensions. 0 for EOL.
LPCWSTR rszFileType[]) PURE; // [IN] If not 0, array of file types. "
STDMETHOD(SetRoleCheck)( // S_OK or error.
mdToken tk, // [IN] Object to place role on.
LPCWSTR rszName[], // [IN] Name for the role.
DWORD rdwRoleFlags[]) PURE; // [IN] Flags for new role.
STDMETHOD(SetHandler)( // S_OK.
IUnknown *pUnk) PURE; // [IN] The new error handler.
};
#endif // #if defined(_META_DATA_NO_SCOPE_) || defined(_META_DATA_SCOPE_WRAPPER_)
#if !defined(_META_DATA_NO_SCOPE_)
//@TODO: $#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#
// The following interface definition is being deprecated for COM+ 1.0
// and beyond. Please convert to the new definition by defining _META_DATA_NO_SCOPE_
// in your build.
//@TODO: $#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#
#if !defined(_META_DATA_SCOPE_WRAPPER_)
// {F28F419B-62CA-11d2-8F2C-00A0C9A6186D}
extern const GUID DECLSPEC_SELECT_ANY IID_IMetaDataRegEmit =
{ 0xf28f419b, 0x62ca, 0x11d2, { 0x8f, 0x2c, 0x0, 0xa0, 0xc9, 0xa6, 0x18, 0x6d } };
#endif
#undef INTERFACE
#if defined(_META_DATA_SCOPE_WRAPPER_)
#define INTERFACE IMetaDataRegEmitOld
#else
#define INTERFACE IMetaDataRegEmit
#endif
DECLARE_INTERFACE_(INTERFACE, IUnknown)
{
STDMETHOD(DefineScope)( // S_OK or error.
DWORD dwCreateFlags, // [IN] Flags on the create.
mdScope *pscope) PURE; // [OUT] return scope here.
STDMETHOD(SetModuleProps)( // S_OK or error.
mdScope scope, // [IN] scope for which to set props.
LPCWSTR szName, // [IN] If not NULL, the name to set.
const GUID *ppid, // [IN] If not NULL, the GUID to set.
LCID lcid) PURE; // [IN] If not -1, the lcid to set.
STDMETHOD(Save)( // S_OK or error.
mdScope es, // [IN] The scope to save.
LPCWSTR szFile, // [IN] The filename to save to.
DWORD dwSaveFlags) PURE; // [IN] Flags for the save.
STDMETHOD(SaveToStream)( // S_OK or error.
mdScope es, // [IN] The scope to save.
IStream *pIStream, // [IN] A writable stream to save to.
DWORD dwSaveFlags) PURE; // [IN] Flags for the save.
STDMETHOD(GetSaveSize)( // S_OK or error.
mdScope es, // [IN] The scope to query.
CorSaveSize fSave, // [IN] cssAccurate or cssQuick.
DWORD *pdwSaveSize) PURE; // [OUT] Put the size here.
STDMETHOD_(void,Close)( // S_OK or error.
mdScope scope) PURE; // [IN] The scope to close.
STDMETHOD(Merge)( // S_OK or error.
mdScope scEmit, // [IN] The scope to merge into.
mdScope scImport, // [IN] The scope to be merged.
IMapToken *pIMap) PURE; // [IN] An object to receive token remap notices.
STDMETHOD(DefineCustomValueAsBlob)(mdScope es, mdToken tkObj, LPCWSTR szName,
void const *pCustomValue, ULONG cbCustomValue, mdCustomValue *pcv) PURE;
STDMETHOD(DefineTypeDef)( // S_OK or error.
mdScope es, // [IN] Emit scope
LPCWSTR szNamespace, // [IN] Namespace that the TypeDef is in. Must be 0 in '98
LPCWSTR szTypeDef, // [IN] Name of TypeDef
const GUID *pguid, // [IN] Optional clsid
CLASSVERSION *pVer, // [IN] Optional version
DWORD dwTypeDefFlags, // [IN] CustomValue flags
mdToken tkExtends, // [IN] extends this TypeDef or typeref
DWORD dwExtendsFlags, // [IN] Extends flags
mdToken rtkImplements[], // [IN] Implements interfaces
mdToken rtkEvents[], // [IN] Events interfaces
mdTypeDef *ptd) PURE; // [OUT] Put TypeDef token here
STDMETHOD(SetTypeDefProps)( // S_OK or error.
mdScope es, // [IN] The emit scope.
mdTypeDef td, // [IN] The TypeDef.
CLASSVERSION *pVer, // [IN] Optional version.
DWORD dwTypeDefFlags, // [IN] TypeDef flags.
mdToken tkExtends, // [IN] Base TypeDef or TypeRef.
DWORD dwExtendsFlags, // [IN] Extends flags.
mdToken rtkImplements[], // [IN] Implemented interfaces.
mdToken rtkEvents[]) PURE; // [IN] Event interfaces.
STDMETHOD(SetClassSvcsContext)(mdScope es, mdTypeDef td, DWORD dwClassActivateAttr, DWORD dwClassThreadAttr,
DWORD dwXactionAttr, DWORD dwSynchAttr) PURE;
STDMETHOD(DefineTypeRefByGUID)( // S_OK or error.
mdScope sc, // [IN] The emit scope.
GUID *pguid, // [IN] The Type's GUID.
mdTypeRef *ptr) PURE; // [OUT] Put TypeRef token here.
STDMETHOD(SetModuleReg)(mdScope es, DWORD dwModuleRegAttr, const GUID *pguid) PURE;
STDMETHOD(SetClassReg)(mdScope es, mdTypeDef td, LPCWSTR szProgID,
LPCWSTR szVIProgID, LPCWSTR szIconURL, ULONG ulIconResource, LPCWSTR szSmallIconURL,
ULONG ulSmallIconResource, LPCWSTR szDefaultDispName) PURE;
STDMETHOD(SetIfaceReg)(mdScope es, mdTypeDef td, DWORD dwIfaceSvcs, const GUID *proxyStub) PURE;
STDMETHOD(SetCategoryImpl)(mdScope es, mdTypeDef td, GUID rGuidCoCatImpl[], GUID rGuidCoCatReqd[]) PURE;
STDMETHOD(SetRedirectProgID)(mdScope es, mdTypeDef td, LPCWSTR rszRedirectProgID[]) PURE;
STDMETHOD(SetMimeTypeImpl)(mdScope es, mdTypeDef td, LPCWSTR rszMimeType[]) PURE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -