[ms-erref]: Windows Error Codes Intellectual Property Rights Notice for Open Specifications Documentation


HRESULT From WIN32 Error Code Macro



Download 355.48 Kb.
Page23/52
Date02.12.2016
Size355.48 Kb.
1   ...   19   20   21   22   23   24   25   26   ...   52
terminal server session.



      1. HRESULT From WIN32 Error Code Macro


The HRESULT From WIN32 Error Code Macro converts a Win32 error code to an HRESULT using the pattern 0x8007XXXX, where XXXX is the first two bytes of the Win32 hex value 0x0000XXXX.

The macro is as follows:



  1. #define FACILITY_WIN32 0x0007

  2.  

  3. #define __HRESULT_FROM_WIN32(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)))
    1. Win32 Error Codes


All Win32 error codes MUST be in the range 0x0000 to 0xFFFF, although Win32 error codes can be used both in 16-bit fields (such as within the HRESULT type specified in section 2.1) as well as 32-bit fields. Most values also have a default message defined, which can be used to map the value to a human-readable text message; when this is done, the Win32 error code is also known as a message identifier.

Vendors SHOULD reuse the values in the following table with their indicated meanings. Choosing any other value runs the risk of a collision in the future.<3>

This document provides the common usage details of the Win32 error codes; individual protocol specifications may provide expanded or modified definitions.

Note  In the following descriptions, a percentage sign followed by one or more alphanumeric characters (for example, "%1" or "%hs") indicates a variable that will be replaced by text at the time the value is returned.

Win32 error codes

Description




0x00000000

ERROR_SUCCESS



The operation completed successfully.

0x00000000

NERR_Success



The operation completed successfully.

0x00000001

ERROR_INVALID_FUNCTION



Incorrect function.

0x00000002

ERROR_FILE_NOT_FOUND



The system cannot find the file specified.

0x00000003

ERROR_PATH_NOT_FOUND



The system cannot find the path specified.

0x00000004

ERROR_TOO_MANY_OPEN_FILES



The system cannot open the file.

0x00000005

ERROR_ACCESS_DENIED



Access is denied.

0x00000006

ERROR_INVALID_HANDLE



The handle is invalid.

0x00000007

ERROR_ARENA_TRASHED



The storage control blocks were destroyed.

0x00000008

ERROR_NOT_ENOUGH_MEMORY



Not enough storage is available to process this command.

0x00000009

ERROR_INVALID_BLOCK



The storage control block address is invalid.

0x0000000A

ERROR_BAD_ENVIRONMENT



The environment is incorrect.

0x0000000B

ERROR_BAD_FORMAT



An attempt was made to load a program with an incorrect format.

0x0000000C

ERROR_INVALID_ACCESS



The access code is invalid.

0x0000000D

ERROR_INVALID_DATA



The data is invalid.

0x0000000E

ERROR_OUTOFMEMORY



Not enough storage is available to complete this operation.

0x0000000F

ERROR_INVALID_DRIVE



The system cannot find the drive specified.

0x00000010

ERROR_CURRENT_DIRECTORY



The directory cannot be removed.

0x00000011

ERROR_NOT_SAME_DEVICE



The system cannot move the file to a different disk drive.

0x00000012

ERROR_NO_MORE_FILES



There are no more files.

0x00000013

ERROR_WRITE_PROTECT



The media is write-protected.

0x00000014

ERROR_BAD_UNIT



The system cannot find the device specified.

0x00000015

ERROR_NOT_READY



The device is not ready.

0x00000016

ERROR_BAD_COMMAND



The device does not recognize the command.

0x00000017

ERROR_CRC



Data error (cyclic redundancy check).

0x00000018

ERROR_BAD_LENGTH



The program issued a command but the command length is incorrect.

0x00000019

ERROR_SEEK



The drive cannot locate a specific area or track on the disk.

0x0000001A

ERROR_NOT_DOS_DISK



The specified disk cannot be accessed.

0x0000001B

ERROR_SECTOR_NOT_FOUND



The drive cannot find the sector requested.

0x0000001C

ERROR_OUT_OF_PAPER



The printer is out of paper.

0x0000001D

ERROR_WRITE_FAULT



The system cannot write to the specified device.

0x0000001E

ERROR_READ_FAULT



