1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-18 13:45:45 +02:00

[226282] [api][WinCE] Encapsulate the public native methods in org.eclipse.tm.rapi.Rapi

This commit is contained in:
Radoslav Gerganov 2008-04-24 07:33:51 +00:00
parent 03ad2b0171
commit e15277d253
4 changed files with 24 additions and 24 deletions

View file

@ -39,7 +39,7 @@ public class WinCEConnectorService extends BasicConnectorService implements IRap
protected void internalConnect(IProgressMonitor monitor) throws Exception {
fireCommunicationsEvent(CommunicationsEvent.BEFORE_CONNECT);
Rapi.CoInitializeEx(0, Rapi.COINIT_MULTITHREADED);
Rapi.initialize(Rapi.COINIT_MULTITHREADED);
desktop = IRapiDesktop.getInstance();
enumDevices = desktop.enumDevices();
device = enumDevices.next();

View file

@ -37,7 +37,7 @@ public class RapiExamples {
* Initialize the underlying natives.
*/
public void initRapi() {
Rapi.CoInitializeEx(0, Rapi.COINIT_MULTITHREADED);
Rapi.initialize(Rapi.COINIT_MULTITHREADED);
}
/**
@ -56,7 +56,7 @@ public class RapiExamples {
if (session != null) {
session.release();
}
Rapi.CoUninitialize();
Rapi.uninitialize();
}
/**

View file

@ -31,7 +31,7 @@ public class RapiTestCase extends TestCase {
enumDevices = null;
device = null;
session = null;
Rapi.CoInitializeEx(0, Rapi.COINIT_MULTITHREADED);
Rapi.initialize(Rapi.COINIT_MULTITHREADED);
}
protected void tearDown() throws Exception {
@ -48,7 +48,7 @@ public class RapiTestCase extends TestCase {
if (session != null) {
session.release();
}
Rapi.CoUninitialize();
Rapi.uninitialize();
}
}

View file

@ -106,12 +106,12 @@ public final class Rapi {
/**
* Initializes the COM library.
*/
public static final native int CoInitializeEx(int pvReserved, int dwCoInit);
static final native int CoInitializeEx(int pvReserved, int dwCoInit);
/**
* Closes the COM library on the current thread.
*/
public static final native void CoUninitialize();
static final native void CoUninitialize();
/**
* Sets the first element of the specified array with the address of a newly