Драйверы торгового оборудования v.9
idisplay_c.h
1 #ifndef DISPLAY_INTERFACE_C_H
2 #define DISPLAY_INTERFACE_C_H
3 
4 
5 #if defined(_WIN32) || defined(_WIN32_WCE)
6 # if defined(DTO_LIBRARY)
7 # define DTOSHARED_EXPORT __declspec(dllexport)
8 # else
9 # define DTOSHARED_EXPORT __declspec(dllimport)
10 # endif
11 # define DTOSHARED_CCA __cdecl
12 #elif defined(__x86_64) || defined(__x86_64__) || defined(__ARMEL__)
13 # define DTOSHARED_EXPORT
14 # define DTOSHARED_CCA
15 #else
16 # define DTOSHARED_EXPORT
17 # define DTOSHARED_CCA __attribute__ ((cdecl))
18 #endif
19 
20 extern "C"
21 {
22 DTOSHARED_EXPORT int DTOSHARED_CCA get_LicenseValid(void *ptr, int *state);
23 DTOSHARED_EXPORT int DTOSHARED_CCA get_LicenseExpiredDate(void *ptr, wchar_t *bfr, int bfrSize);
24 DTOSHARED_EXPORT int DTOSHARED_CCA get_Version(void *ptr, wchar_t *bfr, int bfrSize);
25 DTOSHARED_EXPORT int DTOSHARED_CCA get_DriverName(void *ptr, wchar_t *bfr, int bfrSize);
26 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceEnabled(void *ptr, int *deviceEnabled);
27 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceEnabled(void *ptr, int deviceEnabled);
28 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultCode(void *ptr, int *resultCode);
29 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultDescription(void *ptr, wchar_t *bfr, int bfrSize);
30 DTOSHARED_EXPORT int DTOSHARED_CCA get_BadParam(void *ptr, int *badParam);
31 DTOSHARED_EXPORT int DTOSHARED_CCA get_BadParamDescription(void *ptr, wchar_t *bfr, int bfrSize);
32 DTOSHARED_EXPORT int DTOSHARED_CCA get_ApplicationHandle(void *ptr, void **appHandle);
33 DTOSHARED_EXPORT int DTOSHARED_CCA put_ApplicationHandle(void *ptr, void *appHandle);
34 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSettings(void *ptr, wchar_t *bfr, int bfrSize);
35 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSettings(void *ptr, const wchar_t *deviceSettings);
36 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsBuff(void *ptr, const wchar_t *name, wchar_t *bfr, int bfrSize);
37 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsBuff(void *ptr, const wchar_t *name, const wchar_t *value);
38 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsInt(void *ptr, const wchar_t *name, int *value);
39 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsInt(void *ptr, const wchar_t *name, const int value);
40 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsDouble(void *ptr, const wchar_t *name, double *value);
41 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsDouble(void *ptr, const wchar_t *name, const double value);
42 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingMapping(void *ptr, const wchar_t *name, wchar_t *bfr, int bfrSize);
43 
44 DTOSHARED_EXPORT int DTOSHARED_CCA ShowProperties(void *ptr);
45 DTOSHARED_EXPORT int DTOSHARED_CCA ApplySingleSettings(void *ptr);
46 DTOSHARED_EXPORT int DTOSHARED_CCA ResetSingleSettings(void *ptr);
47 
48 DTOSHARED_EXPORT int DTOSHARED_CCA DisplayText(void *ptr, const wchar_t *text, int vMarquee, int marqueeRepeatWait, int marqueeUnitWait);
49 DTOSHARED_EXPORT int DTOSHARED_CCA get_CurrentDeviceID(void *ptr, wchar_t *bfr, int bfrSize);
50 DTOSHARED_EXPORT int DTOSHARED_CCA put_CurrentDeviceID(void *ptr, const wchar_t *newDeviceID);
51 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceRows(void *ptr, int *rows);
52 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceColumns(void *ptr, int *cols);
53 DTOSHARED_EXPORT int DTOSHARED_CCA get_CharacterSet(void *ptr, int *characterSet);
54 DTOSHARED_EXPORT int DTOSHARED_CCA put_ClsPtr(void *ptr, void *cls);
55 }
56 
57 #endif // DISPLAY_INTERFACE_C_H