Sent to a WIMMessageCallback function to alert the caller that an error occurred while capturing or applying an image.


  wParam = (PWSTR) pszFullPath;
  lParam = (DWORD)  dwWin32ErrorCode;



[in] A pointer to a null-terminated string containing the full file path of the file that failed to be captured or applied.


[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.


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.

See Also