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

📄 opc.h

📁 OPC Client 源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
/* this ALWAYS GENERATED file contains the definitions for the interfaces */


/* File created by MIDL compiler version 5.01.0164 */
/* at Thu Dec 08 13:39:17 2005
 */
/* Compiler settings for OPC.idl:
    Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __OPC_h__
#define __OPC_h__

#ifdef __cplusplus
extern "C"{
#endif 

/* Forward Declarations */ 

#ifndef __IOPCServer_FWD_DEFINED__
#define __IOPCServer_FWD_DEFINED__
typedef interface IOPCServer IOPCServer;
#endif 	/* __IOPCServer_FWD_DEFINED__ */


#ifndef __IOPCServerPublicGroups_FWD_DEFINED__
#define __IOPCServerPublicGroups_FWD_DEFINED__
typedef interface IOPCServerPublicGroups IOPCServerPublicGroups;
#endif 	/* __IOPCServerPublicGroups_FWD_DEFINED__ */


#ifndef __IOPCBrowseServerAddressSpace_FWD_DEFINED__
#define __IOPCBrowseServerAddressSpace_FWD_DEFINED__
typedef interface IOPCBrowseServerAddressSpace IOPCBrowseServerAddressSpace;
#endif 	/* __IOPCBrowseServerAddressSpace_FWD_DEFINED__ */


#ifndef __IOPCGroupStateMgt_FWD_DEFINED__
#define __IOPCGroupStateMgt_FWD_DEFINED__
typedef interface IOPCGroupStateMgt IOPCGroupStateMgt;
#endif 	/* __IOPCGroupStateMgt_FWD_DEFINED__ */


#ifndef __IOPCPublicGroupStateMgt_FWD_DEFINED__
#define __IOPCPublicGroupStateMgt_FWD_DEFINED__
typedef interface IOPCPublicGroupStateMgt IOPCPublicGroupStateMgt;
#endif 	/* __IOPCPublicGroupStateMgt_FWD_DEFINED__ */


#ifndef __IOPCSyncIO_FWD_DEFINED__
#define __IOPCSyncIO_FWD_DEFINED__
typedef interface IOPCSyncIO IOPCSyncIO;
#endif 	/* __IOPCSyncIO_FWD_DEFINED__ */


#ifndef __IOPCAsyncIO_FWD_DEFINED__
#define __IOPCAsyncIO_FWD_DEFINED__
typedef interface IOPCAsyncIO IOPCAsyncIO;
#endif 	/* __IOPCAsyncIO_FWD_DEFINED__ */


#ifndef __IOPCItemMgt_FWD_DEFINED__
#define __IOPCItemMgt_FWD_DEFINED__
typedef interface IOPCItemMgt IOPCItemMgt;
#endif 	/* __IOPCItemMgt_FWD_DEFINED__ */


#ifndef __IEnumOPCItemAttributes_FWD_DEFINED__
#define __IEnumOPCItemAttributes_FWD_DEFINED__
typedef interface IEnumOPCItemAttributes IEnumOPCItemAttributes;
#endif 	/* __IEnumOPCItemAttributes_FWD_DEFINED__ */


#ifndef __IOPCServerDisp_FWD_DEFINED__
#define __IOPCServerDisp_FWD_DEFINED__
typedef interface IOPCServerDisp IOPCServerDisp;
#endif 	/* __IOPCServerDisp_FWD_DEFINED__ */


#ifndef __IOPCServerPublicGroupsDisp_FWD_DEFINED__
#define __IOPCServerPublicGroupsDisp_FWD_DEFINED__
typedef interface IOPCServerPublicGroupsDisp IOPCServerPublicGroupsDisp;
#endif 	/* __IOPCServerPublicGroupsDisp_FWD_DEFINED__ */


#ifndef __IOPCBrowseServerAddressSpaceDisp_FWD_DEFINED__
#define __IOPCBrowseServerAddressSpaceDisp_FWD_DEFINED__
typedef interface IOPCBrowseServerAddressSpaceDisp IOPCBrowseServerAddressSpaceDisp;
#endif 	/* __IOPCBrowseServerAddressSpaceDisp_FWD_DEFINED__ */


#ifndef __IOPCItemMgtDisp_FWD_DEFINED__
#define __IOPCItemMgtDisp_FWD_DEFINED__
typedef interface IOPCItemMgtDisp IOPCItemMgtDisp;
#endif 	/* __IOPCItemMgtDisp_FWD_DEFINED__ */


#ifndef __IOPCGroupStateMgtDisp_FWD_DEFINED__
#define __IOPCGroupStateMgtDisp_FWD_DEFINED__
typedef interface IOPCGroupStateMgtDisp IOPCGroupStateMgtDisp;
#endif 	/* __IOPCGroupStateMgtDisp_FWD_DEFINED__ */


