Windows Error Codes
PLBWIN Only
The following table identifies the extended error codes that are generated by PLBWIN. The errors identified as 'ERROR_' are the Windows operating system error constant name. Note that the 'ERROR_...' definition is included as 'Extended Data' WINERR:0xnn in the error message where '0xnn' is defined as one of the following values:
|
Error Code |
Winerr |
Description |
|
ERROR_INVALID_FUNCTION |
0x1 |
Incorrect function. |
|
ERROR_FILE_NOT_FOUND |
0x2 |
The system cannot find the file specified. |
|
ERROR_PATH_NOT_FOUND |
0x3 |
The system cannot find the path specified. |
|
ERROR_TOO_MANY_OPEN_FILES |
0x4 |
The system cannot open the file. |
|
ERROR_ACCESS_DENIED |
0x5 |
Access is denied. |
|
ERROR_INVALID_HANDLE |
0x6 |
The handle is invalid. |
|
ERROR_OUTOFMEMORY |
0xE |
Not enough storage is available to complete this operation. |
|
ERROR_INVALID_DRIVE |
0xF |
The system cannot find the drive specified. |
|
ERROR_CRC |
0x17 |
Data error ( cyclic redundancy check ) |
|
ERROR_NOT_DOS_DISK |
0x1A |
The specified disk or diskette cannot be accessed. |
|
ERROR_SHARING_VIOLATION |
0x20 |
The process cannot access the file because it is being used by another process. |
|
ERROR_LOCK_VIOLATION |
0x21 |
The file cannot be accessed because another process has locked a portion of it. |
|
ERROR_HANDLE_DISK_FULL |
0x27 |
The disk is full. |
|
ERROR_NETNAME_DELETED |
0x40 |
The specified network name is no longer available. (Probable hardware issue.) |
|
ERROR_CANNOT_MAKE |
0x52 |
The directory or file cannot be created. |
|
ERROR_OPEN_FAILED |
0x6E |
The system cannot open the device or file specified. |
|
ERROR_DISK_FULL |
0x70 |
There is not enough space on the disk. |
|
ERROR_INVALID_NAME |
0x7B |
The filename, directory name, or volume label syntax is incorrect. |
|
ERROR_PATH_BUSY |
0x94 |
The path specified cannot be used at this time. |
|
ERROR_BUSY |
0xAA |
The requested resource is in use. |
|
ERROR_ALREADY_EXISTS |
0xB7 |
Cannot create a file when that file already exists. |
|
ERROR_DIRECTORY |
0x10B |
The directory name is invalid. |
|
ERROR_IO_DEVICE |
0x45D |
The request could not be performed because of an I/O device error. |
|
ERROR_DISK_CORRUPT |
0x570 |
The file or directory is corrupt and non-readable. |
|
ERROR_FILE_CORRUPT |
0x571 |
The disk structure is corrupt and non-readable. |
The PLBWIN file subsystem transforms the Windows errors into values that are returned to the user program as a subcode when an I/O error is generated. The following table identifies how the Windows generated errors are translated into the values that are presented to the user as decimal codes:
|
Error code |
Definition |
Windows Error |
|
2 |
ENOENT |
ERROR_FILE_NOT_FOUND |
|
|
|
ERROR_INVALID_DRIVE |
|
|
|
ERROR_INVALID_NAME |
|
|
|
ERROR_NOT_DOS_DISK |
|
|
|
ERROR_OPEN_FAILED |
|
|
|
ERROR_PATH_NOT_FOUND |
|
5 |
EIO |
ERROR_CRC |
|
|
|
ERROR_DISK_CORRUPT |
|
|
|
ERROR_FILE_CORRUPT |
|
|
|
ERROR_IO_DEVICE |
|
|
|
Any other Windows error other than defined in this table |
|
9 |
EBADF |
ERROR_INVALID_HANDLE |
|
12 |
ENOMEM |
ERROR_OUTOFMEMORY |
|
13 |
EACCES |
ERROR_ACCESS_DENIED |
|
|
|
ERROR_CANNOT_MAKE |
|
|
|
ERROR_PATH_BUSY |
|
|
|
ERROR_SHARING_VIOLATION |
|
16 |
EBUSY |
ERROR_BUSY |
|
17 |
EEXIST |
ERROR_ALREADY_EXISTS |
|
20 |
ENOTDIR |
ERROR_DIRECTORY |
|
23 |
ENFILE |
ERROR_TOO_MANY_OPEN_FILES |
|
28 |
ENOSPC |
ERROR_DISK_FULL |
|
|
|
ERROR_HANDLE_DISK_FULL |
See Also: PL/B Errors
![]() |