The system cannot read from the specified device.

0x0000001F

ERROR_GEN_FAILURE



A device attached to the system is not functioning.

0x00000020

ERROR_SHARING_VIOLATION



The process cannot access the file because it is being used by another process.

0x00000021

ERROR_LOCK_VIOLATION



The process cannot access the file because another process has locked a portion of the file.

0x00000022

ERROR_WRONG_DISK



The wrong disk is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.

0x00000024

ERROR_SHARING_BUFFER_EXCEEDED



Too many files opened for sharing.

0x00000026

ERROR_HANDLE_EOF



Reached the end of the file.

0x00000027

ERROR_HANDLE_DISK_FULL



The disk is full.

0x00000032

ERROR_NOT_SUPPORTED



The request is not supported.

0x00000033

ERROR_REM_NOT_LIST



Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.

0x00000034

ERROR_DUP_NAME



You were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the computer name, and then try again.

0x00000035

ERROR_BAD_NETPATH



The network path was not found.

0x00000036

ERROR_NETWORK_BUSY



The network is busy.

0x00000037

ERROR_DEV_NOT_EXIST



The specified network resource or device is no longer available.

0x00000038

ERROR_TOO_MANY_CMDS



The network BIOS command limit has been reached.

0x00000039

ERROR_ADAP_HDW_ERR



A network adapter hardware error occurred.

0x0000003A

ERROR_BAD_NET_RESP



The specified server cannot perform the requested operation.

0x0000003B

ERROR_UNEXP_NET_ERR



An unexpected network error occurred.

0x0000003C

ERROR_BAD_REM_ADAP



The remote adapter is not compatible.

0x0000003D

ERROR_PRINTQ_FULL



The print queue is full.

0x0000003E

ERROR_NO_SPOOL_SPACE



Space to store the file waiting to be printed is not available on the server.

0x0000003F

ERROR_PRINT_CANCELLED



Your file waiting to be printed was deleted.

0x00000040

ERROR_NETNAME_DELETED



The specified network name is no longer available.

0x00000041

ERROR_NETWORK_ACCESS_DENIED



Network access is denied.

0x00000042

ERROR_BAD_DEV_TYPE



The network resource type is not correct.

0x00000043

ERROR_BAD_NET_NAME



The network name cannot be found.

0x00000044

ERROR_TOO_MANY_NAMES



The name limit for the local computer network adapter card was exceeded.

0x00000045

ERROR_TOO_MANY_SESS



The network BIOS session limit was exceeded.

0x00000046

ERROR_SHARING_PAUSED



The remote server has been paused or is in the process of being started.

0x00000047

ERROR_REQ_NOT_ACCEP



No more connections can be made to this remote computer at this time because the computer has accepted the maximum number of connections.

0x00000048

ERROR_REDIR_PAUSED



The specified printer or disk device has been paused.

0x00000050

ERROR_FILE_EXISTS



The file exists.

0x00000052

ERROR_CANNOT_MAKE



The directory or file cannot be created.

0x00000053

ERROR_FAIL_I24



Fail on INT 24.

0x00000054

ERROR_OUT_OF_STRUCTURES



Storage to process this request is not available.

0x00000055

ERROR_ALREADY_ASSIGNED



The local device name is already in use.

0x00000056

ERROR_INVALID_PASSWORD



The specified network password is not correct.

0x00000057

ERROR_INVALID_PARAMETER



The parameter is incorrect.

0x00000058

ERROR_NET_WRITE_FAULT



A write fault occurred on the network.

0x00000059

ERROR_NO_PROC_SLOTS



The system cannot start another process at this time.

0x00000064

ERROR_TOO_MANY_SEMAPHORES



Cannot create another system semaphore.

0x00000065

ERROR_EXCL_SEM_ALREADY_OWNED



The exclusive semaphore is owned by another process.

0x00000066

ERROR_SEM_IS_SET



The semaphore is set and cannot be closed.

0x00000067

ERROR_TOO_MANY_SEM_REQUESTS



The semaphore cannot be set again.

0x00000068

ERROR_INVALID_AT_INTERRUPT_TIME



Cannot request exclusive semaphores at interrupt time.

0x00000069

ERROR_SEM_OWNER_DIED



