ocidl.h
来自「本源码是vc环境下的usb程序」· C头文件 代码 · 共 2,338 行 · 第 1/5 页
H
2,338 行
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IConnectionPointContainer * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IConnectionPointContainer * This);
HRESULT ( STDMETHODCALLTYPE *EnumConnectionPoints )(
IConnectionPointContainer * This,
/* [out] */ IEnumConnectionPoints **ppEnum);
HRESULT ( STDMETHODCALLTYPE *FindConnectionPoint )(
IConnectionPointContainer * This,
/* [in] */ REFIID riid,
/* [out] */ IConnectionPoint **ppCP);
END_INTERFACE
} IConnectionPointContainerVtbl;
interface IConnectionPointContainer
{
CONST_VTBL struct IConnectionPointContainerVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IConnectionPointContainer_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IConnectionPointContainer_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IConnectionPointContainer_Release(This) \
(This)->lpVtbl -> Release(This)
#define IConnectionPointContainer_EnumConnectionPoints(This,ppEnum) \
(This)->lpVtbl -> EnumConnectionPoints(This,ppEnum)
#define IConnectionPointContainer_FindConnectionPoint(This,riid,ppCP) \
(This)->lpVtbl -> FindConnectionPoint(This,riid,ppCP)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IConnectionPointContainer_EnumConnectionPoints_Proxy(
IConnectionPointContainer * This,
/* [out] */ IEnumConnectionPoints **ppEnum);
void __RPC_STUB IConnectionPointContainer_EnumConnectionPoints_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IConnectionPointContainer_FindConnectionPoint_Proxy(
IConnectionPointContainer * This,
/* [in] */ REFIID riid,
/* [out] */ IConnectionPoint **ppCP);
void __RPC_STUB IConnectionPointContainer_FindConnectionPoint_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IConnectionPointContainer_INTERFACE_DEFINED__ */
#ifndef __IClassFactory2_INTERFACE_DEFINED__
#define __IClassFactory2_INTERFACE_DEFINED__
/* interface IClassFactory2 */
/* [unique][uuid][object] */
typedef IClassFactory2 *LPCLASSFACTORY2;
typedef struct tagLICINFO
{
LONG cbLicInfo;
BOOL fRuntimeKeyAvail;
BOOL fLicVerified;
} LICINFO;
typedef struct tagLICINFO *LPLICINFO;
EXTERN_C const IID IID_IClassFactory2;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("B196B28F-BAB4-101A-B69C-00AA00341D07")
IClassFactory2 : public IClassFactory
{
public:
virtual HRESULT STDMETHODCALLTYPE GetLicInfo(
/* [out] */ LICINFO *pLicInfo) = 0;
virtual HRESULT STDMETHODCALLTYPE RequestLicKey(
/* [in] */ DWORD dwReserved,
/* [out] */ BSTR *pBstrKey) = 0;
virtual /* [local] */ HRESULT STDMETHODCALLTYPE CreateInstanceLic(
/* [in] */ IUnknown *pUnkOuter,
/* [in] */ IUnknown *pUnkReserved,
/* [in] */ REFIID riid,
/* [in] */ BSTR bstrKey,
/* [iid_is][out] */ PVOID *ppvObj) = 0;
};
#else /* C style interface */
typedef struct IClassFactory2Vtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IClassFactory2 * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IClassFactory2 * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IClassFactory2 * This);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
IClassFactory2 * This,
/* [unique][in] */ IUnknown *pUnkOuter,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *LockServer )(
IClassFactory2 * This,
/* [in] */ BOOL fLock);
HRESULT ( STDMETHODCALLTYPE *GetLicInfo )(
IClassFactory2 * This,
/* [out] */ LICINFO *pLicInfo);
HRESULT ( STDMETHODCALLTYPE *RequestLicKey )(
IClassFactory2 * This,
/* [in] */ DWORD dwReserved,
/* [out] */ BSTR *pBstrKey);
/* [local] */ HRESULT ( STDMETHODCALLTYPE *CreateInstanceLic )(
IClassFactory2 * This,
/* [in] */ IUnknown *pUnkOuter,
/* [in] */ IUnknown *pUnkReserved,
/* [in] */ REFIID riid,
/* [in] */ BSTR bstrKey,
/* [iid_is][out] */ PVOID *ppvObj);
END_INTERFACE
} IClassFactory2Vtbl;
interface IClassFactory2
{
CONST_VTBL struct IClassFactory2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IClassFactory2_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IClassFactory2_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IClassFactory2_Release(This) \
(This)->lpVtbl -> Release(This)
#define IClassFactory2_CreateInstance(This,pUnkOuter,riid,ppvObject) \
(This)->lpVtbl -> CreateInstance(This,pUnkOuter,riid,ppvObject)
#define IClassFactory2_LockServer(This,fLock) \
(This)->lpVtbl -> LockServer(This,fLock)
#define IClassFactory2_GetLicInfo(This,pLicInfo) \
(This)->lpVtbl -> GetLicInfo(This,pLicInfo)
#define IClassFactory2_RequestLicKey(This,dwReserved,pBstrKey) \
(This)->lpVtbl -> RequestLicKey(This,dwReserved,pBstrKey)
#define IClassFactory2_CreateInstanceLic(This,pUnkOuter,pUnkReserved,riid,bstrKey,ppvObj) \
(This)->lpVtbl -> CreateInstanceLic(This,pUnkOuter,pUnkReserved,riid,bstrKey,ppvObj)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IClassFactory2_GetLicInfo_Proxy(
IClassFactory2 * This,
/* [out] */ LICINFO *pLicInfo);
void __RPC_STUB IClassFactory2_GetLicInfo_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
HRESULT STDMETHODCALLTYPE IClassFactory2_RequestLicKey_Proxy(
IClassFactory2 * This,
/* [in] */ DWORD dwReserved,
/* [out] */ BSTR *pBstrKey);
void __RPC_STUB IClassFactory2_RequestLicKey_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
/* [call_as] */ HRESULT STDMETHODCALLTYPE IClassFactory2_RemoteCreateInstanceLic_Proxy(
IClassFactory2 * This,
/* [in] */ REFIID riid,
/* [in] */ BSTR bstrKey,
/* [iid_is][out] */ IUnknown **ppvObj);
void __RPC_STUB IClassFactory2_RemoteCreateInstanceLic_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IClassFactory2_INTERFACE_DEFINED__ */
#ifndef __IProvideClassInfo_INTERFACE_DEFINED__
#define __IProvideClassInfo_INTERFACE_DEFINED__
/* interface IProvideClassInfo */
/* [unique][uuid][object] */
typedef IProvideClassInfo *LPPROVIDECLASSINFO;
EXTERN_C const IID IID_IProvideClassInfo;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("B196B283-BAB4-101A-B69C-00AA00341D07")
IProvideClassInfo : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE GetClassInfo(
/* [out] */ ITypeInfo **ppTI) = 0;
};
#else /* C style interface */
typedef struct IProvideClassInfoVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IProvideClassInfo * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IProvideClassInfo * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IProvideClassInfo * This);
HRESULT ( STDMETHODCALLTYPE *GetClassInfo )(
IProvideClassInfo * This,
/* [out] */ ITypeInfo **ppTI);
END_INTERFACE
} IProvideClassInfoVtbl;
interface IProvideClassInfo
{
CONST_VTBL struct IProvideClassInfoVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IProvideClassInfo_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IProvideClassInfo_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IProvideClassInfo_Release(This) \
(This)->lpVtbl -> Release(This)
#define IProvideClassInfo_GetClassInfo(This,ppTI) \
(This)->lpVtbl -> GetClassInfo(This,ppTI)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IProvideClassInfo_GetClassInfo_Proxy(
IProvideClassInfo * This,
/* [out] */ ITypeInfo **ppTI);
void __RPC_STUB IProvideClassInfo_GetClassInfo_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IProvideClassInfo_INTERFACE_DEFINED__ */
#ifndef __IProvideClassInfo2_INTERFACE_DEFINED__
#define __IProvideClassInfo2_INTERFACE_DEFINED__
/* interface IProvideClassInfo2 */
/* [unique][uuid][object] */
typedef IProvideClassInfo2 *LPPROVIDECLASSINFO2;
typedef
enum tagGUIDKIND
{ GUIDKIND_DEFAULT_SOURCE_DISP_IID = 1
} GUIDKIND;
EXTERN_C const IID IID_IProvideClassInfo2;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("A6BC3AC0-DBAA-11CE-9DE3-00AA004BB851")
IProvideClassInfo2 : public IProvideClassInfo
{
public:
virtual HRESULT STDMETHODCALLTYPE GetGUID(
/* [in] */ DWORD dwGuidKind,
/* [out] */ GUID *pGUID) = 0;
};
#else /* C style interface */
typedef struct IProvideClassInfo2Vtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IProvideClassInfo2 * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IProvideClassInfo2 * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IProvideClassInfo2 * This);
HRESULT ( STDMETHODCALLTYPE *GetClassInfo )(
IProvideClassInfo2 * This,
/* [out] */ ITypeInfo **ppTI);
HRESULT ( STDMETHODCALLTYPE *GetGUID )(
IProvideClassInfo2 * This,
/* [in] */ DWORD dwGuidKind,
/* [out] */ GUID *pGUID);
END_INTERFACE
} IProvideClassInfo2Vtbl;
interface IProvideClassInfo2
{
CONST_VTBL struct IProvideClassInfo2Vtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IProvideClassInfo2_QueryInterface(This,riid,ppvObject) \
(This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
#define IProvideClassInfo2_AddRef(This) \
(This)->lpVtbl -> AddRef(This)
#define IProvideClassInfo2_Release(This) \
(This)->lpVtbl -> Release(This)
#define IProvideClassInfo2_GetClassInfo(This,ppTI) \
(This)->lpVtbl -> GetClassInfo(This,ppTI)
#define IProvideClassInfo2_GetGUID(This,dwGuidKind,pGUID) \
(This)->lpVtbl -> GetGUID(This,dwGuidKind,pGUID)
#endif /* COBJMACROS */
#endif /* C style interface */
HRESULT STDMETHODCALLTYPE IProvideClassInfo2_GetGUID_Proxy(
IProvideClassInfo2 * This,
/* [in] */ DWORD dwGuidKind,
/* [out] */ GUID *pGUID);
void __RPC_STUB IProvideClassInfo2_GetGUID_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __IProvideClassInfo2_INTERFACE_DEFINED__ */
#ifndef __IProvideMultipleClassInfo_INTERFACE_DEFINED__
#define __IProvideMultipleClassInfo_INTERFACE_DEFINED__
/* interface IProvideMultipleClassInfo */
/* [unique][uuid][object] */
#define MULTICLASSINFO_GETTYPEINFO 0x00000001
#define MULTICLASSINFO_GETNUMRESERVEDDISPIDS 0x00000002
#define MULTICLASSINFO_GETIIDPRIMARY 0x00000004
#define MULTICLASSINFO_GETIIDSOURCE 0x00000008
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?