Драйверы торгового оборудования v.9
ircpprn_c.h
1 #ifndef RCPPRN_INTERFACE_C_H
2 #define RCPPRN_INTERFACE_C_H
3 
4 #if defined(_WIN32) || defined(_WIN32_WCE)
5 # if defined(DTO_LIBRARY)
6 # define DTOSHARED_EXPORT __declspec(dllexport)
7 # else
8 # define DTOSHARED_EXPORT __declspec(dllimport)
9 # endif
10 # define DTOSHARED_CCA __cdecl
11 #elif defined(__linux__) || defined(ANDROID)
12 # define DTOSHARED_EXPORT
13 # define DTOSHARED_CCA
14 #else
15 # define DTOSHARED_EXPORT
16 # define DTOSHARED_CCA __attribute__ ((cdecl))
17 #endif
18 
19 extern "C"
20 {
21 DTOSHARED_EXPORT int DTOSHARED_CCA get_LicenseValid(void *ptr, int *state);
22 DTOSHARED_EXPORT int DTOSHARED_CCA get_LicenseExpiredDate(void *ptr, wchar_t *bfr, int bfrSize);
23 DTOSHARED_EXPORT int DTOSHARED_CCA get_Version(void *ptr, wchar_t *bfr, int bfrSize);
24 DTOSHARED_EXPORT int DTOSHARED_CCA get_DriverName(void *ptr, wchar_t *bfr, int bfrSize);
25 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceEnabled(void *ptr, int *deviceEnabled);
26 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceEnabled(void *ptr, int deviceEnabled);
27 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultCode(void *ptr, int *resultCode);
28 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultDescription(void *ptr, wchar_t *bfr, int bfrSize);
29 DTOSHARED_EXPORT int DTOSHARED_CCA get_BadParam(void *ptr, int *badParam);
30 DTOSHARED_EXPORT int DTOSHARED_CCA get_BadParamDescription(void *ptr, wchar_t *bfr, int bfrSize);
31 DTOSHARED_EXPORT int DTOSHARED_CCA get_ApplicationHandle(void *ptr, void **appHandle);
32 DTOSHARED_EXPORT int DTOSHARED_CCA put_ApplicationHandle(void *ptr, void *appHandle);
33 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSettings(void *ptr, wchar_t *bfr, int bfrSize);
34 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSettings(void *ptr, const wchar_t *deviceSettings);
35 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsBuff(void *ptr, const wchar_t *name, wchar_t *bfr, int bfrSize);
36 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsBuff(void *ptr, const wchar_t *name, const wchar_t *value);
37 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsInt(void *ptr, const wchar_t *name, int *value);
38 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsInt(void *ptr, const wchar_t *name, const int value);
39 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingAsDouble(void *ptr, const wchar_t *name, double *value);
40 DTOSHARED_EXPORT int DTOSHARED_CCA put_DeviceSingleSettingAsDouble(void *ptr, const wchar_t *name, const double value);
41 DTOSHARED_EXPORT int DTOSHARED_CCA get_DeviceSingleSettingMapping(void *ptr, const wchar_t *name, wchar_t *bfr, int bfrSize);
42 
43 DTOSHARED_EXPORT int DTOSHARED_CCA ShowProperties(void *ptr);
44 DTOSHARED_EXPORT int DTOSHARED_CCA ApplySingleSettings(void *ptr);
45 DTOSHARED_EXPORT int DTOSHARED_CCA ResetSingleSettings(void *ptr);
46 
47 
48 DTOSHARED_EXPORT int DTOSHARED_CCA AddText(void *ptr);
49 DTOSHARED_EXPORT int DTOSHARED_CCA AddPicture(void *ptr);
50 DTOSHARED_EXPORT int DTOSHARED_CCA AddPictureFromMemory(void *ptr);
51 DTOSHARED_EXPORT int DTOSHARED_CCA AddBarCode(void *ptr);
52 DTOSHARED_EXPORT int DTOSHARED_CCA AddCut(void *ptr);
53 DTOSHARED_EXPORT int DTOSHARED_CCA AddBeep(void *ptr);
54 DTOSHARED_EXPORT int DTOSHARED_CCA AddDrawer(void *ptr);
55 DTOSHARED_EXPORT int DTOSHARED_CCA AddFeed(void *ptr);
56 DTOSHARED_EXPORT int DTOSHARED_CCA AddSlip(void *ptr);
57 
58 DTOSHARED_EXPORT int DTOSHARED_CCA get_CharSet(void *ptr, int *value);
59 DTOSHARED_EXPORT int DTOSHARED_CCA put_CharSet(void *ptr, int value);
60 DTOSHARED_EXPORT int DTOSHARED_CCA get_CodePage(void *ptr, int *value);
61 DTOSHARED_EXPORT int DTOSHARED_CCA put_CodePage(void *ptr, int value);
62 DTOSHARED_EXPORT int DTOSHARED_CCA get_FileName(void *ptr, wchar_t *bfr, int bfrSize);
63 DTOSHARED_EXPORT int DTOSHARED_CCA put_FileName(void *ptr, const wchar_t *value);
64 DTOSHARED_EXPORT int DTOSHARED_CCA get_Caption(void *ptr, wchar_t *bfr, int bfrSize);
65 DTOSHARED_EXPORT int DTOSHARED_CCA put_Caption(void *ptr, const wchar_t *value);
66 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontIndex(void *ptr, int *value);
67 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontIndex(void *ptr, int value);
68 DTOSHARED_EXPORT int DTOSHARED_CCA get_LineSpacing(void *ptr, int *value);
69 DTOSHARED_EXPORT int DTOSHARED_CCA put_LineSpacing(void *ptr, int value);
70 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontBold(void *ptr, int *value);
71 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontBold(void *ptr, int value);
72 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontItalic(void *ptr, int *value);
73 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontItalic(void *ptr, int value);
74 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontDblHeight(void *ptr, int *value);
75 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontDblHeight(void *ptr, int value);
76 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontDblWidth(void *ptr, int *value);
77 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontDblWidth(void *ptr, int value);
78 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontUnderLine(void *ptr, int *value);
79 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontUnderLine(void *ptr, int value);
80 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontOverLine(void *ptr, int *value);
81 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontOverLine(void *ptr, int value);
82 DTOSHARED_EXPORT int DTOSHARED_CCA get_FontNegative(void *ptr, int *value);
83 DTOSHARED_EXPORT int DTOSHARED_CCA put_FontNegative(void *ptr, int value);
84 DTOSHARED_EXPORT int DTOSHARED_CCA get_Alignment(void *ptr, int *value);
85 DTOSHARED_EXPORT int DTOSHARED_CCA put_Alignment(void *ptr, int value);
86 DTOSHARED_EXPORT int DTOSHARED_CCA get_TextNewLine(void *ptr, int *value);
87 DTOSHARED_EXPORT int DTOSHARED_CCA put_TextNewLine(void *ptr, int value);
88 DTOSHARED_EXPORT int DTOSHARED_CCA get_TextUpSideDown(void *ptr, int *value);
89 DTOSHARED_EXPORT int DTOSHARED_CCA put_TextUpSideDown(void *ptr, int value);
90 DTOSHARED_EXPORT int DTOSHARED_CCA get_CharRotation(void *ptr, int *value);
91 DTOSHARED_EXPORT int DTOSHARED_CCA put_CharRotation(void *ptr, int value);
92 DTOSHARED_EXPORT int DTOSHARED_CCA get_ZeroSlashed(void *ptr, int *value);
93 DTOSHARED_EXPORT int DTOSHARED_CCA put_ZeroSlashed(void *ptr, int value);
94 DTOSHARED_EXPORT int DTOSHARED_CCA get_Rotation(void *ptr, int *value);
95 DTOSHARED_EXPORT int DTOSHARED_CCA put_Rotation(void *ptr, int value);
96 DTOSHARED_EXPORT int DTOSHARED_CCA get_Color(void *ptr, int *value);
97 DTOSHARED_EXPORT int DTOSHARED_CCA put_Color(void *ptr, int value);
98 DTOSHARED_EXPORT int DTOSHARED_CCA get_TextWrap(void *ptr, int *value);
99 DTOSHARED_EXPORT int DTOSHARED_CCA put_TextWrap(void *ptr, int value);
100 
101 DTOSHARED_EXPORT int DTOSHARED_CCA get_BarcodeText(void *ptr, wchar_t *bfr, int bfrSize);
102 DTOSHARED_EXPORT int DTOSHARED_CCA put_BarcodeText(void *ptr, const wchar_t *bfr);
103 DTOSHARED_EXPORT int DTOSHARED_CCA get_BarcodeHeight(void *ptr, int *value);
104 DTOSHARED_EXPORT int DTOSHARED_CCA put_BarcodeHeight(void *ptr, int value);
105 DTOSHARED_EXPORT int DTOSHARED_CCA get_BarcodeType(void *ptr, int *value);
106 DTOSHARED_EXPORT int DTOSHARED_CCA put_BarcodeType(void *ptr, int value);
107 DTOSHARED_EXPORT int DTOSHARED_CCA get_BarcodePrintText(void *ptr, int *value);
108 DTOSHARED_EXPORT int DTOSHARED_CCA put_BarcodePrintText(void *ptr, int value);
109 DTOSHARED_EXPORT int DTOSHARED_CCA get_BarcodeControlCode(void *ptr, int *value);
110 DTOSHARED_EXPORT int DTOSHARED_CCA put_BarcodeControlCode(void *ptr, int value);
111 DTOSHARED_EXPORT int DTOSHARED_CCA get_CutValue(void *ptr, int *value);
112 DTOSHARED_EXPORT int DTOSHARED_CCA put_CutValue(void *ptr, int value);
113 DTOSHARED_EXPORT int DTOSHARED_CCA get_FeedValue(void *ptr, int *value);
114 DTOSHARED_EXPORT int DTOSHARED_CCA put_FeedValue(void *ptr, int value);
115 DTOSHARED_EXPORT int DTOSHARED_CCA get_DrawerValue(void *ptr, int *value);
116 DTOSHARED_EXPORT int DTOSHARED_CCA put_DrawerValue(void *ptr, int value);
117 DTOSHARED_EXPORT int DTOSHARED_CCA get_SlipValue(void *ptr, int *value);
118 DTOSHARED_EXPORT int DTOSHARED_CCA put_SlipValue(void *ptr, int value);
119 DTOSHARED_EXPORT int DTOSHARED_CCA get_BeepValue(void *ptr, int *value);
120 DTOSHARED_EXPORT int DTOSHARED_CCA put_BeepValue(void *ptr, int value);
121 DTOSHARED_EXPORT int DTOSHARED_CCA get_AutoSize(void *ptr, int *value);
122 DTOSHARED_EXPORT int DTOSHARED_CCA put_AutoSize(void *ptr, int value);
123 
124 DTOSHARED_EXPORT int DTOSHARED_CCA get_PictureNumber(void *ptr, int *value);
125 DTOSHARED_EXPORT int DTOSHARED_CCA put_PictureNumber(void *ptr, int value);
126 
127 DTOSHARED_EXPORT int DTOSHARED_CCA put_AutoPrint(void *ptr, int value);
128 
129 DTOSHARED_EXPORT int DTOSHARED_CCA ResetPrintSettings(void *ptr);
130 DTOSHARED_EXPORT int DTOSHARED_CCA PrintAllTasks(void *ptr);
131 DTOSHARED_EXPORT int DTOSHARED_CCA ClearAllTasks(void *ptr);
132 DTOSHARED_EXPORT int DTOSHARED_CCA get_Progress(void *ptr, int *ready, int *all);
133 
134 DTOSHARED_EXPORT int DTOSHARED_CCA GetStatus(void *ptr);
135 DTOSHARED_EXPORT int DTOSHARED_CCA get_StatusErrorCount(void *ptr, int *value);
136 DTOSHARED_EXPORT int DTOSHARED_CCA get_StatusErrorValue(void *ptr, int *value);
137 DTOSHARED_EXPORT int DTOSHARED_CCA get_StatusErrorDescription(void *ptr, wchar_t *bfr, int bfrSize);
138 DTOSHARED_EXPORT int DTOSHARED_CCA get_StatusErrorIndex(void *ptr, int *value);
139 DTOSHARED_EXPORT int DTOSHARED_CCA put_StatusErrorIndex(void *ptr, int value);
140 
141 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapBeep(void *ptr, int *isCap);
142 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapPicture(void *ptr, int *isCap);
143 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapPictureFromMemory(void *ptr, int *isCap);
144 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFeed(void *ptr, int *isCap);
145 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapCutFull(void *ptr, int *isCap);
146 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapCutPart(void *ptr, int *isCap);
147 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapDrawer(void *ptr, int *isCap);
148 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontCount(void *ptr, int *value);
149 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapLineSpacing(void *ptr, int *isCap);
150 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontBold(void *ptr, int *isCap);
151 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontItalic(void *ptr, int *isCap);
152 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontDblHeight(void *ptr, int *isCap);
153 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontDblWidth(void *ptr, int *isCap);
154 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontUnderLine(void *ptr, int *isCap);
155 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontOverLine(void *ptr, int *isCap);
156 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapFontNegative(void *ptr, int *isCap);
157 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapTextUpSideDown(void *ptr, int *isCap);
158 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapZeroSlashed(void *ptr, int *isCap);
159 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapColorCount(void *ptr, int *value);
160 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapCharCount(void *ptr, int *value);
161 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapCharRotation(void *ptr, int value, int *isCap);
162 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapRotation(void *ptr, int value, int *isCap);
163 DTOSHARED_EXPORT int DTOSHARED_CCA get_CapPictureWidth(void *ptr, int *value);
164 
165 }
166 
167 
168 #endif // RCPPRNINTERFACEC_H