Partager via


2.2.6 Common Error Codes

Unless otherwise specified, the methods of the Windows Remote Registry Protocol MUST return 0 to indicate success and a nonzero implementation-specific value to indicate failure in the error_status_t return code of the response. All failure values MUST be treated as equivalent for protocol purposes and SHOULD simply be passed back to the invoking application.

Any implementation SHOULD return one of the following error codes.

Value

Description

ERROR_ACCESS_DENIED

0x00000005 (Decimal: 5)

Access is denied.

 ERROR_INVALID_PARAMETER

0x00000057 (Decimal: 87)

The parameter is incorrect.

 ERROR_CALL_NOT_IMPLEMENTED

0x00000078 (Decimal: 120)

The method is not valid.

 ERROR_KEY_DELETED

0x000003FA (Decimal: 1018)

An illegal operation was attempted on a registry key that is pending delete.