亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? kocrdkapi.h

?? modbus編程
?? H
字號:
/////////////////////////////////////////////////////////////////////////////
//
//  Knight OPC Client Rapid Development Toolkit For Multi Servers
//								(Header File)
//
/////////////////////////////////////////////////////////////////////////////
//
//          Author: Knight Fox
//    Initial Date: Nov-18-2001
//       $Workfile: KOCRDKApi.h $
//       $Revision: 2.5.3 $
//           $Date: Oct-15-2004 16:12p $
//   Target System: Microsoft Windows NT 4.0 / 95 /98 / 2000 / XP
//     Environment: Visual C++ 6.0 / OPC DataAccess 2.05
//         Remarks: Multi Server Version
//  Product Update: http://www.eehoo.net
//         Contact: support@eehoo.net
//
/////////////////////////////////////////////////////////////////////////////
//  Copyright (C) 2001-2004, eehoo link Technologies, Inc. 
/////////////////////////////////////////////////////////////////////////////


#if !defined(KOCRDK_H)
#define KOCRDK_H

#ifdef STRICT
typedef VOID (CALLBACK* DATACHANGEPROC)(HANDLE, HANDLE, HANDLE, VARIANT*, FILETIME, DWORD);
typedef VOID (CALLBACK* SHUTDOWNPROC)(HANDLE);
#else /* !STRICT */
typedef FARPROC DATACHANGEPROC;
typedef FARPROC SHUTDOWNPROC;
#endif



#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */


// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the KOCRDK_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// KOCRDK_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef KOCRDK_EXPORTS
#define KOCRDK_API __declspec(dllexport)
#else
#define KOCRDK_API __declspec(dllimport)
#endif

/*******************************************************************************************/
/******************** API Function List  ************************************************/
/*******************************************************************************************/

///////////////////////////////////////////////////////////////////////////////////////////
//
// CallBack Functions
//
//////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////
// KOC_SetDataChangeProc
//
// Establishes a callback function in the user application which will receive
// control when the value of an item is updated from the connected server.
//
// prototype for the callback function is as follows:
//		void CALLBACK EXPORT DataChangeProc(HANDLE hGroup, HANDLE hItem, VARIANT *pVar, FILETIME timestamp, DWORD quality)
//
//	Param:	HANDLE hConnect				--	HANDLE of connected opc server
//			DATACHANGEPROC lpCallback	--	pointer of callback function  in user application
//	Return:	BOOL						--	TRUE if succeded, FALSE if failed
KOCRDK_API BOOL  WINAPI KOC_SetDataChangeProc(HANDLE hConnect, DATACHANGEPROC lpCallback);

//
// KOC_SetShutdownProc
//
// Establishes a callback to the application if the connected
// server requests a disconnect;
//
//	Param:	HANDLE hConnect				--	HANDLE of connected opc server
//			SHUTDOWNPROC lpCallback		--	pointer of callback function  in user application
//	Return:	BOOL						--	TRUE if succeded, FALSE if failed
KOCRDK_API BOOL  WINAPI KOC_SetShutdownProc(HANDLE hConnect, SHUTDOWNPROC lpCallback);



///////////////////////////////////////////////////////////////////////////////////////////
//
// Initialization and System functions
//
///////////////////////////////////////////////////////////////////////////////////////////
//
// KOC_GetVersion()
//
// This function returns the version info of KOCRDK
//
//KOCRDK_API DWORD WINAPI KOC_GetVersion();

//
// KOC_Init()
//
// This function initializes KOCRDK.dll
//
KOCRDK_API BOOL WINAPI KOC_Init();

//
// KOC_Uninit()
//
// This function uninitializes KOCRDK.dll 
//
KOCRDK_API void WINAPI KOC_Uninit();


///////////////////////////////////////////////////////////////////////////////////////////
//
// OPC Server functions
//
///////////////////////////////////////////////////////////////////////////////////////////

