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.

64 lines
3.1 KiB

  1. #ifndef drmerrs_h
  2. #define drmerrs_h
  3. typedef long DRM_STATUS;
  4. // bug - don't know how to assign this
  5. #define DRM_ERROR_ROOT 0x80000000
  6. // DRM-generated errors
  7. #define DRM_OK 0
  8. #define DRM_SYSERR DRM_ERROR_ROOT + 100 // bad - assert-like error
  9. #define DRM_KRM_NOT_RUNNING DRM_ERROR_ROOT + 101
  10. #define DRM_KRM_COMMS DRM_ERROR_ROOT + 102
  11. #define DRM_FILENOTFOUND DRM_ERROR_ROOT + 103
  12. #define DRM_FILEERR DRM_ERROR_ROOT + 104
  13. #define DRM_BADFILE DRM_ERROR_ROOT + 105
  14. #define DRM_BADTYPE DRM_ERROR_ROOT + 106
  15. #define DRM_DEVENUMERATE DRM_ERROR_ROOT + 107
  16. #define DRM_DEVDETAIL DRM_ERROR_ROOT + 108
  17. #define DRM_KRMNOTFOUND DRM_ERROR_ROOT + 109
  18. #define DRM_NOTTRUSTED DRM_ERROR_ROOT + 110
  19. #define DRM_FILENOTINCAT DRM_ERROR_ROOT + 111
  20. #define DRM_BADHANDLE DRM_ERROR_ROOT + 112
  21. #define DRM_AUTHFAILURE DRM_ERROR_ROOT + 113
  22. #define DRM_BADDRIVER DRM_ERROR_ROOT + 114
  23. #define DRM_BADPARAM DRM_ERROR_ROOT + 115
  24. #define DRM_BADKRMCERTSIG DRM_ERROR_ROOT + 116
  25. #define DRM_BADKRMCERT DRM_ERROR_ROOT + 117
  26. #define DRM_OUTOFMEMORY DRM_ERROR_ROOT + 118
  27. #define DRM_BADLIBRARY DRM_ERROR_ROOT + 119
  28. #define DRM_MISSINGLIBRARY DRM_ERROR_ROOT + 120
  29. #define DRM_MISSINGDLL DRM_ERROR_ROOT + 122
  30. #define DRM_BADPROVINGFUNCTION DRM_ERROR_ROOT + 123
  31. #define DRM_DATALENGTH DRM_ERROR_ROOT + 124
  32. #define DRM_BUFSIZE DRM_ERROR_ROOT + 125
  33. #define DRM_AUTHREQUIRED DRM_ERROR_ROOT + 126
  34. #define DRM_BADDRMLEVEL DRM_ERROR_ROOT + 127
  35. #define DRM_NODRMATTRIB DRM_ERROR_ROOT + 128
  36. #define DRM_RIGHTSNOTSUPPORTED DRM_ERROR_ROOT + 129
  37. #define DRM_VERIFIERENABLED DRM_ERROR_ROOT + 130
  38. // KRM-DRM comms
  39. #define KRM_OK 0
  40. #define KRM_BADIOCTL DRM_ERROR_ROOT + 200
  41. #define KRM_BUFSIZE DRM_ERROR_ROOT + 201
  42. #define KRM_BADALIGNMENT DRM_ERROR_ROOT + 202
  43. #define KRM_BADADDRESS DRM_ERROR_ROOT + 203
  44. #define KRM_OUTOFHANDLES DRM_ERROR_ROOT + 204
  45. #define KRM_BADSTREAM DRM_ERROR_ROOT + 205
  46. #define KRM_SYSERR DRM_ERROR_ROOT + 206 // bad - assert-like error
  47. #define DRM_BADKRMVERSION DRM_ERROR_ROOT + 207
  48. #define KRM_BADTERMINATOR DRM_ERROR_ROOT + 208
  49. // mist KRM errors
  50. #define KRM_NOTPRIMARY DRM_ERROR_ROOT + 300
  51. // macros
  52. #define KRM_SUCCESS(x) (KRM_OK == x)
  53. // DRM Errors that will be propaged to users
  54. #define DRM_INVALIDPROVING DRM_ERROR_ROOT + 1000 // Proving function is not in text seg
  55. #define DRM_BADIMAGE DRM_ERROR_ROOT + 1001 // Image digest does not match PE file
  56. #endif