|
1 |
| -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.69 2007/01/2303:28:49 momjian Exp $ */ |
| 1 | +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.70 2007/01/2316:21:17 momjian Exp $ */ |
2 | 2 |
|
3 | 3 | #if defined(_MSC_VER)|| defined(__BORLANDC__)
|
4 | 4 | #defineWIN32_ONLY_COMPILER
|
@@ -140,6 +140,20 @@ intsemop(int semId, struct sembuf * sops, int flag);
|
140 | 140 | *Descriptions - http://www.comp.nus.edu.sg/~wuyongzh/my_doc/ntstatus.txt
|
141 | 141 | *MS SDK - http://www.nologs.com/ntstatus.html
|
142 | 142 | *
|
| 143 | + *It seems the exception lists are in both ntstatus.h and winnt.h, but |
| 144 | + *ntstatus.h has a more comprehensive list, and it only contains |
| 145 | + *exception values, rather than winnt, which contains lots of other |
| 146 | + *things: |
| 147 | + * |
| 148 | + *http://www.microsoft.com/msj/0197/exception/exception.aspx |
| 149 | + * |
| 150 | + *The ExceptionCode parameter is the number that the operating system |
| 151 | + *assigned to the exception. You can see a list of various exception codes |
| 152 | + *in WINNT.H by searching for #defines that start with "STATUS_". For |
| 153 | + *example, the code for the all-too-familiar STATUS_ACCESS_VIOLATION is |
| 154 | + *0xC0000005. A more complete set of exception codes can be found in |
| 155 | + *NTSTATUS.H from the Windows NT DDK. |
| 156 | + * |
143 | 157 | *Some day we might want to print descriptions for the most common
|
144 | 158 | *exceptions, rather than printing a URL. FormatMessage() can print
|
145 | 159 | *the text of error values, but not exception values.
|
|