//
// KOC_GetServerCount
//
// returns the number of available local or remote OPC servers 
//
// Param: BOOL bVer2			--	TRUE , find OPC 2.0 servers
//								--	FALSE, find OPC 1.0 servers
//
KOCRDK_API int WINAPI KOC_GetServerCount(LPCSTR MachineName,BOOL bVer2 = true);
KOCRDK_API int WINAPI KOC_GetServerCount_UseRegistry(LPCSTR MachineName);
//
// KOC_GetServerName
//
// Used to iterate through the server list obtained with KOC_GetServerCount()
// User Buffer pointed to by pBuf is filled with the Server name at index of the Server List
// A returned value of FALSE indicates that the index is invalid.
//
KOCRDK_API BOOL  WINAPI KOC_GetServerName(int index, char *pBuf, int BufSize);

//
// KOC_Connect 
//
// Establishes an OPC Connection with the specified server
// INVALID_HANDLE_VALUE (-1) id returned if the connection cannot be established.
//
// Param: BOOL bVer2			--	TRUE , using OPC 2.0 interface
//								--	FALSE, using OPC 1.0 interface
//
KOCRDK_API HANDLE  WINAPI KOC_Connect(LPCSTR MachineName, LPCSTR ServerName, BOOL bVer2 = true, BOOL bUseRegistry = FALSE);

//
// KOC_Disconnect
//
// Used to shutdown an OPC Connection
//
KOCRDK_API void  WINAPI KOC_Disconnect(HANDLE hConnect);

//
// GetSvrStatus (...)
// 
// Allows the controlling application to get the running
// status of an attached server.  
//
KOCRDK_API BOOL WINAPI KOC_GetServerStatus(HANDLE hConnect, OPCSERVERSTATUS **pSvrStatus);


///////////////////////////////////////////////////////////////////////////////////////////
//
// OPC Group functions
//
///////////////////////////////////////////////////////////////////////////////////////////
//
// KOC_AddGroup
//
// Creates a new OPC Group for the defined connection
// Requested name, data rate and deadband etc. specified in parameter list.
// 
KOCRDK_API HANDLE  WINAPI KOC_AddGroup (
								HANDLE	hConnect, 
								LPCSTR	Name, 
								BOOL	*bActive, 
								DWORD	*pRate, 
								LONG	*pTimeBias,
								float	*pDeadBand,
								DWORD	*dwLCID);

//
// KOC_RemoveGroup
//
// Removes and cleansup allocated resources for defined group
//
KOCRDK_API void  WINAPI KOC_RemoveGroup(HANDLE hConnect, HANDLE hGroup);

KOCRDK_API BOOL  WINAPI KOC_SetGroupName(HANDLE hConnect, HANDLE hGroup, LPCSTR Name);

KOCRDK_API BOOL  WINAPI KOC_SetGroupStat(
								HANDLE	hConnect, 
								HANDLE	hGroup, 
								DWORD	*pRate, 
								BOOL	*bActive,
								LONG	*pTimeBias,
								float	*pDeadBand, 
								DWORD	*dwLCID);

KOCRDK_API BOOL  WINAPI KOC_GetGroupStat(
								HANDLE	hConnect, 
								HANDLE	hGroup, 
								LPCSTR	Name,
								DWORD	*pRate, 
								BOOL	*bActive,
								LONG	*pTimeBias,
								float	*pDeadBand, 
								DWORD	*dwLCID);


///////////////////////////////////////////////////////////////////////////////////////////
//
// OPC Item functions
//
///////////////////////////////////////////////////////////////////////////////////////////

//
// KOC_GetItemCount
//
// Returns the number of OPC Items from the Browse Interface of the designated
// Server connection.  If the server does not support Browsing, a value of zero
// is returned.  This function fills an internal array of itemnames which may
// then be accessed via KOC_GetItemName().
//
// This function is equivalent to calling BrowseItems using OPC_FLAT from
// the Root position.
//
KOCRDK_API int  WINAPI KOC_GetItemCount(HANDLE hConnect);

//
// KOC_GetItemName
//
// Allows user to iterate through the list of item names obtained from
// KOC_GetItemCount().
//
KOCRDK_API BOOL  WINAPI KOC_GetItemName(HANDLE hConnect, int index, char *pBuf, int BufSize);

