/*
***************************************************************************
* COPYRIGHT (c) 2003 by InStep Software, LLC. All Rights Reserved *
* *
* This program is an unpublished copyrighted work which is proprietary *
* to InStep Software, LLC. and contains confidential information *
* that is not to be reproduced or disclosed, in whole or in part, to any *
* other person or entity without prior written consent from InStep *
* Software, LLC. in each and every instance. *
* *
* WARNING: Unauthorized reproduction of this program as well as *
* unauthorized preparation of derivative works based upon the *
* program or distribution of copies by sale, rental, lease or *
* lending are violations of federal copyright laws and state trade *
* secret laws, punishable by civil and criminal penalties. *
* *
***************************************************************************
*/
// ezdnaapi.h : main header file for the EZDNAAPI DLL
//
#ifndef __EZDNAAPI_H
#define __EZDNAAPI_H
#ifdef __cplusplus
extern "C" {
#endif
#define EZDNA_FLOAT_ERROR -1.7E308
int WINAPI DNAGoodPointFormat(const char *pszPoint);
/***************************/
/* real-time service calls */
/***************************/
int WINAPI DNAGetRTAll( const char *szPoint,
double *pdValue,
char *szTime, unsigned short nTime,
char *szStatus, unsigned short nStatus,
char *szDesc, unsigned short nDesc,
char *szUnits, unsigned short nUnits
);
int WINAPI DNAGetRTAllUTC( const char *szPoint,
double *pdValue,
long *ptTime,
char *szStatus, unsigned short nStatus,
char *szDesc, unsigned short nDesc,
char *szUnits, unsigned short nUnits
);
int WINAPI DNAGetRTValue(const char *szPoint, double *pdValue);
int WINAPI DNAGetRTValueAsString(const char *szPoint, char *szValue, unsigned short nValue);
int WINAPI DNAGetRTTime(const char *szPoint, char *szTime, unsigned short nTime);
int WINAPI DNAGetRTTimeUTC(const char *szPoint, long *ptTime);
int WINAPI DNAGetRTStatus(const char *szPoint, char *szStatus, unsigned short nStatus);
int WINAPI DNAGetRTDesc(const char *szPoint, char *szDesc, unsigned short nDesc);
int WINAPI DNAGetRTUnits(const char *szPoint, char *szUnits, unsigned short nUnits);
int WINAPI DNAGetRTShort( const char *szPoint,
double *pdValue,
long *ptTime,
unsigned short *pusStatus
);
int WINAPI DNAGetRTFull( const char *szPoint,
double *pdValue, char *szValue, unsigned short nValue,
long *ptTime, char *szTime, unsigned short nTime,
unsigned short *pusStatus, char *szStatus, unsigned short nStatus,
char *szDesc, unsigned short nDesc,
char *szUnits, unsigned short nUnits
);
/* Same as DNAGetRTFull() call except the UserId is required. The call will also be semaphored */
/* to ensure the entire sequence will be completed before the function may be called again. */
int WINAPI DNAGetRTFull2( const char *szUserId,
const char *szPoint,
double *pdValue, char *szValue, unsigned short nValue,
long *ptTime, char *szTime, unsigned short nTime,
unsigned short *pusStatus, char *szStatus, unsigned short nStatus,
char *szDesc, unsigned short nDesc,
char *szUnits, unsigned short nUnits
);
/* Compression calls and data types */
typedef char DESC [25];
typedef char ID [9];
typedef char EXTDESC[225];
typedef char EXTID[138];
int WINAPI DNAGetRTDescriptions(const char *szRTServ, DESC* szList, unsigned long nList, unsigned short * NumPoints);
int WINAPI DNAGetRTExtDescriptions(const char *szRTServ, EXTDESC* szList, unsigned long cbList, unsigned short * NumPoints);
int WINAPI DNAGetRTExtIds(const char *szRTServ, EXTID* szList, unsigned long cbList, unsigned short * NumPoints);
int WINAPI DNAGetRTIds(const char *szRTServ, ID* szList, unsigned long cbList, unsigned short * NumPoints);
int WINAPI DNAGetRTExtDescriptionsSorted(const char *szRTServ,
EXTDESC* szList,
unsigned long cbList,
unsigned short * NumPoints);
int WINAPI DNAGetRTExtIdsSorted(const char *szRTServ,
EXTID* szList,
unsigned long cbList,
unsigned short * NumPoints);
BOOL WINAPI DnaCompressedPointSearch(const char * szSvcName, char *szPoint, int nSize);
BOOL WINAPI DnaCompressedMultiPointSearch(const char *szSvcName, char **pszPointList, int nSize, int nMaxCount, int *pnReturnCount);
BOOL WINAPI DnaMultiSearchSelectPoint(char *selPoint);
/* note: the list calls are unavailabe in Visual Basic */
int WINAPI DNAGetRTAllList( unsigned short nCount,
char *pszPoint[],
double pdValue[],
char *pszTime[], unsigned short nTime,
char *pszStatus[], unsigned short nStatus,
char *pszDesc[], unsigned short nDesc,
char *pszUnits[], unsigned short nUnits
);
int WINAPI DNAGetRTAllList2( unsigned short nCount,
char *pszPoint[],
double pdValue[],
char *pszTime[], unsigned short nTime,
unsigned short pusStatus[],
char *pszStatus[], unsigned short nStatus,
char *pszDesc[], unsigned short nDesc,
char *pszUnits[], unsigned short nUnits
);
int WINAPI DNAGetRTAllListUTC( unsigned short nCount,
char *pszPoint[],
double pdValue[],
long ptTime[],
char *pszStatus[], unsigned short nStatus,
char *pszDesc[], unsigned short nDesc,
char *pszUnits[], unsigned short nUnits
);
int WINAPI DNAGetRTValueList(unsigned short nCount, char *pszPoint[], double pdValue[]);
int WINAPI DNAGetRTTimeList( unsigned short nCount,
char *pszPoint[],
char *pszTime[], unsigned short nTime
);
int WINAPI DNAGetRTTimeListUTC(unsigned short nCount, char *pszPoint[], long ptTime[]);
int WINAPI DNAGetRTStatusList( unsigned short nCount,
char *pszPoint[],
char *pszStatus[], unsigned short nStatus
);
int WINAPI DNAGetRTDescList( unsigned short nCount,
char *pszPoint[],
char *pszDesc[], unsigned short nDesc
);
int WINAPI DNAGetRTUnitsList( unsigned sh
- 1
- 2
前往页