// XFileFun.h: interface for the CXFileFun class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XFILEFUN_H__6866CCF3_DA46_4B0E_993A_F54618BB90C5__INCLUDED_)
#define AFX_XFILEFUN_H__6866CCF3_DA46_4B0E_993A_F54618BB90C5__INCLUDED_
#ifdef __cplusplus
extern "C" {
#endif
#define XFILEFUN_EXPORTS
#ifdef XFILEFUN_EXPORTS
#define XFILEFUN_API __declspec(dllexport)
#else
#define XFILEFUN_API __declspec(dllimport)
#endif
// This class is exported from the XFileFun.dll
class XFILEFUN_API CXFileFun {
public:
CXFileFun(void);
// TODO: add your methods here.
};
XFILEFUN_API LONG lXMLRow; //XML行数
XFILEFUN_API LONG lXMLCol; //XML列数
XFILEFUN_API LONG lXMLColMax; //XML最大列数
XFILEFUN_API typedef struct structXML
{
LPCTSTR strXMLHead; //XML数据头
LPCTSTR strXMLBody; //XML数据引用
CStringArray aryXMLText; //XML数据指示
CStringArray aryXMLData; //XML数据内容
LPCTSTR strXMLDemo; //XML数据引用
}structXMLTAG;
XFILEFUN_API structXMLTAG structXMLData;
XFILEFUN_API INT __stdcall XML_INIT(LONG lColMax);
XFILEFUN_API LONG __stdcall Read_XML_Row(LPCTSTR strAppTemp);
XFILEFUN_API LONG __stdcall Read_XML(LPCTSTR strAppTemp,LONG lTempRow);
XFILEFUN_API LONG __stdcall Wrt_XML(LPCTSTR strAppTemp,LONG lTempRow,LONG lTempCol,BOOL AddNewFlg); //lTempRow行从1开始 lTempCol列个数从1开始 AddNewFlg是否追加
XFILEFUN_API LONG __stdcall Get_XML(LPCTSTR strHead,LPCTSTR strBODY,VARIANT* aryText,VARIANT* aryData,LPCTSTR strDemo);
XFILEFUN_API LONG __stdcall Set_XML(LPCTSTR strHead,LPCTSTR strBODY,CStringArray& aryText,CStringArray& aryData,LPCTSTR strDemo);
XFILEFUN_API BOOL __stdcall BMP_BKColor(HWND hwndtemp,CBrush* brushTemp,COLORREF colorTemp,LPCTSTR strBMPTemp,INT iBMPWidth,INT iBMPHeight);
XFILEFUN_API BOOL __stdcall SetWinPos(HWND hwndtemp,INT iScreenW,INT iScreenH,INT iWindowL,INT iWindowT,INT iWindowW,INT iWindowH,FLOAT fScaleX,FLOAT fScaleY,BOOL boolVisible,BOOL boolEnable);//窗口句柄 屏幕宽 屏幕高 位置左 位置顶 宽度 高度 左侧比例 右侧比例 可见 可用
XFILEFUN_API BOOL __stdcall SetWinFlash(HWND hwndtemp,INT iScreenW,INT iScreenH,INT iWindowW,INT iWindowH,INT iItemL,INT iItemT,INT iItemW,INT iItemH,FLOAT fSpeedX,BOOL boolFlash,BOOL boolVisible,BOOL boolEnable);//窗口句柄 屏幕宽 屏幕高 窗体宽 窗体高 起始左 起始顶 宽度 高度 速率 可见 可用
XFILEFUN_API BOOL __stdcall SetWinText(HWND hwndtemp,LPCTSTR strText);
XFILEFUN_API BOOL __stdcall PNG_BKColor(HWND hwndTemp,LPCTSTR strBMPTemp,INT iBMPLeft,INT iBMPTop,INT iBMPWidth,INT iBMPHeight);
XFILEFUN_API LONG __stdcall Set_MD5(LPCTSTR strSet,LPCTSTR strGet);
XFILEFUN_API BOOL __stdcall RegsvrOcx(LPCTSTR strAppTemp,LPCTSTR strAppName);
XFILEFUN_API BOOL __stdcall RegsvrKey(HKEY bootdir,LPCTSTR strkey,LPCTSTR strdesc,LPCTSTR strdrive);
XFILEFUN_API BOOL __stdcall ReadSvrKey(HKEY bootdir,LPCTSTR strkey,LPCTSTR strdesc,CHAR* strdrive,INT* ilen);
XFILEFUN_API DOUBLE __stdcall Str_Cali(LPCTSTR strAppTemp);
XFILEFUN_API void __stdcall CRC_Check(UCHAR* revdata,INT ilen,BYTE& hbt,BYTE& lbt);
XFILEFUN_API void __stdcall XOR_Check(UCHAR* revdata,INT istart,INT iend,BYTE& bt);
#ifdef __cplusplus
}
#endif
#endif // !defined(AFX_XFILEFUN_H__6866CCF3_DA46_4B0E_993A_F54618BB90C5__INCLUDED_)