// tlb2java #include "StdAfx.h" #include "COMSERVERLib.h" #include "com/moesol/tests/com_server/IExtraDual.h" #include "com/moesol/tests/com_server/IExtraDual.h" #include "com/moesol/bindings/platform_sdk/component_services/IUnknown.h" #include "IDual2.h" namespace COMSERVERLib { jint JNICALL IDual2Jni::jni_getPropLONG(::com::moesol::bindings::jni_env *env, jobject jthis) { try { try { LONG a0; HRESULT hr; hr = get_safe_iface(env, jthis)->get_PropLONG(&a0 /* LONG* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } return static_cast(a0); } 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 0; } void JNICALL IDual2Jni::jni_setPropLONG(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0) { try { try { LONG a0 = p0; HRESULT hr; hr = get_safe_iface(env, jthis)->put_PropLONG(a0 /* LONG */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_LONGAsOut(::com::moesol::bindings::jni_env *env, jobject jthis, /*[out]*/ jintArray/*ptr*/ p0) { try { try { LONG a0; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_LONGAsOut(&a0 /* LONG* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } if (p0) { env->set_array_element(p0, 0, static_cast(a0)); } else { _com_raise_error(E_INVALIDARG); } } 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 IDual2Jni::jni_FireEvent(::com::moesol::bindings::jni_env *env, jobject jthis) { try { try { HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEvent(); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithLong(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0) { try { try { LONG a0 = p0; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithLong(a0 /* LONG */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithLongLong(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0, /*[in]*/ jint p1) { try { try { LONG a0 = p0; LONG a1 = p1; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithLongLong(a0 /* LONG */, a1 /* LONG */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithBoolBstrDouble(::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; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithBoolBstrDouble(a0 /* VARIANT_BOOL */, a1 /* BSTR */, a2 /* DOUBLE */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithBstrExtraDual(::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)); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithBstrExtraDual(a0 /* BSTR */, a1 /* IExtraDual* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithByteChar(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jshort p0, /*[in]*/ jbyte p1) { try { try { BYTE a0 = static_cast(p0); CHAR a1 = p1; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithByteChar(a0 /* BYTE */, a1 /* CHAR */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithCyDate(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithCyDate(a0 /* CY */, a1 /* DATE */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithFloatShort(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jfloat p0, /*[in]*/ jshort p1) { try { try { FLOAT a0 = p0; SHORT a1 = p1; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithFloatShort(a0 /* FLOAT */, a1 /* SHORT */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUshortUlong(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUshortUlong(a0 /* USHORT */, a1 /* ULONG */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUintInt(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jlong p0, /*[in]*/ jint p1) { try { try { UINT a0 = static_cast(p0); INT a1 = p1; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUintInt(a0 /* UINT */, a1 /* INT */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithScode(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ /* SCODE */ jint p0) { try { try { SCODE a0 = p0; HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithScode(a0 /* SCODE */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithVariantRef(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithVariantRef(&a0 /* VARIANT* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithByteUshortRefs(::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)); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithByteUshortRefs(&a0 /* BYTE* */, &a1 /* USHORT* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUlongUintRefs(::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)); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUlongUintRefs(&a0 /* ULONG* */, &a1 /* UINT* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithIntCharRefs(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithIntCharRefs(&a0 /* INT* */, &a1 /* CHAR* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithShortLongRefs(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithShortLongRefs(&a0 /* SHORT* */, &a1 /* LONG* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithFloatDoubleRefs(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithFloatDoubleRefs(&a0 /* FLOAT* */, &a1 /* DOUBLE* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithCyBstrRefs(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithCyBstrRefs(&a0 /* CY* */, &a1 /* BSTR* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventsWithBoolRefDateRef(::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)); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventsWithBoolRefDateRef(&a0 /* VARIANT_BOOL* */, &a1 /* DATE* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithScodeRef(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithScodeRef(&a0 /* SCODE* */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithArrayOfByte(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithArrayOfByte(a0 /* SAFEARRAY(BYTE) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithExtraDualRef(::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))); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithExtraDualRef(&a0 /* IExtraDual** */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUshortArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUshortArray(a0 /* SAFEARRAY(USHORT) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUlongArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUlongArray(a0 /* SAFEARRAY(ULONG) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray(a0 /* SAFEARRAY(UINT) */, a1 /* SAFEARRAY(INT) */, a2 /* SAFEARRAY(CHAR) */, a3 /* SAFEARRAY(SHORT) */, a4 /* SAFEARRAY(LONG) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray(a0 /* SAFEARRAY(FLOAT) */, a1 /* SAFEARRAY(DOUBLE) */, a2 /* SAFEARRAY(CY) */, a3 /* SAFEARRAY(BSTR) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithBoolArrayDateArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithBoolArrayDateArray(a0 /* SAFEARRAY(VARIANT_BOOL) */, a1 /* SAFEARRAY(DATE) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_FireEventWithVariantArray(::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); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_FireEventWithVariantArray(a0 /* SAFEARRAY(VARIANT) */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } } 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 IDual2Jni::jni_EnumIUnknown(::com::moesol::bindings::jni_env *env, jobject jthis, /*[in]*/ jint p0, /*[in, out]*/ jobjectArray/*ptr*/ p1) { try { try { __MIDL___MIDL_itf_ComServer_0000_0001 a0 = static_cast<__MIDL___MIDL_itf_ComServer_0000_0001>(p0); ::com::moesol::bindings::jni_INTERFACE a1 = ::com::moesol::bindings::platform_1sdk::component_1services::IUnknown_00024Jni::get_iface(env, env->get_array_element(static_cast(0), p1, 0)); HRESULT hr; hr = get_safe_iface(env, jthis)->raw_EnumIUnknown(a0 /* __MIDL___MIDL_itf_ComServer_0000_0001 */, &a1 /* IUnknown** */); if (FAILED(hr)) { _com_issue_errorex(hr, get_iface(env, jthis), __uuidof(get_iface(env, jthis))); } if (p1) { env->set_array_element(p1, 0, ::com::moesol::bindings::platform_1sdk::component_1services::IUnknown_00024Jni::fromInterface(env, a1)); } else { _com_raise_error(E_INVALIDARG); } } 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 IDual2Jni::g_methods[] = { { "jni_getPropLONG", "()I", jni_getPropLONG }, { "jni_setPropLONG", "(I)V", jni_setPropLONG }, { "jni_LONGAsOut", "([I)V", jni_LONGAsOut }, { "jni_FireEvent", "()V", jni_FireEvent }, { "jni_FireEventWithLong", "(I)V", jni_FireEventWithLong }, { "jni_FireEventWithLongLong", "(II)V", jni_FireEventWithLongLong }, { "jni_FireEventWithBoolBstrDouble", "(ZLjava/lang/String;D)V", jni_FireEventWithBoolBstrDouble }, { "jni_FireEventWithBstrExtraDual", "(Ljava/lang/String;Lcom/moesol/tests/com_server/IExtraDual;)V", jni_FireEventWithBstrExtraDual }, { "jni_FireEventWithByteChar", "(SB)V", jni_FireEventWithByteChar }, { "jni_FireEventWithCyDate", "(JLjava/util/Date;)V", jni_FireEventWithCyDate }, { "jni_FireEventWithFloatShort", "(FS)V", jni_FireEventWithFloatShort }, { "jni_FireEventWithUshortUlong", "(CJ)V", jni_FireEventWithUshortUlong }, { "jni_FireEventWithUintInt", "(JI)V", jni_FireEventWithUintInt }, { "jni_FireEventWithScode", "(I)V", jni_FireEventWithScode }, { "jni_FireEventWithVariantRef", "([Ljava/lang/Object;)V", jni_FireEventWithVariantRef }, { "jni_FireEventWithByteUshortRefs", "([S[C)V", jni_FireEventWithByteUshortRefs }, { "jni_FireEventWithUlongUintRefs", "([J[J)V", jni_FireEventWithUlongUintRefs }, { "jni_FireEventWithIntCharRefs", "([I[B)V", jni_FireEventWithIntCharRefs }, { "jni_FireEventWithShortLongRefs", "([S[I)V", jni_FireEventWithShortLongRefs }, { "jni_FireEventWithFloatDoubleRefs", "([F[D)V", jni_FireEventWithFloatDoubleRefs }, { "jni_FireEventWithCyBstrRefs", "([J[Ljava/lang/String;)V", jni_FireEventWithCyBstrRefs }, { "jni_FireEventsWithBoolRefDateRef", "([Z[Ljava/util/Date;)V", jni_FireEventsWithBoolRefDateRef }, { "jni_FireEventWithScodeRef", "([I)V", jni_FireEventWithScodeRef }, { "jni_FireEventWithArrayOfByte", "([S)V", jni_FireEventWithArrayOfByte }, { "jni_FireEventWithExtraDualRef", "([Lcom/moesol/tests/com_server/IExtraDual;)V", jni_FireEventWithExtraDualRef }, { "jni_FireEventWithUshortArray", "([C)V", jni_FireEventWithUshortArray }, { "jni_FireEventWithUlongArray", "([J)V", jni_FireEventWithUlongArray }, { "jni_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray", "([J[I[B[S[I)V", jni_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray }, { "jni_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray", "([F[D[J[Ljava/lang/String;)V", jni_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray }, { "jni_FireEventWithBoolArrayDateArray", "([Z[Ljava/util/Date;)V", jni_FireEventWithBoolArrayDateArray }, { "jni_FireEventWithVariantArray", "([Ljava/lang/Object;)V", jni_FireEventWithVariantArray }, { "jni_EnumIUnknown", "(I[Lcom/moesol/bindings/platform_sdk/component_services/IUnknown;)V", jni_EnumIUnknown }, }; ::com::moesol::bindings::jni_registration IDual2Jni::g_registration("com/moesol/tests/com_server/IDual2$Jni", g_methods, sizeof(g_methods)/sizeof(g_methods[0])); }