//
// KOC_AddItem
//
// Requests that the connected OPC Server add an item to the specified group.
// The return value identifies the item for future access by the user application.
// An INVALID_HANDLE_VALUE return, indicates that the requested item name does not
// exist in the connected Server.
//
KOCRDK_API HANDLE  WINAPI KOC_AddItem(HANDLE hConnect, HANDLE hGroup, LPCSTR ItemName);
KOCRDK_API HANDLE  WINAPI KOC_AddItemWithPath (HANDLE hConnect, HANDLE hGroup, LPCSTR PathName, LPCSTR ItemName);

//
// KOC_RemoveItem
//
// Removes the specified OPC Item and cleans up resources
//
KOCRDK_API void  WINAPI KOC_RemoveItem(HANDLE hConnect, HANDLE hGroup, HANDLE hItem);


//
// KOC_WriteItem
//
// Allows the controlling application to write to a defined OPC item
//
//
KOCRDK_API BOOL  WINAPI KOC_WriteItem(HANDLE hConnect, HANDLE hGroup, HANDLE hItem, VARIANT *pVar, BOOL DoAsync);


//
// KOC_ReadItem
//
// Uses the SyncIO Interface to read an opc item directly from the Server.
//
KOCRDK_API BOOL  WINAPI KOC_ReadItem(HANDLE hConnect, HANDLE hGroup, HANDLE hItem, VARIANT *pVar, FILETIME *pTimeStamp, DWORD *pQuality);

//
// KOC_ActiveItem
//
// Active or Inactive a OPC item .
//
//	Return:	BOOL						--	TRUE if succeded, FALSE if failed
KOCRDK_API BOOL  WINAPI KOC_ActiveItem(HANDLE hConnect, HANDLE hGroup, HANDLE hItem, BOOL bActive);

//
// KOC_ValidateItem
//
// Allows the application to obtain the canonical data type and
// read/write access properties for a given item.
//
KOCRDK_API BOOL  WINAPI KOC_ValidateItem(HANDLE hConnect, HANDLE hGroup, LPCSTR Name, VARTYPE *pType, DWORD *pAccessRights);


/////////////////////////////////////////////////////////////////////////////////////
//
// Browse functions
//
/////////////////////////////////////////////////////////////////////////////////////
//
// KOC_SetBrowseFilters
//
// Allows the application to specify filters to use during Browse Operations.
// Item names may be filtered based on user defined string, data type, or
// Read/Write access rights
//
KOCRDK_API BOOL  WINAPI KOC_SetBrowseFilters (HANDLE hConnect, LPCSTR FilterString, VARTYPE DataType, DWORD AccessType);

//
// KOC_GetNameSpace
//
// returns OPC_NS_FLAT (2) or OPC_NS_HIERARCHIAL (1) for the specified server connection
//
KOCRDK_API BOOL  WINAPI KOC_GetNameSpace (HANDLE hConnect, WORD *pNameSpace);

//
// KOC_BrowseToNode
//
// Changes the current browse position for the server to the specified node.
// Use a NULL String  to browse to the top of the tree.
//
KOCRDK_API BOOL  WINAPI KOC_BrowseToNode (HANDLE hConnect, LPCSTR NodeName);


//
// KOC_BrowseItems
//
// Returns the number of items from the current browse position and fills
// the internal item name array with the node names that may be accessible 
// via GetItemName().
//
// The Filter parameter specifies:
//	OPC_BRANCH: returns only items that have children
//	OPC_LEAF: returns only items that don't have children
//	OPC_FLAT: Returns all OPC Item Names, (LEAFS ONLY), below the current position
//				(including all children of children).
// 
KOCRDK_API int  WINAPI KOC_BrowseItems (HANDLE hConnect, WORD FilterType);

// KOC_GetItemFullName
//
// Returns the fully qualified item name from the server.
// uses the OPCBrowseAddressSpace::GetItemID Interface.
//
// 
KOCRDK_API BOOL  WINAPI KOC_GetItemFullName (HANDLE hConnect, LPCSTR ItemName, char *pQualifiedName, int BufSize);



