⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opcdx.h

📁 OPC客户程序所需要的头文件。 OPC基金会产品。 适用于opc1.0和opc2.0规范。
💻 H
📖 第 1 页 / 共 3 页
字号:
            /* [in] */ DWORD dwNoOfMasks,
            /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
            /* [in] */ BOOL bRecursive,
            /* [size_is][size_is][out] */ HRESULT **ppErrors,
            /* [out] */ DWORD *pdwCount,
            /* [size_is][size_is][out] */ OpcDxConnection **ppConnections);
        
        HRESULT ( STDMETHODCALLTYPE *AddDXConnections )( 
            IOPCConfiguration * This,
            /* [in] */ DWORD dwCount,
            /* [size_is][in] */ OpcDxConnection *pConnections,
            /* [out] */ OpcDxGeneralResponse *pResponse);
        
        HRESULT ( STDMETHODCALLTYPE *UpdateDXConnections )( 
            IOPCConfiguration * This,
            /* [in] */ LPWSTR szBrowsePath,
            /* [in] */ DWORD dwNoOfMasks,
            /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
            /* [in] */ BOOL bRecursive,
            /* [in] */ OpcDxConnection *pDXConnectionDefinition,
            /* [size_is][size_is][out] */ HRESULT **ppErrors,
            /* [out] */ OpcDxGeneralResponse *pResponse);
        
        HRESULT ( STDMETHODCALLTYPE *ModifyDXConnections )( 
            IOPCConfiguration * This,
            /* [in] */ DWORD dwCount,
            /* [size_is][in] */ OpcDxConnection *pDXConnectionDefinitions,
            /* [out] */ OpcDxGeneralResponse *pResponse);
        
        HRESULT ( STDMETHODCALLTYPE *DeleteDXConnections )( 
            IOPCConfiguration * This,
            /* [in] */ LPWSTR szBrowsePath,
            /* [in] */ DWORD dwNoOfMasks,
            /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
            /* [in] */ BOOL bRecursive,
            /* [size_is][size_is][out] */ HRESULT **ppErrors,
            /* [out] */ OpcDxGeneralResponse *pResponse);
        
        HRESULT ( STDMETHODCALLTYPE *CopyDXConnectionDefaultAttributes )( 
            IOPCConfiguration * This,
            /* [in] */ BOOL bConfigToStatus,
            /* [in] */ LPWSTR szBrowsePath,
            /* [in] */ DWORD dwNoOfMasks,
            /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
            /* [in] */ BOOL bRecursive,
            /* [size_is][size_is][out] */ HRESULT **ppErrors,
            /* [out] */ OpcDxGeneralResponse *pResponse);
        
        HRESULT ( STDMETHODCALLTYPE *ResetConfiguration )( 
            IOPCConfiguration * This,
            /* [in] */ LPWSTR szConfigurationVersion,
            /* [out] */ LPWSTR *pszConfigurationVersion);
        
        END_INTERFACE
    } IOPCConfigurationVtbl;

    interface IOPCConfiguration
    {
        CONST_VTBL struct IOPCConfigurationVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IOPCConfiguration_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IOPCConfiguration_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IOPCConfiguration_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IOPCConfiguration_GetServers(This,pdwCount,ppServers)	\
    (This)->lpVtbl -> GetServers(This,pdwCount,ppServers)

#define IOPCConfiguration_AddServers(This,dwCount,pServers,pResponse)	\
    (This)->lpVtbl -> AddServers(This,dwCount,pServers,pResponse)

#define IOPCConfiguration_ModifyServers(This,dwCount,pServers,pResponse)	\
    (This)->lpVtbl -> ModifyServers(This,dwCount,pServers,pResponse)

#define IOPCConfiguration_DeleteServers(This,dwCount,pServers,pResponse)	\
    (This)->lpVtbl -> DeleteServers(This,dwCount,pServers,pResponse)

#define IOPCConfiguration_CopyDefaultServerAttributes(This,bConfigToStatus,dwCount,pServers,pResponse)	\
    (This)->lpVtbl -> CopyDefaultServerAttributes(This,bConfigToStatus,dwCount,pServers,pResponse)

#define IOPCConfiguration_QueryDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pdwCount,ppConnections)	\
    (This)->lpVtbl -> QueryDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pdwCount,ppConnections)

