/*** Autogenerated by WIDL 1.1.12 from complex.idl - Do not edit ***/ #include #ifdef _ALPHA_ #include #endif #include "complex.h" #ifndef DECLSPEC_HIDDEN #define DECLSPEC_HIDDEN #endif #ifndef USE_COMPILER_EXCEPTIONS #include "wine/exception.h" #undef RpcTryExcept #undef RpcExcept #undef RpcEndExcept #undef RpcTryFinally #undef RpcFinally #undef RpcEndFinally #undef RpcExceptionCode #undef RpcAbnormalTermination struct __exception_frame; typedef int (*__filter_func)(EXCEPTION_RECORD *, struct __exception_frame *); typedef void (*__finally_func)(struct __exception_frame *); #define __DECL_EXCEPTION_FRAME \ EXCEPTION_REGISTRATION_RECORD frame; \ __filter_func filter; \ __finally_func finally; \ sigjmp_buf jmp; \ DWORD code; \ unsigned char abnormal_termination; \ unsigned char filter_level; \ unsigned char finally_level; struct __exception_frame { __DECL_EXCEPTION_FRAME }; static DWORD __widl_exception_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, EXCEPTION_REGISTRATION_RECORD **pdispatcher ) { struct __exception_frame *exc_frame = (struct __exception_frame *)frame; if (record->ExceptionFlags & (EH_UNWINDING | EH_EXIT_UNWIND | EH_NESTED_CALL)) { if (exc_frame->finally_level && (record->ExceptionFlags & (EH_UNWINDING | EH_EXIT_UNWIND))) { exc_frame->abnormal_termination = 1; exc_frame->finally( exc_frame ); } return ExceptionContinueSearch; } exc_frame->code = record->ExceptionCode; if (exc_frame->filter_level && exc_frame->filter( record, exc_frame ) == EXCEPTION_EXECUTE_HANDLER) { __wine_rtl_unwind( frame, record ); if (exc_frame->finally_level > exc_frame->filter_level) { exc_frame->abnormal_termination = 1; exc_frame->finally( exc_frame ); __wine_pop_frame( frame ); } exc_frame->filter_level = 0; siglongjmp( exc_frame->jmp, 1 ); } return ExceptionContinueSearch; } #define RpcTryExcept \ if (!sigsetjmp( __frame->jmp, 0 )) \ { \ if (!__frame->finally_level) \ __wine_push_frame( &__frame->frame ); \ __frame->filter_level = __frame->finally_level + 1; #define RpcExcept(expr) \ if (!__frame->finally_level) \ __wine_pop_frame( &__frame->frame ); \ __frame->filter_level = 0; \ } \ else \ #define RpcEndExcept #define RpcExceptionCode() (__frame->code) #define RpcTryFinally \ if (!__frame->filter_level) \ __wine_push_frame( &__frame->frame ); \ __frame->finally_level = __frame->filter_level + 1; #define RpcFinally \ if (!__frame->filter_level) \ __wine_pop_frame( &__frame->frame ); \ __frame->finally_level = 0; #define RpcEndFinally #define RpcAbnormalTermination() (__frame->abnormal_termination) #define RpcExceptionInit(filter_func,finally_func) \ do { \ __frame->frame.Handler = __widl_exception_handler; \ __frame->filter = (__filter_func)(filter_func); \ __frame->finally = (__finally_func)(finally_func); \ __frame->abnormal_termination = 0; \ __frame->filter_level = 0; \ __frame->finally_level = 0; \ } while (0) #else /* USE_COMPILER_EXCEPTIONS */ #define RpcExceptionInit(filter_func,finally_func) do {} while(0) #define __DECL_EXCEPTION_FRAME #endif /* USE_COMPILER_EXCEPTIONS */ #ifndef _WIN64 #define TYPE_FORMAT_STRING_SIZE 93 #define PROC_FORMAT_STRING_SIZE 7 typedef struct _MIDL_TYPE_FORMAT_STRING { short Pad; unsigned char Format[TYPE_FORMAT_STRING_SIZE]; } MIDL_TYPE_FORMAT_STRING; typedef struct _MIDL_PROC_FORMAT_STRING { short Pad; unsigned char Format[PROC_FORMAT_STRING_SIZE]; } MIDL_PROC_FORMAT_STRING; static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString; static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString; /***************************************************************************** * IComplex interface */ handle_t IComplex_IfHandle; static const RPC_CLIENT_INTERFACE IComplex___RpcClientInterface = { sizeof(RPC_CLIENT_INTERFACE), {{0xd2531a27,0x4151,0x44cc,{0x9a,0x8c,0x7e,0xd0,0x0d,0x95,0x67,0x57}},{0,0}}, {{0x8a885d04,0x1ceb,0x11c9,{0x9f,0xe8,0x08,0x00,0x2b,0x10,0x48,0x60}},{2,0}}, 0, 0, 0, 0, 0, 0, }; RPC_IF_HANDLE IComplex_v0_0_c_ifspec DECLSPEC_HIDDEN = (RPC_IF_HANDLE)& IComplex___RpcClientInterface; static const MIDL_STUB_DESC IComplex_StubDesc; struct __frame_get_complex { __DECL_EXCEPTION_FRAME MIDL_STUB_MESSAGE _StubMsg; RPC_BINDING_HANDLE _Handle; }; static void __finally_get_complex( struct __frame_get_complex *__frame ) { NdrFreeBuffer(&__frame->_StubMsg); } void get_complex( complex_t *complex_t) { struct __frame_get_complex __f, * const __frame = &__f; RPC_MESSAGE _RpcMessage; __frame->_Handle = 0; RpcExceptionInit( 0, __finally_get_complex ); if (!complex_t) { RpcRaiseException(RPC_X_NULL_REF_POINTER); } RpcTryFinally { NdrClientInitializeNew(&_RpcMessage, &__frame->_StubMsg, &IComplex_StubDesc, 0); __frame->_Handle = IComplex_IfHandle; __frame->_StubMsg.BufferLength = 0; NdrPointerBufferSize( &__frame->_StubMsg, (unsigned char *)complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[88]); NdrGetBuffer(&__frame->_StubMsg, __frame->_StubMsg.BufferLength, __frame->_Handle); NdrPointerMarshall( &__frame->_StubMsg, (unsigned char *)complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[88]); NdrSendReceive(&__frame->_StubMsg, __frame->_StubMsg.Buffer); __frame->_StubMsg.BufferStart = _RpcMessage.Buffer; __frame->_StubMsg.BufferEnd = __frame->_StubMsg.BufferStart + _RpcMessage.BufferLength; if ((_RpcMessage.DataRepresentation & 0x0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION) NdrConvert(&__frame->_StubMsg, (PFORMAT_STRING)&__MIDL_ProcFormatString.Format[0]); NdrPointerUnmarshall( &__frame->_StubMsg, (unsigned char **)&complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[88], 0); } RpcFinally { __finally_get_complex( __frame ); } RpcEndFinally } #if !defined(__RPC_WIN32__) #error Invalid build platform for this stub. #endif static const MIDL_STUB_DESC IComplex_StubDesc = { (void *)& IComplex___RpcClientInterface, MIDL_user_allocate, MIDL_user_free, { &IComplex_IfHandle, }, 0, 0, 0, 0, __MIDL_TypeFormatString.Format, 1, /* -error bounds_check flag */ 0x10001, /* Ndr library version */ 0, 0x50100a4, /* MIDL Version 5.1.164 */ 0, 0, 0, /* notify & notify_flag routine table */ 1, /* Flags */ 0, /* Reserved3 */ 0, /* Reserved4 */ 0 /* Reserved5 */ }; static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString = { 0, { 0x50, /* FC_IN_OUT_PARAM */ 0x01, NdrFcShort(0x58), 0x5b, /* FC_END */ 0x5c, /* FC_PAD */ 0x0 } }; static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString = { 0, { NdrFcShort(0x0), /* 2 (char *) */ 0x11, 0x0, /* FC_RP */ NdrFcShort(0x2), /* 6 */ 0x22, /* FC_C_CSTRING */ 0x44, /* FC_STRING_SIZED */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* no operators */ NdrFcShort(0x4), /* offset = 4 */ /* 12 (int *) */ 0x12, 0x8, /* FC_UP [simple_pointer] */ 0x08, /* FC_LONG */ 0x5c, /* FC_PAD */ /* 16 (union ) */ NdrFcShort(0x4), /* 4 */ NdrFcShort(0x4), /* 4 */ NdrFcLong(0xa), /* 10 */ NdrFcShort(0x8008), /* Simple arm type: FC_LONG */ NdrFcLong(0xfffffffe), /* -2 */ NdrFcShort(0x800a), /* Simple arm type: FC_FLOAT */ NdrFcLong(0x7), /* 7 */ NdrFcShort(0x800a), /* Simple arm type: FC_FLOAT */ NdrFcLong(0x18f), /* 399 */ NdrFcShort(0xffffffe2), /* Offset= -30 (12) */ NdrFcShort(0xffffffff), /* 46 */ 0x2b, /* FC_NON_ENCAPSULATED_UNION */ 0x8, /* FIXME: always FC_LONG */ 0x8, /* Corr desc: FC_LONG */ 0x0, /* no operators */ NdrFcShort(0x4), /* offset = 4 */ NdrFcShort(-36), /* Offset= -36 (16) */ /* 54 (complex_t) */ 0x1a, /* FC_BOGUS_STRUCT */ 0x3, /* 3 */ NdrFcShort(0x38), /* 56 */ NdrFcShort(0x0), NdrFcShort(0x18), /* Offset= 24 (84) */ 0x36, /* FC_POINTER */ 0x09, /* FC_ULONG */ 0x0c, /* FC_DOUBLE */ 0x0b, /* FC_HYPER */ 0x0a, /* FC_FLOAT */ 0x09, /* FC_ULONG */ 0x08, /* FC_LONG */ 0x07, /* FC_USHORT */ 0x06, /* FC_SHORT */ 0x05, /* FC_WCHAR */ 0x04, /* FC_USMALL */ 0x03, /* FC_SMALL */ 0x02, /* FC_CHAR */ 0x01, /* FC_BYTE */ 0x38, /* FC_ALIGNM4 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* FIXME: padding */ NdrFcShort(0xffdf), /* Offset= -33 (46) */ 0x08, /* FC_LONG */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 84 */ 0x12, 0x0, /* FC_UP */ NdrFcShort(0xffb0), /* Offset= -80 (6) */ /* 88 */ 0x11, 0x0, /* FC_RP */ NdrFcShort(0xffffffdc), /* 54 */ 0x0 } }; #else /* _WIN64 */ #define TYPE_FORMAT_STRING_SIZE 95 #define PROC_FORMAT_STRING_SIZE 7 typedef struct _MIDL_TYPE_FORMAT_STRING { short Pad; unsigned char Format[TYPE_FORMAT_STRING_SIZE]; } MIDL_TYPE_FORMAT_STRING; typedef struct _MIDL_PROC_FORMAT_STRING { short Pad; unsigned char Format[PROC_FORMAT_STRING_SIZE]; } MIDL_PROC_FORMAT_STRING; static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString; static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString; /***************************************************************************** * IComplex interface */ handle_t IComplex_IfHandle; static const RPC_CLIENT_INTERFACE IComplex___RpcClientInterface = { sizeof(RPC_CLIENT_INTERFACE), {{0xd2531a27,0x4151,0x44cc,{0x9a,0x8c,0x7e,0xd0,0x0d,0x95,0x67,0x57}},{0,0}}, {{0x8a885d04,0x1ceb,0x11c9,{0x9f,0xe8,0x08,0x00,0x2b,0x10,0x48,0x60}},{2,0}}, 0, 0, 0, 0, 0, 0, }; RPC_IF_HANDLE IComplex_v0_0_c_ifspec DECLSPEC_HIDDEN = (RPC_IF_HANDLE)& IComplex___RpcClientInterface; static const MIDL_STUB_DESC IComplex_StubDesc; struct __frame_get_complex { __DECL_EXCEPTION_FRAME MIDL_STUB_MESSAGE _StubMsg; RPC_BINDING_HANDLE _Handle; }; static void __finally_get_complex( struct __frame_get_complex *__frame ) { NdrFreeBuffer(&__frame->_StubMsg); } void get_complex( complex_t *complex_t) { struct __frame_get_complex __f, * const __frame = &__f; RPC_MESSAGE _RpcMessage; __frame->_Handle = 0; RpcExceptionInit( 0, __finally_get_complex ); if (!complex_t) { RpcRaiseException(RPC_X_NULL_REF_POINTER); } RpcTryFinally { NdrClientInitializeNew(&_RpcMessage, &__frame->_StubMsg, &IComplex_StubDesc, 0); __frame->_Handle = IComplex_IfHandle; __frame->_StubMsg.BufferLength = 0; NdrPointerBufferSize( &__frame->_StubMsg, (unsigned char *)complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[90]); NdrGetBuffer(&__frame->_StubMsg, __frame->_StubMsg.BufferLength, __frame->_Handle); NdrPointerMarshall( &__frame->_StubMsg, (unsigned char *)complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[90]); NdrSendReceive(&__frame->_StubMsg, __frame->_StubMsg.Buffer); __frame->_StubMsg.BufferStart = _RpcMessage.Buffer; __frame->_StubMsg.BufferEnd = __frame->_StubMsg.BufferStart + _RpcMessage.BufferLength; if ((_RpcMessage.DataRepresentation & 0x0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION) NdrConvert(&__frame->_StubMsg, (PFORMAT_STRING)&__MIDL_ProcFormatString.Format[0]); NdrPointerUnmarshall( &__frame->_StubMsg, (unsigned char **)&complex_t, (PFORMAT_STRING)&__MIDL_TypeFormatString.Format[90], 0); } RpcFinally { __finally_get_complex( __frame ); } RpcEndFinally } #if !defined(__RPC_WIN64__) #error Invalid build platform for this stub. #endif static const MIDL_STUB_DESC IComplex_StubDesc = { (void *)& IComplex___RpcClientInterface, MIDL_user_allocate, MIDL_user_free, { &IComplex_IfHandle, }, 0, 0, 0, 0, __MIDL_TypeFormatString.Format, 1, /* -error bounds_check flag */ 0x10001, /* Ndr library version */ 0, 0x50100a4, /* MIDL Version 5.1.164 */ 0, 0, 0, /* notify & notify_flag routine table */ 1, /* Flags */ 0, /* Reserved3 */ 0, /* Reserved4 */ 0 /* Reserved5 */ }; static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString = { 0, { 0x50, /* FC_IN_OUT_PARAM */ 0x01, NdrFcShort(0x5a), 0x5b, /* FC_END */ 0x5c, /* FC_PAD */ 0x0 } }; static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString = { 0, { NdrFcShort(0x0), /* 2 (char *) */ 0x11, 0x0, /* FC_RP */ NdrFcShort(0x2), /* 6 */ 0x22, /* FC_C_CSTRING */ 0x44, /* FC_STRING_SIZED */ 0x19, /* Corr desc: field pointer, FC_ULONG */ 0x0, /* no operators */ NdrFcShort(0x8), /* offset = 8 */ /* 12 (int *) */ 0x12, 0x8, /* FC_UP [simple_pointer] */ 0x08, /* FC_LONG */ 0x5c, /* FC_PAD */ /* 16 (union ) */ NdrFcShort(0x8), /* 8 */ NdrFcShort(0x4), /* 4 */ NdrFcLong(0xa), /* 10 */ NdrFcShort(0x8008), /* Simple arm type: FC_LONG */ NdrFcLong(0xfffffffe), /* -2 */ NdrFcShort(0x800a), /* Simple arm type: FC_FLOAT */ NdrFcLong(0x7), /* 7 */ NdrFcShort(0x800a), /* Simple arm type: FC_FLOAT */ NdrFcLong(0x18f), /* 399 */ NdrFcShort(0xffffffe2), /* Offset= -30 (12) */ NdrFcShort(0xffffffff), /* 46 */ 0x2b, /* FC_NON_ENCAPSULATED_UNION */ 0x8, /* FIXME: always FC_LONG */ 0x8, /* Corr desc: FC_LONG */ 0x0, /* no operators */ NdrFcShort(0x8), /* offset = 8 */ NdrFcShort(-36), /* Offset= -36 (16) */ /* 54 (complex_t) */ 0x1a, /* FC_BOGUS_STRUCT */ 0x7, /* 7 */ NdrFcShort(0x48), /* 72 */ NdrFcShort(0x0), NdrFcShort(0x1a), /* Offset= 26 (86) */ 0x36, /* FC_POINTER */ 0x09, /* FC_ULONG */ 0x39, /* FC_ALIGNM8 */ 0x0c, /* FC_DOUBLE */ 0x0b, /* FC_HYPER */ 0x0a, /* FC_FLOAT */ 0x09, /* FC_ULONG */ 0x08, /* FC_LONG */ 0x07, /* FC_USHORT */ 0x06, /* FC_SHORT */ 0x05, /* FC_WCHAR */ 0x04, /* FC_USMALL */ 0x03, /* FC_SMALL */ 0x02, /* FC_CHAR */ 0x01, /* FC_BYTE */ 0x39, /* FC_ALIGNM8 */ 0x4c, /* FC_EMBEDDED_COMPLEX */ 0x0, /* FIXME: padding */ NdrFcShort(0xffde), /* Offset= -34 (46) */ 0x08, /* FC_LONG */ 0x40, /* FC_STRUCTPAD4 */ 0x5c, /* FC_PAD */ 0x5b, /* FC_END */ /* 86 */ 0x12, 0x0, /* FC_UP */ NdrFcShort(0xffae), /* Offset= -82 (6) */ /* 90 */ 0x11, 0x0, /* FC_RP */ NdrFcShort(0xffffffda), /* 54 */ 0x0 } }; #endif /* _WIN64 */