Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2007-03-13 21:57:16 +0000
committerAndrew Niefer2007-03-13 21:57:16 +0000
commit3cf8518912fb064f582a5fa3b7ef020b2155e1b6 (patch)
tree44287c0f9863f02088a18051335d97a089a631a3 /bundles/org.eclipse.equinox.executable/library/wpf/com.c
parent3c156e8434744738d7dc6ca7941378119d19f1a8 (diff)
downloadrt.equinox.framework-3cf8518912fb064f582a5fa3b7ef020b2155e1b6.tar.gz
rt.equinox.framework-3cf8518912fb064f582a5fa3b7ef020b2155e1b6.tar.xz
rt.equinox.framework-3cf8518912fb064f582a5fa3b7ef020b2155e1b6.zip
bug 172367 - WPF port
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/wpf/com.c')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/wpf/com.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/wpf/com.c b/bundles/org.eclipse.equinox.executable/library/wpf/com.c
new file mode 100644
index 000000000..35ce38514
--- /dev/null
+++ b/bundles/org.eclipse.equinox.executable/library/wpf/com.c
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+#include <jni.h>
+#include <ole2.h>
+
+#define COM_NATIVE(func) Java_org_eclipse_equinox_launcher_JNIBridge_##func
+
+JNIEXPORT jint JNICALL COM_NATIVE(OleInitialize)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ return (jint)OleInitialize((LPVOID)arg0);
+}
+
+JNIEXPORT void JNICALL COM_NATIVE(OleUninitialize)
+ (JNIEnv *env, jclass that)
+{
+ OleUninitialize();
+}
+

Back to the top