#ifndef __IOPCSyncIODisp_FWD_DEFINED__
#define __IOPCSyncIODisp_FWD_DEFINED__
typedef interface IOPCSyncIODisp IOPCSyncIODisp;
#endif 	/* __IOPCSyncIODisp_FWD_DEFINED__ */


#ifndef __IOPCAsyncIODisp_FWD_DEFINED__
#define __IOPCAsyncIODisp_FWD_DEFINED__
typedef interface IOPCAsyncIODisp IOPCAsyncIODisp;
#endif 	/* __IOPCAsyncIODisp_FWD_DEFINED__ */


#ifndef __IOPCPublicGroupStateMgtDisp_FWD_DEFINED__
#define __IOPCPublicGroupStateMgtDisp_FWD_DEFINED__
typedef interface IOPCPublicGroupStateMgtDisp IOPCPublicGroupStateMgtDisp;
#endif 	/* __IOPCPublicGroupStateMgtDisp_FWD_DEFINED__ */


#ifndef __IOPCItemDisp_FWD_DEFINED__
#define __IOPCItemDisp_FWD_DEFINED__
typedef interface IOPCItemDisp IOPCItemDisp;
#endif 	/* __IOPCItemDisp_FWD_DEFINED__ */


#ifndef __Group_FWD_DEFINED__
#define __Group_FWD_DEFINED__

#ifdef __cplusplus
typedef class Group Group;
#else
typedef struct Group Group;
#endif /* __cplusplus */

#endif 	/* __Group_FWD_DEFINED__ */


#ifndef __Item_FWD_DEFINED__
#define __Item_FWD_DEFINED__

#ifdef __cplusplus
typedef class Item Item;
#else
typedef struct Item Item;
#endif /* __cplusplus */

#endif 	/* __Item_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"

void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 

/* interface __MIDL_itf_OPC_0000 */
/* [local] */ 

typedef /* [public][public][public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0001
    {	OPC_DS_CACHE	= 1,
	OPC_DS_DEVICE	= OPC_DS_CACHE + 1
    }	OPCDATASOURCE;

typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0002
    {	OPC_BRANCH	= 1,
	OPC_LEAF	= OPC_BRANCH + 1,
	OPC_FLAT	= OPC_LEAF + 1
    }	OPCBROWSETYPE;

typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0003
    {	OPC_NS_HIERARCHIAL	= 1,
	OPC_NS_FLAT	= OPC_NS_HIERARCHIAL + 1
    }	OPCNAMESPACETYPE;

typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0004
    {	OPC_BROWSE_UP	= 1,
	OPC_BROWSE_DOWN	= OPC_BROWSE_UP + 1
    }	OPCBROWSEDIRECTION;

typedef /* [public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0005
    {	OPC_READABLE	= 1,
	OPC_WRITEABLE	= OPC_READABLE + 1
    }	OPCACCESSRIGHTS;

typedef /* [public][public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0006
    {	OPC_NOENUM	= 0,
	OPC_ANALOG	= OPC_NOENUM + 1,
	OPC_ENUMERATED	= OPC_ANALOG + 1
    }	OPCEUTYPE;

typedef /* [public][public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0007
    {	OPC_STATUS_RUNNING	= 1,
	OPC_STATUS_FAILED	= OPC_STATUS_RUNNING + 1,
	OPC_STATUS_NOCONFIG	= OPC_STATUS_FAILED + 1,
	OPC_STATUS_SUSPENDED	= OPC_STATUS_NOCONFIG + 1,
	OPC_STATUS_TEST	= OPC_STATUS_SUSPENDED + 1
    }	OPCSERVERSTATE;

typedef /* [public][public] */ 
enum __MIDL___MIDL_itf_OPC_0000_0008
    {	OPC_ENUM_PRIVATE_CONNECTIONS	= 1,
	OPC_ENUM_PUBLIC_CONNECTIONS	= OPC_ENUM_PRIVATE_CONNECTIONS + 1,
	OPC_ENUM_ALL_CONNECTIONS	= OPC_ENUM_PUBLIC_CONNECTIONS + 1,
	OPC_ENUM_PRIVATE	= OPC_ENUM_ALL_CONNECTIONS + 1,
	OPC_ENUM_PUBLIC	= OPC_ENUM_PRIVATE + 1,
	OPC_ENUM_ALL	= OPC_ENUM_PUBLIC + 1
    }	OPCENUMSCOPE;

typedef DWORD OPCHANDLE;

typedef /* [public] */ struct  __MIDL___MIDL_itf_OPC_0000_0009
    {
    DWORD dwSize;
    DWORD dwItemCount;
    OPCHANDLE hClientGroup;
    DWORD dwTransactionID;
    HRESULT hrStatus;
    }	OPCGROUPHEADER;

typedef /* [public] */ struct  __MIDL___MIDL_itf_OPC_0000_0010
    {
    OPCHANDLE hClient;
    DWORD dwValueOffset;
    WORD wQuality;
    WORD wReserved;
    FILETIME ftTimeStampItem;
    }	OPCITEMHEADER1;

