Source code of Windows XP (NT5)
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.

159 lines
5.5 KiB

  1. ;---------------------------------------------------------------------------
  2. ; Added for Win 31 style Parameter Validation.
  3. ;
  4. ; Note: This file was copied AS IT IS from Win 31 golden sources and MUST
  5. ; NOT be changed unless it changes in Win 31.
  6. ;
  7. ; History : Added on 14-April-92 by Chandan Chauhan (ChandanC)
  8. ;
  9. ;---------------------------------------------------------------------------
  10. ;/****** LogParamError/LogError values */
  11. ;/* Error modifier bits */
  12. ERR_WARNING equ 08000h
  13. ERR_PARAM equ 04000h
  14. ;/* Internal error value masks */ ;/* ;Internal */
  15. ERR_TYPE_MASK equ 00fffh ;/* ;Internal */
  16. ERR_FLAGS_MASK equ 0c000h ;/* ;Internal */
  17. ;/* ;Internal */
  18. ERR_SIZE_MASK equ 03000h
  19. ERR_SIZE_SHIFT equ 12
  20. ERR_BYTE equ 01000h
  21. ERR_WORD equ 02000h
  22. ERR_DWORD equ 03000h
  23. ;/****** LogParamError() values */
  24. ;/* Generic parameter values */
  25. ERR_BAD_VALUE equ 06001h
  26. ERR_BAD_FLAGS equ 06002h
  27. ERR_BAD_INDEX equ 06003h
  28. ERR_BAD_DVALUE equ 07004h
  29. ERR_BAD_DFLAGS equ 07005h
  30. ERR_BAD_DINDEX equ 07006h
  31. ERR_BAD_PTR equ 07007h
  32. ERR_BAD_FUNC_PTR equ 07008h
  33. ERR_BAD_SELECTOR equ 06009h
  34. ERR_BAD_STRING_PTR equ 0700ah
  35. ERR_BAD_HANDLE equ 0600bh
  36. ;/* KERNEL parameter errors */
  37. ERR_BAD_HINSTANCE equ 06020h
  38. ERR_BAD_HMODULE equ 06021h
  39. ERR_BAD_GLOBAL_HANDLE equ 06022h
  40. ERR_BAD_LOCAL_HANDLE equ 06023h
  41. ERR_BAD_ATOM equ 06024h
  42. ERR_BAD_HFILE equ 06025h
  43. ;/* USER parameter errors */
  44. ERR_BAD_HWND equ 06040h
  45. ERR_BAD_HMENU equ 06041h
  46. ERR_BAD_HCURSOR equ 06042h
  47. ERR_BAD_HICON equ 06043h
  48. ERR_BAD_HDWP equ 06044h
  49. ERR_BAD_CID equ 06045h
  50. ERR_BAD_HDRVR equ 06046h
  51. ;/* GDI parameter errors */
  52. ERR_BAD_COORDS equ 07060h
  53. ERR_BAD_GDI_OBJECT equ 06061h
  54. ERR_BAD_HDC equ 06062h
  55. ERR_BAD_HPEN equ 06063h
  56. ERR_BAD_HFONT equ 06064h
  57. ERR_BAD_HBRUSH equ 06065h
  58. ERR_BAD_HBITMAP equ 06066h
  59. ERR_BAD_HRGN equ 06067h
  60. ERR_BAD_HPALETTE equ 06068h
  61. ERR_BAD_HMETAFILE equ 06069h
  62. ;/* Debug fill constants */
  63. DBGFILL_ALLOC equ 0fdh
  64. DBGFILL_FREE equ 0fbh
  65. DBGFILL_BUFFER equ 0f9h
  66. DBGFILL_STACK equ 0f7h
  67. ;/**** LogError() values */
  68. ;/* KERNEL errors */
  69. ERR_GALLOC equ 00001h ;/* GlobalAlloc Failed */
  70. ERR_GREALLOC equ 00002h ;/* GlobalReAlloc Failed */
  71. ERR_GLOCK equ 00003h ;/* GlobalLock Failed */
  72. ERR_LALLOC equ 00004h ;/* LocalAlloc Failed */
  73. ERR_LREALLOC equ 00005h ;/* LocalReAlloc Failed */
  74. ERR_LLOCK equ 00006h ;/* LocalLock Failed */
  75. ERR_ALLOCRES equ 00007h ;/* AllocResource Failed */
  76. ERR_LOCKRES equ 00008h ;/* LockResource Failed */
  77. ERR_LOADMODULE equ 00009h ;/* LoadModule failed */
  78. ;/* USER errors */
  79. ERR_CREATEDLG equ 00040h ;/* Create Dlg failure due to LoadMenu failure */
  80. ERR_CREATEDLG2 equ 00041h ;/* Create Dlg failure due to CreateWindow Failure */
  81. ERR_REGISTERCLASS equ 00042h ;/* RegisterClass failure due to Class already registered */
  82. ERR_DCBUSY equ 00043h ;/* DC Cache is full */
  83. ERR_CREATEWND equ 00044h ;/* Create Wnd failed due to class not found */
  84. ERR_STRUCEXTRA equ 00045h ;/* Unallocated Extra space is used */
  85. ERR_LOADSTR equ 00046h ;/* LoadString() failed */
  86. ERR_LOADMENU equ 00047h ;/* LoadMenu Failed */
  87. ERR_NESTEDBEGINPAINT equ 00048h ;/* Nested BeginPaint() calls */
  88. ERR_BADINDEX equ 00049h ;/* Bad index to Get/Set Class/Window Word/Long */
  89. ERR_CREATEMENU equ 0004ah ;/* Error creating menu */
  90. ;/* GDI errors */
  91. ERR_CREATEDC equ 00080h ;/* CreateDC/CreateIC etc., failure */
  92. ERR_CREATEMETA equ 00081h ;/* CreateMetafile failure */
  93. ERR_DELOBJSELECTED equ 00082h ;/* Bitmap being deleted is selected into DC */
  94. ERR_SELBITMAP equ 00083h ;/* Bitmap being selected is already selected elsewhere */
  95. ;****** DebugOutput definitions
  96. ; [Windows] DebugOptions field values
  97. DBO_CHECKHEAP equ 00001h
  98. DBO_BUFFERFILL equ 00004h
  99. DBO_COMPAT equ 00008h
  100. DBO_DISABLEGPTRAPPING equ 00010h
  101. DBO_CHECKFREE equ 00020h
  102. DBO_RIP_STACK equ 00040h
  103. DBO_SILENT equ 08000h
  104. DBO_PARAMBREAK equ 00000h ; Obsolete: was 04000h
  105. DBO_TRACEBREAK equ 02000h
  106. DBO_WARNINGBREAK equ 01000h
  107. DBO_NOERRORBREAK equ 00800h
  108. DBO_NOFATALBREAK equ 00400h
  109. DBO_TRACEON equ 00000h ; Obsolete: was 00200h
  110. DBO_INT3BREAK equ 00100h
  111. ; flags values
  112. DBF_TRACE equ 00000h
  113. DBF_WARNING equ 04000h
  114. DBF_ERROR equ 08000h
  115. DBF_FATAL equ 0c000h
  116. DBF_SEVMASK equ 0c000h
  117. DBF_FILTERMASK equ 03fffh
  118. ; [Windows] DebugFilter and flags values
  119. DBF_INTERNAL equ 00000h ; Obsolete: was 02000h
  120. DBF_KERNEL equ 01000h
  121. DBF_KRN_MEMMAN equ 00001h
  122. DBF_KRN_LOADMODULE equ 00002h
  123. DBF_KRN_SEGMENTLOAD equ 00004h
  124. DBF_USER equ 00800h
  125. DBF_GDI equ 00400h
  126. DBF_COMPAT equ 00000h ; Obsolete: was 00200h
  127. DBF_LOGERROR equ 00000h ; Obsolete: was 00100h
  128. DBF_PARAMERROR equ 00000h ; Obsolete: was 00080h
  129. DBF_MMSYSTEM equ 00040h
  130. DBF_PENWIN equ 00020h
  131. DBF_APPLICATION equ 00010h
  132. DBF_DRIVER equ 00008h