blob: 64e7652d022070a2b29761f83f214b025ce4c39b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <jawt.h>
extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
{
void* tmp;
if (vm->GetEnv(&tmp, JNI_VERSION_1_2) != JNI_OK) {
return -1;
}
JAWT awt;
awt.version = JAWT_VERSION_1_3;
if (JAWT_GetAWT(static_cast<JNIEnv*>(tmp), &awt) == JNI_FALSE) {
return -1;
}
return JNI_VERSION_1_2;
}
extern "C" JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved)
{
}
|