Printer driver installation using UploadPrinterDriverPackage

0

Using UploadPrinterDriverPackage for driver upload results in error 0x80070490.

UploadPrinterDriverPackageA(NULL,infPath.c_str(),"Windows x64",UPDP_UPLOAD_ALWAYS,GetDesktopWindow(),targetPath,&length);

However, if i run pnputil to install the same it works fine.Also, after using pnputil twice, if I remove the package and use the API, it succeeds every time afterwards.

What difference does pnputil make? What does the error code mean?

Any help is appreciated much.

windows
visual-c++
printing
driver
asked on Stack Overflow Sep 15, 2017 by itzuvid

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0