Printer API -different with Windows 98 ?
Posted on 1999-01-26
I develop an application under Win NT but with the intention of using it under Win 98 as well. I make use of printer APIs such as
OpenPrinter(PChar(Printer.Printers.Strings[Printer.PrinterIndex]), vPrinterHandle, nil)
This command works well under WinNT and now it returns false under Win 98.
Same thing with
if EnumJobs(vPrinterHandle, Msg.JobsLeft - 1, 1, 1, vJobInfo, 1000, vNeeded, vReturned) then ...
The values in JobInfo are also wrong.
Again, this code works very well in Win NT. Any suggestions ?