The previous ownership of this semaphore has ended.

0x0000006A

ERROR_SEM_USER_LIMIT



Insert the disk for drive %1.

0x0000006B

ERROR_DISK_CHANGE



The program stopped because an alternate disk was not inserted.

0x0000006C

ERROR_DRIVE_LOCKED



The disk is in use or locked by another process.

0x0000006D

ERROR_BROKEN_PIPE



The pipe has been ended.

0x0000006E

ERROR_OPEN_FAILED



The system cannot open the device or file specified.

0x0000006F

ERROR_BUFFER_OVERFLOW



The file name is too long.

0x00000070

ERROR_DISK_FULL



There is not enough space on the disk.

0x00000071

ERROR_NO_MORE_SEARCH_HANDLES



No more internal file identifiers are available.

0x00000072

ERROR_INVALID_TARGET_HANDLE



The target internal file identifier is incorrect.

0x00000075

ERROR_INVALID_CATEGORY



The Input Output Control (IOCTL) call made by the application program is not correct.

0x00000076

ERROR_INVALID_VERIFY_SWITCH



The verify-on-write switch parameter value is not correct.

0x00000077

ERROR_BAD_DRIVER_LEVEL



The system does not support the command requested.

0x00000078

ERROR_CALL_NOT_IMPLEMENTED



This function is not supported on this system.

0x00000079

ERROR_SEM_TIMEOUT



The semaphore time-out period has expired.

0x0000007A

ERROR_INSUFFICIENT_BUFFER



The data area passed to a system call is too small.

0x0000007B

ERROR_INVALID_NAME



The file name, directory name, or volume label syntax is incorrect.

0x0000007C

ERROR_INVALID_LEVEL



The system call level is not correct.

0x0000007D

ERROR_NO_VOLUME_LABEL



The disk has no volume label.

0x0000007E

ERROR_MOD_NOT_FOUND



The specified module could not be found.

0x0000007F

ERROR_PROC_NOT_FOUND



The specified procedure could not be found.

0x00000080

ERROR_WAIT_NO_CHILDREN



There are no child processes to wait for.

0x00000081

ERROR_CHILD_NOT_COMPLETE



The %1 application cannot be run in Win32 mode.

0x00000082

ERROR_DIRECT_ACCESS_HANDLE



Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.

0x00000083

ERROR_NEGATIVE_SEEK



An attempt was made to move the file pointer before the beginning of the file.

0x00000084

ERROR_SEEK_ON_DEVICE



The file pointer cannot be set on the specified device or file.

0x00000085

ERROR_IS_JOIN_TARGET



A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.

0x00000086

ERROR_IS_JOINED



An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.

0x00000087

ERROR_IS_SUBSTED



An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.

0x00000088

ERROR_NOT_JOINED



The system tried to delete the JOIN of a drive that is not joined.

0x00000089

ERROR_NOT_SUBSTED



The system tried to delete the substitution of a drive that is not substituted.

0x0000008A

ERROR_JOIN_TO_JOIN



The system tried to join a drive to a directory on a joined drive.

0x0000008B

ERROR_SUBST_TO_SUBST



The system tried to substitute a drive to a directory on a substituted drive.

0x0000008C

ERROR_JOIN_TO_SUBST



The system tried to join a drive to a directory on a substituted drive.

0x0000008D

ERROR_SUBST_TO_JOIN



The system tried to SUBST a drive to a directory on a joined drive.

0x0000008E

ERROR_BUSY_DRIVE



The system cannot perform a JOIN or SUBST at this time.

0x0000008F

ERROR_SAME_DRIVE



The system cannot join or substitute a drive to or for a directory on the same drive.

0x00000090

ERROR_DIR_NOT_ROOT



The directory is not a subdirectory of the root directory.

0x00000091

ERROR_DIR_NOT_EMPTY



The directory is not empty.

0x00000092

ERROR_IS_SUBST_PATH



The path specified is being used in a substitute.

0x00000093

ERROR_IS_JOIN_PATH



Not enough resources are available to process this command.

0x00000094

ERROR_PATH_BUSY



The path specified cannot be used at this time.




Share with your friends:
1   ...   19   20   21   22   23   24   25   26   ...   52


The database is protected by copyright ©dentisty.org 2019
send message

    Main page