Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2010-01-18 21:50:07 +0000
committerKevin Barnes2010-01-18 21:50:07 +0000
commit68dd096752e238c658788f5395a8c9f209d457e7 (patch)
tree9cd26e65ac89cd683d9c908b10500aa337e040e4 /bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c
parentc75fa2aaa81cd96400f0b4207d26c662b67c5bce (diff)
downloadeclipse.platform.swt-68dd096752e238c658788f5395a8c9f209d457e7.tar.gz
eclipse.platform.swt-68dd096752e238c658788f5395a8c9f209d457e7.tar.xz
eclipse.platform.swt-68dd096752e238c658788f5395a8c9f209d457e7.zip
201154 - Add support in SWT for event-based document opening
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c
index e58ad9c0c9..8b8385faff 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c
@@ -2418,6 +2418,22 @@ fail:
}
#endif
+#ifndef NO_DuplicateHandle
+JNIEXPORT jboolean JNICALL OS_NATIVE(DuplicateHandle)
+ (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLongArray arg3, jint arg4, jboolean arg5, jint arg6)
+{
+ jintLong *lparg3=NULL;
+ jboolean rc = 0;
+ OS_NATIVE_ENTER(env, that, DuplicateHandle_FUNC);
+ if (arg3) if ((lparg3 = (*env)->GetIntLongArrayElements(env, arg3, NULL)) == NULL) goto fail;
+ rc = (jboolean)DuplicateHandle((HANDLE)arg0, (HANDLE)arg1, (HANDLE)arg2, (LPHANDLE)lparg3, (DWORD)arg4, arg5, (DWORD)arg6);
+fail:
+ if (arg3 && lparg3) (*env)->ReleaseIntLongArrayElements(env, arg3, lparg3, 0);
+ OS_NATIVE_EXIT(env, that, DuplicateHandle_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_DwmEnableBlurBehindWindow
JNIEXPORT jint JNICALL OS_NATIVE(DwmEnableBlurBehindWindow)
(JNIEnv *env, jclass that, jintLong arg0, jobject arg1)
@@ -3710,6 +3726,18 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(GetCurrentObject)
}
#endif
+#ifndef NO_GetCurrentProcess
+JNIEXPORT jintLong JNICALL OS_NATIVE(GetCurrentProcess)
+ (JNIEnv *env, jclass that)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, GetCurrentProcess_FUNC);
+ rc = (jintLong)GetCurrentProcess();
+ OS_NATIVE_EXIT(env, that, GetCurrentProcess_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_GetCurrentProcessId
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcessId)
(JNIEnv *env, jclass that)
@@ -8191,6 +8219,18 @@ JNIEXPORT jint JNICALL OS_NATIVE(MSG_1sizeof)
}
#endif
+#ifndef NO_MapViewOfFile
+JNIEXPORT jintLong JNICALL OS_NATIVE(MapViewOfFile)
+ (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jint arg2, jint arg3, jint arg4)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, MapViewOfFile_FUNC);
+ rc = (jintLong)MapViewOfFile((HANDLE)arg0, (DWORD)arg1, (DWORD)arg2, (DWORD)arg3, arg4);
+ OS_NATIVE_EXIT(env, that, MapViewOfFile_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_MapVirtualKeyA
JNIEXPORT jint JNICALL OS_NATIVE(MapVirtualKeyA)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
@@ -11510,6 +11550,18 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(OpenClipboard)
}
#endif
+#ifndef NO_OpenProcess
+JNIEXPORT jintLong JNICALL OS_NATIVE(OpenProcess)
+ (JNIEnv *env, jclass that, jint arg0, jboolean arg1, jint arg2)
+{
+ jintLong rc = 0;
+ OS_NATIVE_ENTER(env, that, OpenProcess_FUNC);
+ rc = (jintLong)OpenProcess((DWORD)arg0, arg1, (DWORD)arg2);
+ OS_NATIVE_EXIT(env, that, OpenProcess_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_OpenThemeData
JNIEXPORT jintLong JNICALL OS_NATIVE(OpenThemeData)
(JNIEnv *env, jclass that, jintLong arg0, jcharArray arg1)
@@ -16790,6 +16842,18 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(UnhookWindowsHookEx)
}
#endif
+#ifndef NO_UnmapViewOfFile
+JNIEXPORT jboolean JNICALL OS_NATIVE(UnmapViewOfFile)
+ (JNIEnv *env, jclass that, jintLong arg0)
+{
+ jboolean rc = 0;
+ OS_NATIVE_ENTER(env, that, UnmapViewOfFile_FUNC);
+ rc = (jboolean)UnmapViewOfFile((LPCVOID)arg0);
+ OS_NATIVE_EXIT(env, that, UnmapViewOfFile_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_UnregisterClassA
JNIEXPORT jboolean JNICALL OS_NATIVE(UnregisterClassA)
(JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1)

Back to the top