Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit867c133

Browse files
committed
Add comment about exception lists in both winnt.h and ntstatus.h.
1 parente25138f commit867c133

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

‎src/include/port/win32.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $ */
22

33
#if defined(_MSC_VER)|| defined(__BORLANDC__)
44
#defineWIN32_ONLY_COMPILER
@@ -140,6 +140,20 @@ intsemop(int semId, struct sembuf * sops, int flag);
140140
*Descriptions - http://www.comp.nus.edu.sg/~wuyongzh/my_doc/ntstatus.txt
141141
*MS SDK - http://www.nologs.com/ntstatus.html
142142
*
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+
*
143157
*Some day we might want to print descriptions for the most common
144158
*exceptions, rather than printing a URL. FormatMessage() can print
145159
*the text of error values, but not exception values.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp