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. 0x000000...
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. 0x000000...
WIN32-ERROR-Code Win32 Error Codes The following table provides a list of Win32 error codes. Code 0 1 2 3 4 5 6 7 8 9 10 11 Description The operation completed successfully. Incorrect function. The system cannot find the file specified. The system cannot find the path specified. The ...
Win32 Error Code和NTSTATUS位域组成相同,但Win32 Error Code的取值范围只能在0x00000000---0x0000FFFF Win32 Error Code和COM Error Code,在高2位定义不同,设备来源值可能一样,但代表的设备不一样,设备来源值位数也不一样,但它们又可以互相转换。它们实际上的定义都是LONG型的,都是通过相关的API函数返回值返回...
CodeDescriptionName 0Theoperationcompleted successfully. ERROR_SUCCESS 1Incorrectfunction.ERROR_INVALID_FUNCTION 2Thesystemcannotfindthefile specified. ERROR_FILE_NOT_FOUND 3Thesystemcannotfindthe pathspecified. ERROR_PATH_NOT_FOUND 4Thesystemcannotopenthe ...
ERROR_IPSEC_MM_AUTH_NOT_FOUND 13011 (0x32D3) The specified main mode authentication list was not found. ERROR_IPSEC_MM_AUTH_IN_USE 13012 (0x32D4) The specified main mode authentication list is being used. ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND 13013 (0x32D5) The specified default main...
ERROR_INVALID_FUNCTION 1 (0x1) 函数不正确。 ERROR_FILE_NOT_FOUND 2 (0x2) 系统找不到指定的文件。 ERROR_PATH_NOT_FOUND 3 (0x3) 系统找不到指定的路径。 ERROR_TOO_MANY_OPEN_FILES 4 (0x4) 系统无法打开该文件。 ERROR_ACCESS_DENIED 5 (0x5) 访问被拒绝。 ...
ERROR_DS_CODE_INCONSISTENCY 8408 (0x20D8) 發生內部錯誤。 ERROR_DS_DATABASE_ERROR 8409 (0x20D9) 發生資料庫錯誤。 ERROR_DS_GOVERNSID_MISSING 8410 (0x20DA) 屬性GOVERNSID 遺失。 ERROR_DS_MISSING_EXPECTED_ATT 8411 (0x20DB) 遺漏預期的屬性。 ERROR_DS_NCNAME_MISSING_CR...
# Calls a function, passing it information about a Win32 error code. # get_OS_error_info(errcode,func); # > errcode: error code # > func: will be called with name and msg (if available) as arguments typedef void OS_error_info_callback (const char* name, const char* msg); local...
// Wrong.HRESULT hr = SomeFunction();if(hr != S_OK) {printf("Error!\n");// Bad. hr might be another success code.}// Right.HRESULT hr = SomeFunction();if(FAILED(hr)) {printf("Error!\n"); } 成功程式代碼S_FALSE值得提及。 某些方法會使用S_FALSE來粗略表示不是失敗的負面狀況。