Return values |
Description |
0 |
Driver installation was successful |
-1 |
NULL parameter |
-2 |
The following characters are not allowed in the %s name: %S |
-3 |
%s is too long. Maximum allowed characters: %d |
-4 |
Empty string parameter |
-5 |
The specified Driver type (%d) is invalid |
-6 |
The specified %s file (%S) does not exist |
-7 |
Could not create registry keys for the Printer Driver: %S |
-8 |
CreateMonitorINI failed. Error: %S |
-10 |
The specified Printer (%S) already exists |
-11 |
The specified %d bit Printer Driver (%S) already exists |
-12 |
The specified Port (%S) already exists |
-13 |
The specified Port Monitor (%S) already exists. |
-14 |
The specified Print Processor (%S) already exists |
-20 |
The driver name is not specified in the INF file. Make sure it is specified in the [BIDRIVER_DATA] section |
-21 |
The configuration INI file name is not specified in the INF file. Make sure it is specified in the [BIDRIVER_DATA] section |
otherwise returns a Windows system error code. |
Common error codes:
Error code: 5:
The dAddPortMonitor function cannot access the port monitor dll (BuXMonYY.dll) or access the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\)
Error code: 126:
The port monitor dll (BuXMonYY.dll) is not found in the System32 directory.
Error code: 127:
The port monitor dll (BuXMonYY.dll) version is not correct in the System32 directory.
Error code: 193:
The port monitor dll (BuXMonYY.dll) is not valid for the current platform (32-bit / 64-bit mismatch)
Error code: 1722:
Print Spooler service is not running
Error code: 1805:
The system has an ARM-based processor (E.g.: Apple M1, M2, Qualcomm Snapdragon, etc), but you are trying to install the non-ARM version.
Authenticode Error code:
-2146500030 (0x800F0242)
The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
Install the following fixes on Windows 7:
https://technet.microsoft.com/en-us/library/security/3033929.aspx
-2146500025 (0x800F0247)