// tlb2java #include "StdAfx.h" #include "COMSERVERLib.h" #include "com/moesol/tests/com_server/IExtraDual.h" #include "com/moesol/tests/com_server/IExtraDual.h" #include "DTestServerEvents.h" namespace COMSERVERLib { void JNICALL DTestServerEventsJni::jni_OnEvent(::com::moesol::bindings::jni_env *env, jobject jthis) { try { try { get_safe_iface(env, jthis)->OnEvent(); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithLong(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0) { try { try { LONG a0 = p0; get_safe_iface(env, jthis)->OnEventWithLong(a0 /* LONG */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithLongLong(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0, /*[in]*/ jint p1) { try { try { LONG a0 = p0; LONG a1 = p1; get_safe_iface(env, jthis)->OnEventWithLongLong(a0 /* LONG */, a1 /* LONG */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventBoolBstrDouble(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jboolean p0, /*[in]*/ jstring p1, /*[in]*/ jdouble p2) { try { try { VARIANT_BOOL a0 = p0 ? VARIANT_TRUE : VARIANT_FALSE; ::com::moesol::bindings::jni_BSTR a1 = p1; DOUBLE a2 = p2; get_safe_iface(env, jthis)->OnEventBoolBstrDouble(a0 /* VARIANT_BOOL */, a1 /* BSTR */, a2 /* DOUBLE */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithBstrExtraDual(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jstring p0, /*[in]*/ jobject p1) { try { try { ::com::moesol::bindings::jni_BSTR a0 = p0; ::com::moesol::bindings::jni_INTERFACE a1 = static_cast(::com::moesol::bindings::platform_1sdk::component_1services::IUnknown_00024Jni::get_iface(env, p1)); get_safe_iface(env, jthis)->OnEventWithBstrExtraDual(a0 /* BSTR */, a1 /* IExtraDual* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithByteChar(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jshort p0, /*[in]*/ jbyte p1) { try { try { BYTE a0 = static_cast(p0); CHAR a1 = p1; get_safe_iface(env, jthis)->OnEventWithByteChar(a0 /* BYTE */, a1 /* CHAR */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithCyDate(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlong p0, /*[in]*/ /* java.util.Date */ jobject p1) { try { try { ::com::moesol::bindings::jni_CY a0 = p0; ::com::moesol::bindings::jni_DATE a1(env, p1); get_safe_iface(env, jthis)->OnEventWithCyDate(a0 /* CY */, a1 /* DATE */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithFloatShort(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jfloat p0, /*[in]*/ jshort p1) { try { try { FLOAT a0 = p0; SHORT a1 = p1; get_safe_iface(env, jthis)->OnEventWithFloatShort(a0 /* FLOAT */, a1 /* SHORT */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUshortUlong(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jchar p0, /*[in]*/ jlong p1) { try { try { USHORT a0 = static_cast(p0); ULONG a1 = static_cast(p1); get_safe_iface(env, jthis)->OnEventWithUshortUlong(a0 /* USHORT */, a1 /* ULONG */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUintInt(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlong p0, /*[in]*/ jint p1) { try { try { UINT a0 = static_cast(p0); INT a1 = p1; get_safe_iface(env, jthis)->OnEventWithUintInt(a0 /* UINT */, a1 /* INT */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithScode(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ /* SCODE */ jint p0) { try { try { SCODE a0 = p0; get_safe_iface(env, jthis)->OnEventWithScode(a0 /* SCODE */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithVariantRef(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jobjectArray/*ptr*/ p0) { try { try { ::com::moesol::bindings::jni_VARIANT a0 = env->get_array_element(static_cast(0), p0, 0); get_safe_iface(env, jthis)->OnEventWithVariantRef(&a0 /* VARIANT* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithByteUshortRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jshortArray/*ptr*/ p0, /*[in]*/ jcharArray/*ptr*/ p1) { try { try { BYTE a0 = static_cast(env->get_array_element(static_cast(0), p0, 0)); USHORT a1 = static_cast(env->get_array_element(static_cast(0), p1, 0)); get_safe_iface(env, jthis)->OnEventWithByteUshortRefs(&a0 /* BYTE* */, &a1 /* USHORT* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUlongUintRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlongArray/*ptr*/ p0, /*[in]*/ jlongArray/*ptr*/ p1) { try { try { ULONG a0 = static_cast(env->get_array_element(static_cast(0), p0, 0)); UINT a1 = static_cast(env->get_array_element(static_cast(0), p1, 0)); get_safe_iface(env, jthis)->OnEventWithUlongUintRefs(&a0 /* ULONG* */, &a1 /* UINT* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithIntCharRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jintArray/*ptr*/ p0, /*[in]*/ jbyteArray/*ptr*/ p1) { try { try { INT a0 = env->get_array_element(static_cast(0), p0, 0); CHAR a1 = env->get_array_element(static_cast(0), p1, 0); get_safe_iface(env, jthis)->OnEventWithIntCharRefs(&a0 /* INT* */, &a1 /* CHAR* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithShortLongRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jshortArray/*ptr*/ p0, /*[in]*/ jintArray/*ptr*/ p1) { try { try { SHORT a0 = env->get_array_element(static_cast(0), p0, 0); LONG a1 = env->get_array_element(static_cast(0), p1, 0); get_safe_iface(env, jthis)->OnEventWithShortLongRefs(&a0 /* SHORT* */, &a1 /* LONG* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithFloatDoubleRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jfloatArray/*ptr*/ p0, /*[in]*/ jdoubleArray/*ptr*/ p1) { try { try { FLOAT a0 = env->get_array_element(static_cast(0), p0, 0); DOUBLE a1 = env->get_array_element(static_cast(0), p1, 0); get_safe_iface(env, jthis)->OnEventWithFloatDoubleRefs(&a0 /* FLOAT* */, &a1 /* DOUBLE* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithCyBstrRefs(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlongArray/*ptr*/ p0, /*[in]*/ jobjectArray/*ptr,bstr*/ p1) { try { try { ::com::moesol::bindings::jni_CY a0 = env->get_array_element(static_cast(0), p0, 0); ::com::moesol::bindings::jni_BSTR a1 = env->get_array_element(static_cast(0), p1, 0); get_safe_iface(env, jthis)->OnEventWithCyBstrRefs(&a0 /* CY* */, &a1 /* BSTR* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventsWithBoolRefDateRef(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jbooleanArray/*ptr*/ p0, /*[in]*/ /* java.util.Date */ jobjectArray/*ptr*/ p1) { try { try { VARIANT_BOOL a0 = env->get_array_element(static_cast(0), p0, 0) ? VARIANT_TRUE : VARIANT_FALSE; ::com::moesol::bindings::jni_DATE a1(env, env->get_array_element(static_cast(0), p1, 0)); get_safe_iface(env, jthis)->OnEventsWithBoolRefDateRef(&a0 /* VARIANT_BOOL* */, &a1 /* DATE* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithScodeRef(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ /* SCODE */ jintArray/*ptr*/ p0) { try { try { SCODE a0 = env->get_array_element(static_cast(0), p0, 0); get_safe_iface(env, jthis)->OnEventWithScodeRef(&a0 /* SCODE* */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithArrayOfByte(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jshortArray /*sa*/ p0) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_UI1, NULL, NULL, p0); get_safe_iface(env, jthis)->OnEventWithArrayOfByte(a0 /* SAFEARRAY(BYTE) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithExtraDualRef(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jobjectArray/*ptr,ptr*/ p0) { try { try { ::com::moesol::bindings::jni_INTERFACE a0 = static_cast(::com::moesol::bindings::platform_1sdk::component_1services::IUnknown_00024Jni::get_iface(env, env->get_array_element(static_cast(0), p0, 0))); get_safe_iface(env, jthis)->OnEventWithExtraDualRef(&a0 /* IExtraDual** */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUshortArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jcharArray /*sa*/ p0) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_UI2, NULL, NULL, p0); get_safe_iface(env, jthis)->OnEventWithUshortArray(a0 /* SAFEARRAY(USHORT) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUlongArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlongArray /*sa*/ p0) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_UI4, NULL, NULL, p0); get_safe_iface(env, jthis)->OnEventWithUlongArray(a0 /* SAFEARRAY(ULONG) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithUintArrayIntArrayCharArrayShortArrayLongArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlongArray /*sa*/ p0, /*[in]*/ jintArray /*sa*/ p1, /*[in]*/ jbyteArray /*sa*/ p2, /*[in]*/ jshortArray /*sa*/ p3, /*[in]*/ jintArray /*sa*/ p4) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_UINT, NULL, NULL, p0); ::com::moesol::bindings::jni_SAFEARRAY a1(VT_INT, NULL, NULL, p1); ::com::moesol::bindings::jni_SAFEARRAY a2(VT_I1, NULL, NULL, p2); ::com::moesol::bindings::jni_SAFEARRAY a3(VT_I2, NULL, NULL, p3); ::com::moesol::bindings::jni_SAFEARRAY a4(VT_I4, NULL, NULL, p4); get_safe_iface(env, jthis)->OnEventWithUintArrayIntArrayCharArrayShortArrayLongArray(a0 /* SAFEARRAY(UINT) */, a1 /* SAFEARRAY(INT) */, a2 /* SAFEARRAY(CHAR) */, a3 /* SAFEARRAY(SHORT) */, a4 /* SAFEARRAY(LONG) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithFloatArrayDoubleArrayCyArrayBstrArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jfloatArray /*sa*/ p0, /*[in]*/ jdoubleArray /*sa*/ p1, /*[in]*/ jlongArray /*sa*/ p2, /*[in]*/ jobjectArray/*sa,bstr*/ p3) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_R4, NULL, NULL, p0); ::com::moesol::bindings::jni_SAFEARRAY a1(VT_R8, NULL, NULL, p1); ::com::moesol::bindings::jni_SAFEARRAY a2(VT_CY, NULL, NULL, p2); ::com::moesol::bindings::jni_SAFEARRAY a3(VT_BSTR, ::java::lang::String::static_class(env), NULL, p3); get_safe_iface(env, jthis)->OnEventWithFloatArrayDoubleArrayCyArrayBstrArray(a0 /* SAFEARRAY(FLOAT) */, a1 /* SAFEARRAY(DOUBLE) */, a2 /* SAFEARRAY(CY) */, a3 /* SAFEARRAY(BSTR) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithBoolArrayDateArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jbooleanArray /*sa*/ p0, /*[in]*/ /* java.util.Date */ jobjectArray /*sa*/ p1) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_BOOL, NULL, NULL, p0); ::com::moesol::bindings::jni_SAFEARRAY a1(VT_DATE, ::java::util::Date::static_class(env), NULL, p1); get_safe_iface(env, jthis)->OnEventWithBoolArrayDateArray(a0 /* SAFEARRAY(VARIANT_BOOL) */, a1 /* SAFEARRAY(DATE) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } void JNICALL DTestServerEventsJni::jni_OnEventWithVariantArray(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jobjectArray /*sa*/ p0) { try { try { ::com::moesol::bindings::jni_SAFEARRAY a0(VT_VARIANT, ::java::lang::Object::static_class(env, static_cast<::com::moesol::bindings::impl_marker *>(0)), NULL, p0); get_safe_iface(env, jthis)->OnEventWithVariantArray(a0 /* SAFEARRAY(VARIANT) */); } catch (_com_error &e) { ::com::moesol::bindings::throw_java_com_exception_for_com_error(env, e); } } catch (::java::lang::Throwable *t) { env->throw_object(t); } return ; } JNINativeMethod DTestServerEventsJni::g_methods[] = { { "jni_OnEvent", "()V", jni_OnEvent }, { "jni_OnEventWithLong", "(I)V", jni_OnEventWithLong }, { "jni_OnEventWithLongLong", "(II)V", jni_OnEventWithLongLong }, { "jni_OnEventBoolBstrDouble", "(ZLjava/lang/String;D)V", jni_OnEventBoolBstrDouble }, { "jni_OnEventWithBstrExtraDual", "(Ljava/lang/String;Lcom/moesol/tests/com_server/IExtraDual;)V", jni_OnEventWithBstrExtraDual }, { "jni_OnEventWithByteChar", "(SB)V", jni_OnEventWithByteChar }, { "jni_OnEventWithCyDate", "(JLjava/util/Date;)V", jni_OnEventWithCyDate }, { "jni_OnEventWithFloatShort", "(FS)V", jni_OnEventWithFloatShort }, { "jni_OnEventWithUshortUlong", "(CJ)V", jni_OnEventWithUshortUlong }, { "jni_OnEventWithUintInt", "(JI)V", jni_OnEventWithUintInt }, { "jni_OnEventWithScode", "(I)V", jni_OnEventWithScode }, { "jni_OnEventWithVariantRef", "([Ljava/lang/Object;)V", jni_OnEventWithVariantRef }, { "jni_OnEventWithByteUshortRefs", "([S[C)V", jni_OnEventWithByteUshortRefs }, { "jni_OnEventWithUlongUintRefs", "([J[J)V", jni_OnEventWithUlongUintRefs }, { "jni_OnEventWithIntCharRefs", "([I[B)V", jni_OnEventWithIntCharRefs }, { "jni_OnEventWithShortLongRefs", "([S[I)V", jni_OnEventWithShortLongRefs }, { "jni_OnEventWithFloatDoubleRefs", "([F[D)V", jni_OnEventWithFloatDoubleRefs }, { "jni_OnEventWithCyBstrRefs", "([J[Ljava/lang/String;)V", jni_OnEventWithCyBstrRefs }, { "jni_OnEventsWithBoolRefDateRef", "([Z[Ljava/util/Date;)V", jni_OnEventsWithBoolRefDateRef }, { "jni_OnEventWithScodeRef", "([I)V", jni_OnEventWithScodeRef }, { "jni_OnEventWithArrayOfByte", "([S)V", jni_OnEventWithArrayOfByte }, { "jni_OnEventWithExtraDualRef", "([Lcom/moesol/tests/com_server/IExtraDual;)V", jni_OnEventWithExtraDualRef }, { "jni_OnEventWithUshortArray", "([C)V", jni_OnEventWithUshortArray }, { "jni_OnEventWithUlongArray", "([J)V", jni_OnEventWithUlongArray }, { "jni_OnEventWithUintArrayIntArrayCharArrayShortArrayLongArray", "([J[I[B[S[I)V", jni_OnEventWithUintArrayIntArrayCharArrayShortArrayLongArray }, { "jni_OnEventWithFloatArrayDoubleArrayCyArrayBstrArray", "([F[D[J[Ljava/lang/String;)V", jni_OnEventWithFloatArrayDoubleArrayCyArrayBstrArray }, { "jni_OnEventWithBoolArrayDateArray", "([Z[Ljava/util/Date;)V", jni_OnEventWithBoolArrayDateArray }, { "jni_OnEventWithVariantArray", "([Ljava/lang/Object;)V", jni_OnEventWithVariantArray }, }; ::com::moesol::bindings::jni_registration DTestServerEventsJni::g_registration("com/moesol/tests/com_server/DTestServerEvents$Jni", g_methods, sizeof(g_methods)/sizeof(g_methods[0])); }