Changeset 8702 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 8, 2008 12:45:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/err/errmsgxpcom.cpp
r8686 r8702 46 46 static const RTCOMERRMSG g_aStatusMsgs[] = 47 47 { 48 { "NS_OK", "Success", UINT32_C(0x00000000) }, 49 { "NS_ERROR_NOT_IMPLEMENTED", "Not implemented", UINT32_C(0x80004001) }, 50 { "NS_ERROR_NO_INTERFACE", "Interface not supported", UINT32_C(0x80004002) }, 51 { "NS_ERROR_INVALID_POINTER", "Invalid pointer value", UINT32_C(0x80004003) }, 52 { "NS_ERROR_ABORT", "Operation aborted", UINT32_C(0x80004004) }, 53 { "NS_ERROR_FAILURE", "Operation failed", UINT32_C(0x80004005) }, 54 { "NS_ERROR_UNEXPECTED", "Unexpected error", UINT32_C(0x8000ffff) }, 48 #define MY_ERR(_def, _desc, _val) { _desc, _def, _val } 55 49 56 { "NS_ERROR_CANNOT_CONVERT_DATA", "Cannot convert data", UINT32_C(0x80010001) }, 57 { "NS_ERROR_OBJECT_IS_IMMUTABLE", "Object is immutable", UINT32_C(0x80010002) }, 58 { "NS_ERROR_LOSS_OF_SIGNIFICANT_DATA", "Loss of significant data", UINT32_C(0x80010003) }, 59 { "NS_ERROR_PROXY_INVALID_IN_PARAMETER","Cannot proxy an IN parameter", UINT32_C(0x80010010) }, 60 { "NS_ERROR_PROXY_INVALID_OUT_PARAMETER", "Cannot proxy an OUT parameter", UINT32_C(0x80010011) }, 61 { "NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA", "Loss of insignificant data", UINT32_C(0x00010001) }, 50 MY_ERR("NS_OK", "Success", UINT32_C(0x00000000)), 51 MY_ERR("NS_ERROR_NOT_IMPLEMENTED", "Not implemented", UINT32_C(0x80004001)), 52 MY_ERR("NS_ERROR_NO_INTERFACE", "Interface not supported", UINT32_C(0x80004002)), 53 MY_ERR("NS_ERROR_INVALID_POINTER", "Invalid pointer value", UINT32_C(0x80004003)), 54 MY_ERR("NS_ERROR_ABORT", "Operation aborted", UINT32_C(0x80004004)), 55 MY_ERR("NS_ERROR_FAILURE", "Operation failed", UINT32_C(0x80004005)), 56 MY_ERR("NS_ERROR_UNEXPECTED", "Unexpected error", UINT32_C(0x8000ffff)), 62 57 63 { "E_ACCESSDENIED", "Access denied", UINT32_C(0x80070005) }, /* VirtualBox addition */ 64 { "NS_ERROR_OUT_OF_MEMORY", "Memory allocation failed", UINT32_C(0x8007000e) }, 65 { "NS_ERROR_INVALID_ARG", "Invalid argument value", UINT32_C(0x80070057) }, 58 MY_ERR("NS_ERROR_CANNOT_CONVERT_DATA", "Cannot convert data", UINT32_C(0x80010001)), 59 MY_ERR("NS_ERROR_OBJECT_IS_IMMUTABLE", "Object is immutable", UINT32_C(0x80010002)), 60 MY_ERR("NS_ERROR_LOSS_OF_SIGNIFICANT_DATA", "Loss of significant data", UINT32_C(0x80010003)), 61 MY_ERR("NS_ERROR_PROXY_INVALID_IN_PARAMETER", "Cannot proxy an IN parameter", UINT32_C(0x80010010)), 62 MY_ERR("NS_ERROR_PROXY_INVALID_OUT_PARAMETER", "Cannot proxy an OUT parameter", UINT32_C(0x80010011)), 63 MY_ERR("NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA", "Loss of insignificant data", UINT32_C(0x00010001)), 66 64 67 { "NS_ERROR_NO_AGGREGATION", "Class does not allow aggregation", UINT32_C(0x80040110) }, 68 { "NS_ERROR_NOT_AVAILABLE", "Resource not available", UINT32_C(0x80040111) }, 69 { "NS_ERROR_FACTORY_NOT_REGISTERED", "Class not registered", UINT32_C(0x80040154) }, 70 { "NS_ERROR_FACTORY_REGISTER_AGAIN", "Cannot be registered, try again later", UINT32_C(0x80040155) }, 71 { "NS_ERROR_FACTORY_NOT_LOADED", "Dynamically loaded factory cannot be found", UINT32_C(0x800401f8) }, 72 { "NS_ERROR_FACTORY_EXISTS", "Factory already exists", UINT32_C(0xc1f30100) }, 73 { "NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT", "Factory does not support signatures", UINT32_C(0xc1f30101) }, 74 { "NS_ERROR_NOT_INITIALIZED", "Instance not initialized", UINT32_C(0xc1f30001) }, 75 { "NS_ERROR_ALREADY_INITIALIZED", "Instance already initialized", UINT32_C(0xc1f30002) }, 65 MY_ERR("E_ACCESSDENIED", "Access denied", UINT32_C(0x80070005)), /* VirtualBox addition */ 66 MY_ERR("NS_ERROR_OUT_OF_MEMORY", "Memory allocation failed", UINT32_C(0x8007000e)), 67 MY_ERR("NS_ERROR_INVALID_ARG", "Invalid argument value", UINT32_C(0x80070057)), 76 68 77 { "NS_BASE_STREAM_CLOSED", "Stream closed", UINT32_C(0x80470002) }, 78 { "NS_BASE_STREAM_OSERROR", "Operative system stream error", UINT32_C(0x80470003) }, 79 { "NS_BASE_STREAM_ILLEGAL_ARGS", "Illegal argument to stream method", UINT32_C(0x80470004) }, 80 { "NS_BASE_STREAM_NO_CONVERTER", "No stream converter", UINT32_C(0x80470005) }, 81 { "NS_BASE_STREAM_BAD_CONVERSION", "Badstream conversion", UINT32_C(0x80470006) }, 82 { "NS_BASE_STREAM_WOULD_BLOCK", "Stream operation would block", UINT32_C(0x80470007) }, 69 MY_ERR("NS_ERROR_NO_AGGREGATION", "Class does not allow aggregation", UINT32_C(0x80040110)), 70 MY_ERR("NS_ERROR_NOT_AVAILABLE", "Resource not available", UINT32_C(0x80040111)), 71 MY_ERR("NS_ERROR_FACTORY_NOT_REGISTERED", "Class not registered", UINT32_C(0x80040154)), 72 MY_ERR("NS_ERROR_FACTORY_REGISTER_AGAIN", "Cannot be registered, try again later", UINT32_C(0x80040155)), 73 MY_ERR("NS_ERROR_FACTORY_NOT_LOADED", "Dynamically loaded factory cannot be found", UINT32_C(0x800401f8)), 74 MY_ERR("NS_ERROR_FACTORY_EXISTS", "Factory already exists", UINT32_C(0xc1f30100)), 75 MY_ERR("NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT", "Factory does not support signatures", UINT32_C(0xc1f30101)), 76 MY_ERR("NS_ERROR_NOT_INITIALIZED", "Instance not initialized", UINT32_C(0xc1f30001)), 77 MY_ERR("NS_ERROR_ALREADY_INITIALIZED", "Instance already initialized", UINT32_C(0xc1f30002)), 83 78 84 { "NS_ERROR_FILE_UNRECOGNIZED_PATH", "Unrecognized path", UINT32_C(0x80520001) }, 85 { "NS_ERROR_FILE_UNRESOLVABLE_SYMLINK", "NS_ERROR_FILE_UNRESOLVABLE_SYMLINK", UINT32_C(0x80520002) }, 86 { "NS_ERROR_FILE_EXECUTION_FAILED", "NS_ERROR_FILE_EXECUTION_FAILED", UINT32_C(0x80520003) }, 87 { "NS_ERROR_FILE_UNKNOWN_TYPE", "NS_ERROR_FILE_UNKNOWN_TYPE", UINT32_C(0x80520004) }, 88 { "NS_ERROR_FILE_DESTINATION_NOT_DIR", "NS_ERROR_FILE_DESTINATION_NOT_DIR", UINT32_C(0x80520005) }, 89 { "NS_ERROR_FILE_TARGET_DOES_NOT_EXIST","NS_ERROR_FILE_TARGET_DOES_NOT_EXIST", UINT32_C(0x80520006) }, 90 { "NS_ERROR_FILE_COPY_OR_MOVE_FAILED", "NS_ERROR_FILE_COPY_OR_MOVE_FAILED", UINT32_C(0x80520007) }, 91 { "NS_ERROR_FILE_ALREADY_EXISTS", "NS_ERROR_FILE_ALREADY_EXISTS", UINT32_C(0x80520008) }, 92 { "NS_ERROR_FILE_INVALID_PATH", "NS_ERROR_FILE_INVALID_PATH", UINT32_C(0x80520009) }, 93 { "NS_ERROR_FILE_DISK_FULL", "NS_ERROR_FILE_DISK_FULL", UINT32_C(0x8052000a) }, 94 { "NS_ERROR_FILE_CORRUPTED", "NS_ERROR_FILE_CORRUPTED", UINT32_C(0x8052000b) }, 95 { "NS_ERROR_FILE_NOT_DIRECTORY", "NS_ERROR_FILE_NOT_DIRECTORY", UINT32_C(0x8052000c) }, 96 { "NS_ERROR_FILE_IS_DIRECTORY", "NS_ERROR_FILE_IS_DIRECTORY", UINT32_C(0x8052000d) }, 97 { "NS_ERROR_FILE_IS_LOCKED", "NS_ERROR_FILE_IS_LOCKED", UINT32_C(0x8052000e) }, 98 { "NS_ERROR_FILE_TOO_BIG", "NS_ERROR_FILE_TOO_BIG", UINT32_C(0x8052000f) }, 99 { "NS_ERROR_FILE_NO_DEVICE_SPACE", "NS_ERROR_FILE_NO_DEVICE_SPACE", UINT32_C(0x80520010) }, 100 { "NS_ERROR_FILE_NAME_TOO_LONG", "NS_ERROR_FILE_NAME_TOO_LONG", UINT32_C(0x80520011) }, 101 { "NS_ERROR_FILE_NOT_FOUND", "NS_ERROR_FILE_NOT_FOUND", UINT32_C(0x80520012) }, 102 { "NS_ERROR_FILE_READ_ONLY", "NS_ERROR_FILE_READ_ONLY", UINT32_C(0x80520013) }, 103 { "NS_ERROR_FILE_DIR_NOT_EMPTY", "NS_ERROR_FILE_DIR_NOT_EMPTY", UINT32_C(0x80520014) }, 104 { "NS_ERROR_FILE_ACCESS_DENIED", "NS_ERROR_FILE_ACCESS_DENIED", UINT32_C(0x80520015) }, 105 { "NS_SUCCESS_FILE_DIRECTORY_EMPTY", "NS_SUCCESS_FILE_DIRECTORY_EMPTY", UINT32_C(0x00520001) }, 79 MY_ERR("NS_BASE_STREAM_CLOSED", "Stream closed", UINT32_C(0x80470002)), 80 MY_ERR("NS_BASE_STREAM_OSERROR", "Operative system stream error", UINT32_C(0x80470003)), 81 MY_ERR("NS_BASE_STREAM_ILLEGAL_ARGS", "Illegal argument to stream method", UINT32_C(0x80470004)), 82 MY_ERR("NS_BASE_STREAM_NO_CONVERTER", "No stream converter", UINT32_C(0x80470005)), 83 MY_ERR("NS_BASE_STREAM_BAD_CONVERSION", "Badstream conversion", UINT32_C(0x80470006)), 84 MY_ERR("NS_BASE_STREAM_WOULD_BLOCK", "Stream operation would block", UINT32_C(0x80470007)), 85 86 MY_ERR("NS_ERROR_FILE_UNRECOGNIZED_PATH", "Unrecognized path", UINT32_C(0x80520001)), 87 MY_ERR("NS_ERROR_FILE_UNRESOLVABLE_SYMLINK", "NS_ERROR_FILE_UNRESOLVABLE_SYMLINK", UINT32_C(0x80520002)), 88 MY_ERR("NS_ERROR_FILE_EXECUTION_FAILED", "NS_ERROR_FILE_EXECUTION_FAILED", UINT32_C(0x80520003)), 89 MY_ERR("NS_ERROR_FILE_UNKNOWN_TYPE", "NS_ERROR_FILE_UNKNOWN_TYPE", UINT32_C(0x80520004)), 90 MY_ERR("NS_ERROR_FILE_DESTINATION_NOT_DIR", "NS_ERROR_FILE_DESTINATION_NOT_DIR", UINT32_C(0x80520005)), 91 MY_ERR("NS_ERROR_FILE_TARGET_DOES_NOT_EXIST", "NS_ERROR_FILE_TARGET_DOES_NOT_EXIST", UINT32_C(0x80520006)), 92 MY_ERR("NS_ERROR_FILE_COPY_OR_MOVE_FAILED", "NS_ERROR_FILE_COPY_OR_MOVE_FAILED", UINT32_C(0x80520007)), 93 MY_ERR("NS_ERROR_FILE_ALREADY_EXISTS", "NS_ERROR_FILE_ALREADY_EXISTS", UINT32_C(0x80520008)), 94 MY_ERR("NS_ERROR_FILE_INVALID_PATH", "NS_ERROR_FILE_INVALID_PATH", UINT32_C(0x80520009)), 95 MY_ERR("NS_ERROR_FILE_DISK_FULL", "NS_ERROR_FILE_DISK_FULL", UINT32_C(0x8052000a)), 96 MY_ERR("NS_ERROR_FILE_CORRUPTED", "NS_ERROR_FILE_CORRUPTED", UINT32_C(0x8052000b)), 97 MY_ERR("NS_ERROR_FILE_NOT_DIRECTORY", "NS_ERROR_FILE_NOT_DIRECTORY", UINT32_C(0x8052000c)), 98 MY_ERR("NS_ERROR_FILE_IS_DIRECTORY", "NS_ERROR_FILE_IS_DIRECTORY", UINT32_C(0x8052000d)), 99 MY_ERR("NS_ERROR_FILE_IS_LOCKED", "NS_ERROR_FILE_IS_LOCKED", UINT32_C(0x8052000e)), 100 MY_ERR("NS_ERROR_FILE_TOO_BIG", "NS_ERROR_FILE_TOO_BIG", UINT32_C(0x8052000f)), 101 MY_ERR("NS_ERROR_FILE_NO_DEVICE_SPACE", "NS_ERROR_FILE_NO_DEVICE_SPACE", UINT32_C(0x80520010)), 102 MY_ERR("NS_ERROR_FILE_NAME_TOO_LONG", "NS_ERROR_FILE_NAME_TOO_LONG", UINT32_C(0x80520011)), 103 MY_ERR("NS_ERROR_FILE_NOT_FOUND", "NS_ERROR_FILE_NOT_FOUND", UINT32_C(0x80520012)), 104 MY_ERR("NS_ERROR_FILE_READ_ONLY", "NS_ERROR_FILE_READ_ONLY", UINT32_C(0x80520013)), 105 MY_ERR("NS_ERROR_FILE_DIR_NOT_EMPTY", "NS_ERROR_FILE_DIR_NOT_EMPTY", UINT32_C(0x80520014)), 106 MY_ERR("NS_ERROR_FILE_ACCESS_DENIED", "NS_ERROR_FILE_ACCESS_DENIED", UINT32_C(0x80520015)), 107 MY_ERR("NS_SUCCESS_FILE_DIRECTORY_EMPTY", "NS_SUCCESS_FILE_DIRECTORY_EMPTY", UINT32_C(0x00520001)), 106 108 107 109 { NULL, NULL, 0 } 110 #undef MY_ERR 108 111 }; 109 112 … … 112 115 * @{ 113 116 */ 114 static char g_aszUnknownStr[ 4][64];115 static RTCOMERRMSG g_aUnknownMsgs[ 4] =117 static char g_aszUnknownStr[8][64]; 118 static RTCOMERRMSG g_aUnknownMsgs[8] = 116 119 { 117 120 { &g_aszUnknownStr[0][0], &g_aszUnknownStr[0][0], 0 }, 118 121 { &g_aszUnknownStr[1][0], &g_aszUnknownStr[1][0], 0 }, 119 122 { &g_aszUnknownStr[2][0], &g_aszUnknownStr[2][0], 0 }, 120 { &g_aszUnknownStr[3][0], &g_aszUnknownStr[3][0], 0 } 123 { &g_aszUnknownStr[3][0], &g_aszUnknownStr[3][0], 0 }, 124 { &g_aszUnknownStr[4][0], &g_aszUnknownStr[4][0], 0 }, 125 { &g_aszUnknownStr[5][0], &g_aszUnknownStr[5][0], 0 }, 126 { &g_aszUnknownStr[6][0], &g_aszUnknownStr[6][0], 0 }, 127 { &g_aszUnknownStr[7][0], &g_aszUnknownStr[7][0], 0 } 121 128 }; 122 129 /** Last used index in g_aUnknownMsgs. */
Note:
See TracChangeset
for help on using the changeset viewer.