2009-06-03 08:23:38 +12:00
|
|
|
/* Sed: http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/versions.asp */
|
|
|
|
#if defined (_WIN32) && (defined(_USRDLL) || defined(DLL_EXPORT) || defined(PIC))
|
|
|
|
#include <windows.h>
|
|
|
|
#include <shlwapi.h>
|
2020-11-25 11:22:12 +13:00
|
|
|
#include "zintconfig.h"
|
2009-06-03 08:23:38 +12:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
__declspec(dllexport) HRESULT DllGetVersion (DLLVERSIONINFO2* pdvi);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT DllGetVersion (DLLVERSIONINFO2* pdvi)
|
|
|
|
{
|
|
|
|
if (!pdvi || (sizeof(*pdvi) != pdvi->info1.cbSize))
|
|
|
|
return (E_INVALIDARG);
|
2012-12-30 07:37:03 +13:00
|
|
|
|
2020-09-05 03:38:11 +12:00
|
|
|
pdvi->info1.dwMajorVersion = ZINT_VERSION_MAJOR;
|
|
|
|
pdvi->info1.dwMinorVersion = ZINT_VERSION_MINOR;
|
|
|
|
pdvi->info1.dwBuildNumber = ZINT_VERSION_RELEASE;
|
2009-06-03 08:23:38 +12:00
|
|
|
pdvi->info1.dwPlatformID = DLLVER_PLATFORM_WINDOWS;
|
|
|
|
if (sizeof(DLLVERSIONINFO2) == pdvi->info1.cbSize)
|
2020-09-05 03:38:11 +12:00
|
|
|
pdvi->ullVersion = MAKEDLLVERULL(ZINT_VERSION_MAJOR, ZINT_VERSION_MINOR, ZINT_VERSION_RELEASE, ZINT_VERSION_BUILD);
|
2012-12-30 07:37:03 +13:00
|
|
|
|
2009-06-03 08:23:38 +12:00
|
|
|
return S_OK;
|
|
|
|
}
|
2021-09-13 10:37:44 +12:00
|
|
|
#else
|
Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, MAXICODE, MICROPDF417, PDF417, QRCODE, ULTRA
DOTCODE: use pre-calculated generator poly coeffs in Reed-Solomon for
performance improvement
PDF417/MICROPDF417: use common routine pdf417_initial()
GUI: code lines <= 118, shorthand widget_obj(),
shorten calling upcean_addon_gap(), upcean_guard_descent()
various backend: var name debug -> debug_print
2021-09-29 09:42:44 +13:00
|
|
|
/* https://stackoverflow.com/a/26541331 Suppresses gcc warning ISO C forbids an empty translation unit */
|
2021-09-13 10:37:44 +12:00
|
|
|
typedef int make_iso_compilers_happy;
|
2009-06-03 08:23:38 +12:00
|
|
|
#endif /* _WIN32 */
|