Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.6 KiB

  1. #ifndef _ERRORS_H_
  2. #define _ERRORS_H_
  3. namespace UIErrors
  4. {
  5. // If you add to this list you must update the ErrorCodes[] array in errors.cpp
  6. enum WiaError
  7. {
  8. ErrDisconnected=0,
  9. ErrCommunicationsFailure,
  10. ErrStiCrashed,
  11. ErrStiBusy,
  12. ErrScanFailed
  13. };
  14. VOID ReportResult (HWND hwndParent, HINSTANCE hInst, HRESULT hr);
  15. VOID ReportMessage (HWND hwndParent, HINSTANCE hInst, LPCTSTR idIcon, LPCTSTR idTitle, LPCTSTR idMessage, DWORD dwStyle = 0);
  16. VOID ReportError (HWND hwndParent, HINSTANCE hInst, WiaError err);
  17. };
  18. // string resource identifiers
  19. // If you include this file, make sure these don't collide with your resource IDs
  20. #define UI_ERROR_MIN_ID 23000
  21. #define IDS_ERRTITLE_DISCONNECTED UI_ERROR_MIN_ID
  22. #define IDS_ERROR_DISCONNECTED UI_ERROR_MIN_ID+1
  23. #define IDS_ERRTITLE_COMMFAILURE UI_ERROR_MIN_ID+2
  24. #define IDS_ERROR_COMMFAILURE UI_ERROR_MIN_ID+3
  25. #define IDS_ERRTITLE_STICRASH UI_ERROR_MIN_ID+4
  26. #define IDS_ERROR_STICRASH UI_ERROR_MIN_ID+5
  27. #define IDS_ERRTITLE_STIBUSY UI_ERROR_MIN_ID+6
  28. #define IDS_ERROR_STIBUSY UI_ERROR_MIN_ID+7
  29. #define IDS_ERRTITLE_SCANFAIL UI_ERROR_MIN_ID+8
  30. #define IDS_ERROR_SCANFAIL UI_ERROR_MIN_ID+9
  31. #define IDS_ERRTITLE_HRESULT UI_ERROR_MIN_ID+10
  32. #define IDS_ERRTITLE_UNKNOWNERR UI_ERROR_MIN_ID+11
  33. #define IDS_ERROR_UNKNOWNERR UI_ERROR_MIN_ID+12
  34. //
  35. // Straight mapping between WIA errors and strings
  36. //
  37. #define IDS_WIA_ERROR_GENERAL_ERROR UI_ERROR_MIN_ID+32
  38. #define IDS_WIA_ERROR_PAPER_JAM UI_ERROR_MIN_ID+33
  39. #define IDS_WIA_ERROR_PAPER_EMPTY UI_ERROR_MIN_ID+34
  40. #define IDS_WIA_ERROR_PAPER_PROBLEM UI_ERROR_MIN_ID+35
  41. #define IDS_WIA_ERROR_OFFLINE UI_ERROR_MIN_ID+36
  42. #define IDS_WIA_ERROR_BUSY UI_ERROR_MIN_ID+37
  43. #define IDS_WIA_ERROR_WARMING_UP UI_ERROR_MIN_ID+38
  44. #define IDS_WIA_ERROR_USER_INTERVENTION UI_ERROR_MIN_ID+39
  45. #define IDS_WIA_ERROR_ITEM_DELETED UI_ERROR_MIN_ID+40
  46. #define IDS_WIA_ERROR_DEVICE_COMMUNICATION UI_ERROR_MIN_ID+41
  47. #define IDS_WIA_ERROR_INVALID_COMMAND UI_ERROR_MIN_ID+42
  48. #define IDS_WIA_ERROR_INCORRECT_HARDWARE_SETTING UI_ERROR_MIN_ID+43
  49. #define IDS_WIA_ERROR_DEVICE_LOCKED UI_ERROR_MIN_ID+44
  50. #define UI_ERROR_MAX_ID UI_ERROR_MIN_ID+44
  51. #endif