Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 35ce385143760df273a1c298ad036411443a2bf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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