Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu2003-04-14 15:49:43 +0000
committerChristophe Cornu2003-04-14 15:49:43 +0000
commita0c92515a5dd09286169b720ccbb60ccfc5bf862 (patch)
tree7b719e4d5d14c8eb24daac3820ac2d00b691eb6a /bundles/org.eclipse.swt/Eclipse SWT PI/win32
parentb243b45a5d0e4308832d914b27c7d7a19a7629db (diff)
downloadeclipse.platform.swt-a0c92515a5dd09286169b720ccbb60ccfc5bf862.tar.gz
eclipse.platform.swt-a0c92515a5dd09286169b720ccbb60ccfc5bf862.tar.xz
eclipse.platform.swt-a0c92515a5dd09286169b720ccbb60ccfc5bf862.zip
PR35837
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c11
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java2
2 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c
index ba63a7197e..6d2f93381f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.c
@@ -174,6 +174,7 @@
#define NO_SendMessageA__II_3I_3I
#define NO_SendMessageW__IIILorg_eclipse_swt_internal_win32_TOOLINFO_2
#define NO_SetDIBColorTable
+#define NO_SetErrorMode
#define NO_SetMenu
#define NO_SetMenuDefaultItem
#define NO_SetMenuInfo
@@ -6491,6 +6492,16 @@ JNIEXPORT jint JNICALL OS_NATIVE(SetDIBColorTable)
}
#endif /* NO_SetDIBColorTable */
+#ifndef NO_SetErrorMode
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_win32_OS_SetErrorMode
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ DEBUG_CALL("SetErrorMode\n")
+
+ return (jint)SetErrorMode(arg0);
+}
+#endif /* NO_SetErrorMode */
+
#ifndef NO_SetFocus
JNIEXPORT jint JNICALL OS_NATIVE(SetFocus)
(JNIEnv *env, jclass that, jint arg0)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
index 146f43ae14..6b9fa8cbe4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java
@@ -777,6 +777,7 @@ public class OS {
public static final int SC_SIZE = 0xf000;
public static final int SC_TASKLIST = 0xf130;
public static final int SC_VSCROLL = 0xf070;
+ public static final int SEM_FAILCRITICALERRORS = 0x1;
public static final int SF_RTF = 0x2;
public static final int SHCMBF_HIDDEN = 0x2;
public static final int SHCMBM_OVERRIDEKEY = OS.WM_USER + 403;
@@ -2370,6 +2371,7 @@ public static final native int SetClipboardData (int uFormat, int hMem);
public static final native int SetCursor (int hCursor);
public static final native boolean SetCursorPos (int X, int Y);
public static final native int SetDIBColorTable (int hdc, int uStartIndex, int cEntries, byte[] pColors);
+public static final native int SetErrorMode (int uMode);
public static final native int SetFocus (int hWnd);
public static final native boolean SetForegroundWindow (int hWnd);
public static final native int SetLayout (int hdc, int dwLayout);

Back to the top