Browse Source

+ Added acces violation reasons

git-svn-id: trunk@5168 -
Marc Weustink 19 năm trước cách đây
mục cha
commit
53e7596e3d
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      rtl/win/wininc/defines.inc

+ 10 - 0
rtl/win/wininc/defines.inc

@@ -5390,6 +5390,16 @@ Const
   DECLARE_HANDLE(HANDLE);
   #endif
    *)
+   
+   
+  const
+     EXCEPTION_READ_FAULT    = 0; // Access violation was caused by a read
+     EXCEPTION_WRITE_FAULT   = 1; // Access violation was caused by a write
+     {$ifdef cpuia64}
+     EXCEPTION_EXECUTE_FAULT = 2; // Access violation was caused by an instruction fetch
+     {$else}
+     EXCEPTION_EXECUTE_FAULT = 8;
+     {$endif}
 
 {$ifdef cpupowerpc32}
   { ppc  }