//
// KOC_NumberOfItemProperties
//
// Returns the number of item Properties for the specified item.
//
KOCRDK_API int  WINAPI KOC_NumberOfItemProperties (HANDLE hConnect, LPCSTR ItemName);

//
// KOC_GetItemPropertyDescription
//
// Returns the property values description for the last item specified 
// by KOC_NumberOfItemProperties().  The application may use the returned PropertyID
// to read the property value from the server using KOC_ReadPropertyValue().
//
KOCRDK_API BOOL  WINAPI KOC_GetItemPropertyDescription (HANDLE hConnect, int PropertyIndex, DWORD *pPropertyID, VARTYPE *pVT, CHAR *pDesc, int nBufSize);
 
//
// KOC_ReadPropertyValue
//
// Returns the property value for the item specified 
//
KOCRDK_API BOOL  WINAPI KOC_ReadPropertyValue (HANDLE hConnect, LPCSTR Itemname, DWORD PropertyID, VARIANT *pValue);



/////////////////////////////////////////////////////////////////////////////////////////////
//
//  Product Registration Functions
//
////////////////////////////////////////////////////////////////////////////////////////////
KOCRDK_API void WINAPI KOC_Active(LPCSTR Name, LPCSTR Code);	        


/*******************************************************************************************/
/******************** API Function List End Here *******************************************/
/*******************************************************************************************/



