Print2Email Installation Error Codes
| Error Codes | 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 |
| -9 | The MSI function is not compatible with target OS (only for MSI installers) |
| -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 |
| -22 | Could not read parameters from registry (only for MSI installers) |
| otherwise returns a Windows system error code. | |
Common error codes:
Error code: 5:
The dAddPortMonitor function cannot access the port monitor dll (on desktop OS: P2EMonNT.dll, on server OS: P2EMonTS.dll) or access the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\)
Error code: 126:
The port monitor dll (on desktop OS: P2EMonNT.dll, on server OS: P2EMonTS.dll) is not found in the System32 directory.
Error code: 127:
The port monitor dll (on desktop OS: P2EMonNT.dll, on server OS: P2EMonTS.dll) version is not correct in the System32 directory.
Error code: 193:
The port monitor dll (on desktop OS: P2EMonNT.dll, on server OS: P2EMonTS.dll) is not valid for the current platform (32-bit / 64-bit mismatch)
Error code: 1722:
Print Spooler service is not running
