GetVersionInformation function

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
galfatal
Posts: 6
Joined: Mon Jan 22 2007
Location: Israel

GetVersionInformation function

Post by galfatal »

Hello,
I was trying to use the "GetVersionInformation" function of the dll interface, however only the version of the dll is returned correctly. Instead of the driver version I got garbage. (262144.65537). My driver version is 1.59 Development.
Here's my code:
DriverInit;
EnablePrinter;
long CDIntfMajor = 0;
long CDIntfMinor = 0;
long PrinterDriverMajor = 0;
long PrinterDriverMinor = 0;
long ret = GetVersionInformation(hPrinter, &CDIntfMajor, &CDIntfMinor, &PrinterDriverMajor, &PrinterDriverMinor);
LOG("Amyuni PDF Converter dll version: %d.%d, version of the driver: %d.%d", CDIntfMajor, CDIntfMinor, PrinterDriverMajor, PrinterDriverMinor);
Is there anything wrong? How could I get the driver version correctly.
Just a note: when I installed the evaluation version on my computer, I did get the version of the driver correctly.
Thanks.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

1.59 ? ! This is an old version, a very old version indeed....

It is possible that there exist a bug in this version this is why you are not getting the driver version properly.

I advise you to update your version otherwise you can contact our technical support our engineers will help you if we do still sutpport this version.
Post Reply