#ifdef __cplusplus
}
#endif

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美揉bbbbb揉bbbbb| 日韩欧美一二三四区| 欧美一区二区三区日韩| 欧美激情一区二区三区不卡 | 欧美无人高清视频在线观看| 日韩欧美在线观看一区二区三区| 最新热久久免费视频| 蜜臀av一区二区在线观看 | 一区二区三区精品| 国产成人av网站| 日韩欧美视频一区| 亚洲福利电影网| 色综合天天性综合| 国产精品网曝门| 国产精品一区二区三区网站| 69精品人人人人| 亚洲成人资源网| 欧美日韩专区在线| 亚洲国产精品久久一线不卡| 91在线免费视频观看| 国产精品免费视频网站| 国产精品18久久久久久久网站| 欧美一区二区三区爱爱| 亚洲二区在线观看| 在线观看91av| 午夜精品久久一牛影视| 欧美写真视频网站| 亚洲国产综合人成综合网站| 欧洲精品中文字幕| 亚洲成人免费看| 欧美精品亚洲二区| 视频精品一区二区| 日韩一区二区在线观看视频播放| 视频在线观看91| 欧美成人午夜电影| 国产精品77777竹菊影视小说| 日本一区二区免费在线| 成人一二三区视频| 综合自拍亚洲综合图不卡区| 日本高清免费不卡视频| 日日摸夜夜添夜夜添亚洲女人| 69堂成人精品免费视频| 麻豆91免费看| 国产人伦精品一区二区| 91免费小视频| 天天影视涩香欲综合网| 日韩精品一区二区三区蜜臀| 国产传媒久久文化传媒| 自拍偷拍国产精品| 欧美性视频一区二区三区| 日韩二区三区在线观看| 久久久久久久久久久黄色| av成人免费在线| 天天av天天翘天天综合网| 日韩欧美国产麻豆| gogogo免费视频观看亚洲一| 亚洲精品视频在线看| 欧美一级欧美三级在线观看| 国产黄色精品网站| 一二三区精品福利视频| 日韩欧美第一区| 91色porny在线视频| 日本一不卡视频| 国产精品久久一级| 欧美精品tushy高清| 国产91丝袜在线观看| 视频一区二区国产| 亚洲国产精品传媒在线观看| 欧美另类videos死尸| 成人中文字幕电影| 日本女优在线视频一区二区| 中文字幕在线不卡一区二区三区| 欧美日本在线看| 99精品欧美一区二区三区小说 | 亚洲亚洲精品在线观看| 日韩精品中文字幕一区二区三区| www.亚洲精品| 国内外精品视频| 亚洲国产综合91精品麻豆| 国产女同互慰高潮91漫画| 8v天堂国产在线一区二区| 成人毛片在线观看| 狠狠色狠狠色综合日日91app| 亚洲精品高清视频在线观看| 中文字幕不卡三区| 欧美电视剧免费观看| 欧美三电影在线| 色网站国产精品| 成人av在线资源网| 久久电影网电视剧免费观看| 亚洲成精国产精品女| 亚洲色图欧洲色图婷婷| 国产日韩av一区| 日韩一区二区精品在线观看| 在线视频一区二区免费| gogo大胆日本视频一区| 国产1区2区3区精品美女| 精品一区免费av| 日韩av中文字幕一区二区三区| 一区二区三区中文字幕电影| 国产精品久久综合| 日韩美女久久久| 亚洲国产成人自拍| 中文字幕第一区| 精品av久久707| 精品99久久久久久| 久久综合色播五月| 久久日韩粉嫩一区二区三区| 日韩视频一区二区在线观看| 日韩视频在线一区二区| 91精品国产一区二区三区香蕉| 欧美日韩视频专区在线播放| 欧美日韩国产一二三| 欧美日韩的一区二区| 欧美日韩国产乱码电影| 欧美日韩在线免费视频| 欧美日韩国产一区| 日韩三级精品电影久久久| 欧美大黄免费观看| 精品国产露脸精彩对白| 精品国产免费一区二区三区四区| 精品日韩一区二区| 2023国产精品自拍| 欧美国产成人在线| 亚洲视频一区二区在线| 亚洲综合无码一区二区| 爽爽淫人综合网网站| 麻豆国产精品视频| 国产一区二区不卡| 99热国产精品| 欧美三级电影在线观看| 精品国产伦理网| 中文字幕亚洲成人| 亚洲高清一区二区三区| 国产综合色在线| 成人av网站免费观看| 欧美日韩综合色| 久久精品一区蜜桃臀影院| 亚洲欧美区自拍先锋| 日韩高清不卡在线| 成人黄色av电影| 欧美精品18+| 久久综合色婷婷| 欧美岛国在线观看| 欧美经典一区二区| 亚洲综合在线电影| 久久成人免费网站| jizz一区二区| 欧美一区二区三区不卡| 国产精品国产三级国产普通话99| 亚洲人成网站影音先锋播放| 热久久国产精品| 成人av网址在线| 日韩一区二区三| 一区二区三区久久| 国产激情视频一区二区三区欧美| 欧洲一区在线观看| 国产日产欧美精品一区二区三区| 亚洲成人你懂的| 成人性生交大片免费看视频在线 | 精品99一区二区| 亚洲影院理伦片| 成人精品免费视频| 欧美tickling挠脚心丨vk| 亚洲靠逼com| 亚洲成a人片在线不卡一二三区| 亚洲成人免费在线观看| 成人免费观看男女羞羞视频| 欧美日韩精品二区第二页| 国产女人18毛片水真多成人如厕| 午夜成人免费电影| www.欧美精品一二区| 久久久久久久久久电影| 奇米精品一区二区三区四区| 白白色 亚洲乱淫| 久久久久久久久伊人| 秋霞电影一区二区| 欧美三区在线观看| 亚洲综合免费观看高清完整版在线 | 激情综合色播五月| 在线播放亚洲一区| 亚洲国产成人porn| 一本在线高清不卡dvd| 亚洲国产精品成人久久综合一区| 麻豆成人久久精品二区三区小说| 欧美午夜精品理论片a级按摩| 亚洲欧洲美洲综合色网| 国产高清在线观看免费不卡| 精品久久久久久久久久久久包黑料| 五月天丁香久久| 日本道精品一区二区三区| 亚洲欧美另类久久久精品2019| 国产91丝袜在线观看| 国产精品久久久久久久久免费相片 | 99综合电影在线视频| 中文字幕第一区综合| 懂色一区二区三区免费观看| 国产精品丝袜一区| 成人爱爱电影网址| 国产精品高潮呻吟|