Sent to a WIMMessageCallback function to alert the caller that an error occurred while capturing or applying an image.
WIM_MSG_ERROR wParam = (PWSTR) pszFullPath; lParam = (DWORD) dwWin32ErrorCode;
Parameters
wParam
[in] A pointer to a null-terminated string containing the full file path of the file that failed to be captured or applied.
lParam
[in] A DWORD value containing the Win32® error code indicating the cause of the failure.
Return Value
Your routine must return WIM_MSG_SUCCESS, unless the error is deemed non-fatal. If the error can be ignored, then return WIM_MSG_SKIP_ERROR, and the imaging operation continues.
Remarks
When this message is sent, an error is encountered that normally causes the imaging operation to fail. This is an opportunity for the calling application either to log an error or to skip the error.