typedef /* [public] */ struct  __MIDL___MIDL_itf_OPC_0000_0011
    {
    OPCHANDLE hClient;
    DWORD dwValueOffset;
    WORD wQuality;
    WORD wReserved;
    }	OPCITEMHEADER2;

typedef /* [public] */ struct  __MIDL___MIDL_itf_OPC_0000_0012
    {
    DWORD dwItemCount;
    OPCHANDLE hClientGroup;
    DWORD dwTransactionID;
    HRESULT hrStatus;
    }	OPCGROUPHEADERWRITE;

typedef /* [public] */ struct  __MIDL___MIDL_itf_OPC_0000_0013
    {
    OPCHANDLE hClient;
    HRESULT dwError;
    }	OPCITEMHEADERWRITE;

typedef /* [public][public] */ struct  __MIDL___MIDL_itf_OPC_0000_0014
    {
    OPCHANDLE hClient;
    FILETIME ftTimeStamp;
    WORD wQuality;
    WORD wReserved;
    VARIANT vDataValue;
    }	OPCITEMSTATE;

typedef /* [public][public] */ struct  __MIDL___MIDL_itf_OPC_0000_0015
    {
    FILETIME ftStartTime;
    FILETIME ftCurrentTime;
    FILETIME ftLastUpdateTime;
    OPCSERVERSTATE dwServerState;
    DWORD dwGroupCount;
    DWORD dwBandWidth;
    WORD wMajorVersion;
    WORD wMinorVersion;
    WORD wBuildNumber;
    WORD wReserved;
    /* [string] */ LPWSTR szVendorInfo;
    }	OPCSERVERSTATUS;

typedef /* [public][public][public] */ struct  __MIDL___MIDL_itf_OPC_0000_0016
    {
    /* [string] */ LPWSTR szAccessPath;
    /* [string] */ LPWSTR szItemID;
    BOOL bActive;
    OPCHANDLE hClient;
    DWORD dwBlobSize;
    /* [size_is] */ BYTE __RPC_FAR *pBlob;
    VARTYPE vtRequestedDataType;
    WORD wReserved;
    }	OPCITEMDEF;

typedef /* [public][public] */ struct  __MIDL___MIDL_itf_OPC_0000_0017
    {
    /* [string] */ LPWSTR szAccessPath;
    /* [string] */ LPWSTR szItemID;
    BOOL bActive;
    OPCHANDLE hClient;
    OPCHANDLE hServer;
    DWORD dwAccessRights;
    DWORD dwBlobSize;
    /* [size_is] */ BYTE __RPC_FAR *pBlob;
    VARTYPE vtRequestedDataType;
    VARTYPE vtCanonicalDataType;
    OPCEUTYPE dwEUType;
    VARIANT vEUInfo;
    }	OPCITEMATTRIBUTES;

typedef /* [public][public][public] */ struct  __MIDL___MIDL_itf_OPC_0000_0018
    {
    OPCHANDLE hServer;
    VARTYPE vtCanonicalDataType;
    WORD wReserved;
    DWORD dwAccessRights;
    DWORD dwBlobSize;
    /* [size_is] */ BYTE __RPC_FAR *pBlob;
    }	OPCITEMRESULT;



extern RPC_IF_HANDLE __MIDL_itf_OPC_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_OPC_0000_v0_0_s_ifspec;

#ifndef __IOPCServer_INTERFACE_DEFINED__
#define __IOPCServer_INTERFACE_DEFINED__

/* interface IOPCServer */
/* [unique][uuid][object] */ 


EXTERN_C const IID IID_IOPCServer;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("39c13a4d-011e-11d0-9675-0020afd8adb3")
    IOPCServer : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE AddGroup( 
            /* [string][in] */ LPCWSTR szName,
            /* [in] */ BOOL bActive,
            /* [in] */ DWORD dwRequestedUpdateRate,
            /* [in] */ OPCHANDLE hClientGroup,
            /* [in][unique] */ LONG __RPC_FAR *pTimeBias,
            /* [in][unique] */ FLOAT __RPC_FAR *pPercentDeadband,
            /* [in] */ DWORD dwLCID,
            /* [out] */ OPCHANDLE __RPC_FAR *phServerGroup,
            /* [out] */ DWORD __RPC_FAR *pRevisedUpdateRate,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ LPUNKNOWN __RPC_FAR *ppUnk) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetErrorString( 
            /* [in] */ HRESULT dwError,
            /* [in] */ LCID dwLocale,
            /* [string][out] */ LPWSTR __RPC_FAR *ppString) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetGroupByName( 
            /* [string][in] */ LPCWSTR szName,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ LPUNKNOWN __RPC_FAR *ppUnk) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE GetStatus( 
            /* [out] */ OPCSERVERSTATUS __RPC_FAR *__RPC_FAR *ppServerStatus) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE RemoveGroup( 
            /* [in] */ OPCHANDLE hServerGroup,

⌨️ 快捷键说明

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