#define IOPCConfiguration_AddDXConnections(This,dwCount,pConnections,pResponse)	\
    (This)->lpVtbl -> AddDXConnections(This,dwCount,pConnections,pResponse)

#define IOPCConfiguration_UpdateDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,pDXConnectionDefinition,ppErrors,pResponse)	\
    (This)->lpVtbl -> UpdateDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,pDXConnectionDefinition,ppErrors,pResponse)

#define IOPCConfiguration_ModifyDXConnections(This,dwCount,pDXConnectionDefinitions,pResponse)	\
    (This)->lpVtbl -> ModifyDXConnections(This,dwCount,pDXConnectionDefinitions,pResponse)

#define IOPCConfiguration_DeleteDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pResponse)	\
    (This)->lpVtbl -> DeleteDXConnections(This,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pResponse)

#define IOPCConfiguration_CopyDXConnectionDefaultAttributes(This,bConfigToStatus,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pResponse)	\
    (This)->lpVtbl -> CopyDXConnectionDefaultAttributes(This,bConfigToStatus,szBrowsePath,dwNoOfMasks,pDXConnectionMasks,bRecursive,ppErrors,pResponse)

#define IOPCConfiguration_ResetConfiguration(This,szConfigurationVersion,pszConfigurationVersion)	\
    (This)->lpVtbl -> ResetConfiguration(This,szConfigurationVersion,pszConfigurationVersion)

#endif /* COBJMACROS */


#endif 	/* C style interface */



HRESULT STDMETHODCALLTYPE IOPCConfiguration_GetServers_Proxy( 
    IOPCConfiguration * This,
    /* [out] */ DWORD *pdwCount,
    /* [size_is][size_is][out] */ OpcDxSourceServer **ppServers);


void __RPC_STUB IOPCConfiguration_GetServers_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_AddServers_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxSourceServer *pServers,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_AddServers_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_ModifyServers_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxSourceServer *pServers,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_ModifyServers_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_DeleteServers_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxItemIdentifier *pServers,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_DeleteServers_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_CopyDefaultServerAttributes_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ BOOL bConfigToStatus,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxItemIdentifier *pServers,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_CopyDefaultServerAttributes_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_QueryDXConnections_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ LPWSTR szBrowsePath,
    /* [in] */ DWORD dwNoOfMasks,
    /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
    /* [in] */ BOOL bRecursive,
    /* [size_is][size_is][out] */ HRESULT **ppErrors,
    /* [out] */ DWORD *pdwCount,
    /* [size_is][size_is][out] */ OpcDxConnection **ppConnections);


void __RPC_STUB IOPCConfiguration_QueryDXConnections_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_AddDXConnections_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxConnection *pConnections,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_AddDXConnections_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_UpdateDXConnections_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ LPWSTR szBrowsePath,
    /* [in] */ DWORD dwNoOfMasks,
    /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
    /* [in] */ BOOL bRecursive,
    /* [in] */ OpcDxConnection *pDXConnectionDefinition,
    /* [size_is][size_is][out] */ HRESULT **ppErrors,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_UpdateDXConnections_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_ModifyDXConnections_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ DWORD dwCount,
    /* [size_is][in] */ OpcDxConnection *pDXConnectionDefinitions,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_ModifyDXConnections_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_DeleteDXConnections_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ LPWSTR szBrowsePath,
    /* [in] */ DWORD dwNoOfMasks,
    /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
    /* [in] */ BOOL bRecursive,
    /* [size_is][size_is][out] */ HRESULT **ppErrors,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_DeleteDXConnections_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_CopyDXConnectionDefaultAttributes_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ BOOL bConfigToStatus,
    /* [in] */ LPWSTR szBrowsePath,
    /* [in] */ DWORD dwNoOfMasks,
    /* [size_is][in] */ OpcDxConnection *pDXConnectionMasks,
    /* [in] */ BOOL bRecursive,
    /* [size_is][size_is][out] */ HRESULT **ppErrors,
    /* [out] */ OpcDxGeneralResponse *pResponse);


