Windows


- 2


32- .

Windows, , ( 21.) , . , , - . , GetLastError.

DWORDGetLastError();

32- .

, , - . , Microsoft, WinError.h. , ,


//MessageId:ERROR_SUCCESS // //MessageText: // //Theoperationcompletedsuccessfully. // #defineERROR_SUCCESS0L

#defineNO_ERROR0L//dderror #defineSEC_E_OK((HRESULT)0x00000000L)

// //MessageId:ERROR_INVALID_FUNCTION // //MessageText: // //Incorrectfunction. // #defineERROR_INVALID_FUNCTION1L//dderror

// //MessageId:ERROR_FILE_NOT_FOUND // //MessageText: // //Thesystemcannotfindthefilespecified. // #defineERROR_FILE_NOT_FOUND2L

// //MessageId:ERROR_PATH_NOT_FOUND // //MessageText: // //Thesystemcannotfindthepathspecified. // #defineERROR_PATH_NOT_FOUND3L

// //MessageId:ERROR_TOO_MANY_OPEN_FILES // //MessageText: // //Thesystemcannotopenthefile. // #defineERROR_TOO_MANY_OPEN_FILES4L

// //MessageId:ERROR_ACCESS_DENIED // //MessageText: // //Accessisdenied. // #defineERROR_ACCESS_DENIED5L

, ( , GetLastError), ( ) ( ).