void __RPC_STUB IOPCConfiguration_CopyDXConnectionDefaultAttributes_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IOPCConfiguration_ResetConfiguration_Proxy( 
    IOPCConfiguration * This,
    /* [in] */ LPWSTR szConfigurationVersion,
    /* [out] */ LPWSTR *pszConfigurationVersion);


void __RPC_STUB IOPCConfiguration_ResetConfiguration_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IOPCConfiguration_INTERFACE_DEFINED__ */



#ifndef __OpcDxLib_LIBRARY_DEFINED__
#define __OpcDxLib_LIBRARY_DEFINED__

/* library OpcDxLib */
/* [helpstring][version][uuid] */ 



typedef 
enum tagOpcDxServerType
    {	OpcDxServerType_COM_DA10	= 1,
	OpcDxServerType_COM_DA204	= OpcDxServerType_COM_DA10 + 1,
	OpcDxServerType_COM_DA205	= OpcDxServerType_COM_DA204 + 1,
	OpcDxServerType_COM_DA30	= OpcDxServerType_COM_DA205 + 1,
	OpcDxServerType_XML_DA10	= OpcDxServerType_COM_DA30 + 1
    } 	OpcDxServerType;

typedef 
enum tagOpcDxServerState
    {	OpcDxServerState_RUNNING	= 1,
	OpcDxServerState_FAILED	= OpcDxServerState_RUNNING + 1,
	OpcDxServerState_NOCONFIG	= OpcDxServerState_FAILED + 1,
	OpcDxServerState_SUSPENDED	= OpcDxServerState_NOCONFIG + 1,
	OpcDxServerState_TEST	= OpcDxServerState_SUSPENDED + 1,
	OpcDxServerState_COMM_FAULT	= OpcDxServerState_TEST + 1,
	OpcDxServerState_UNKNOWN	= OpcDxServerState_COMM_FAULT + 1
    } 	OpcDxServerState;

typedef 
enum tagOpcDxConnectionState
    {	OpcDxConnectionState_INITIALIZING	= 1,
	OpcDxConnectionState_OPERATIONAL	= OpcDxConnectionState_INITIALIZING + 1,
	OpcDxConnectionState_DEACTIVATED	= OpcDxConnectionState_OPERATIONAL + 1,
	OpcDxConnectionState_SOURCE_SERVER_NOT_CONNECTED	= OpcDxConnectionState_DEACTIVATED + 1,
	OpcDxConnectionState_SUBSCRIPTION_FAILED	= OpcDxConnectionState_SOURCE_SERVER_NOT_CONNECTED + 1,
	OpcDxConnectionState_TARGET_ITEM_NOT_FOUND	= OpcDxConnectionState_SUBSCRIPTION_FAILED + 1
    } 	OpcDxConnectionState;

typedef 
enum tagOpcDxConnectStatus
    {	OpcDxConnectStatus_CONNECTED	= 1,
	OpcDxConnectStatus_DISCONNECTED	= OpcDxConnectStatus_CONNECTED + 1,
	OpcDxConnectStatus_CONNECTING	= OpcDxConnectStatus_DISCONNECTED + 1,
	OpcDxConnectStatus_FAILED	= OpcDxConnectStatus_CONNECTING + 1
    } 	OpcDxConnectStatus;

typedef 
enum tagOpcDxMask
    {	OpcDxMask_None	= 0,
	OpcDxMask_ItemPath	= 0x1,
	OpcDxMask_ItemName	= 0x2,
	OpcDxMask_Version	= 0x4,
	OpcDxMask_BrowsePaths	= 0x8,
	OpcDxMask_Name	= 0x10,
	OpcDxMask_Description	= 0x20,
	OpcDxMask_Keyword	= 0x40,
	OpcDxMask_DefaultSourceItemConnected	= 0x80,
	OpcDxMask_DefaultTargetItemConnected	= 0x100,
	OpcDxMask_DefaultOverridden	= 0x200,
	OpcDxMask_DefaultOverrideValue	= 0x400,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -