/* this ALWAYS GENERATED file contains the RPC client stubs */ /* File created by MIDL compiler version 3.01.75 */ /* at Wed Nov 05 19:59:17 1997 */ /* Compiler settings for .\audMsg.idl: Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext error checks: none */ //@@MIDL_FILE_HEADING( ) #include #if defined( _ALPHA_ ) #include #endif #include "audMsg.h" #define TYPE_FORMAT_STRING_SIZE 39 #define PROC_FORMAT_STRING_SIZE 41 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; extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString; extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString; /* Standard interface: audioRPC, ver. 1.0, GUID={0xc262dfb0,0x54af,0x11d1,{0xa9,0x8f,0x00,0x60,0x97,0x52,0xbf,0xb9}} */ handle_t audioRPCHandle; static RPC_PROTSEQ_ENDPOINT __RpcProtseqEndpoint[] = { {(unsigned char *) "ncacn_ip_tcp", (unsigned char *) "44533"} }; static const RPC_CLIENT_INTERFACE audioRPC___RpcClientInterface = { sizeof(RPC_CLIENT_INTERFACE), {{0xc262dfb0,0x54af,0x11d1,{0xa9,0x8f,0x00,0x60,0x97,0x52,0xbf,0xb9}},{1,0}}, {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}}, 0, 1, __RpcProtseqEndpoint, 0, 0, 0 }; RPC_IF_HANDLE audioRPC_v1_0_c_ifspec = (RPC_IF_HANDLE)& audioRPC___RpcClientInterface; extern const MIDL_STUB_DESC audioRPC_StubDesc; static RPC_BINDING_HANDLE audioRPC__MIDL_AutoBindHandle; void saveAudio( /* [in] */ audioContext ac, /* [in] */ int size, /* [size_is][in] */ unsigned char __RPC_FAR *buf) { RPC_BINDING_HANDLE _Handle = 0; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 0); _Handle = NDRCContextBinding(( NDR_CCONTEXT )ac);; _StubMsg.BufferLength = 20U + 4U + 4U; _StubMsg.MaxCount = size; NdrConformantArrayBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *)buf, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[8] ); NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrClientContextMarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT )ac, 1); *(( int __RPC_FAR * )_StubMsg.Buffer)++ = size; _StubMsg.MaxCount = size; NdrConformantArrayMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg, (unsigned char __RPC_FAR *)buf, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[8] ); NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally } void openRecord( /* [string][in] */ unsigned char __RPC_FAR *__MIDL_0000, /* [ref][out] */ audioContext __RPC_FAR *ac) { RPC_BINDING_HANDLE _Handle = 0; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 1); _Handle = audioRPCHandle; _StubMsg.BufferLength = 12U; NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *)__MIDL_0000, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] ); NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg, (unsigned char __RPC_FAR *)__MIDL_0000, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] ); NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION ) NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] ); *ac = (void *)0; NdrClientContextUnmarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT __RPC_FAR * )ac, _Handle); } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally } void closeRecord( /* [ref][out][in] */ audioContext __RPC_FAR *ac) { RPC_BINDING_HANDLE _Handle = 0; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 2); _Handle = NDRCContextBinding(( NDR_CCONTEXT )*ac);; _StubMsg.BufferLength = 20U; NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrClientContextMarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT )*ac, 0); NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION ) NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[22] ); NdrClientContextUnmarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT __RPC_FAR * )ac, _Handle); } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally } void openPlayBack( /* [string][in] */ unsigned char __RPC_FAR *__MIDL_0001, /* [ref][out] */ audioContext __RPC_FAR *ac) { RPC_BINDING_HANDLE _Handle = 0; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 3); _Handle = audioRPCHandle; _StubMsg.BufferLength = 12U; NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *)__MIDL_0001, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] ); NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg, (unsigned char __RPC_FAR *)__MIDL_0001, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] ); NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION ) NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] ); *ac = (void *)0; NdrClientContextUnmarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT __RPC_FAR * )ac, _Handle); } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally } void closePlayBack( /* [ref][out][in] */ audioContext __RPC_FAR *ac) { RPC_BINDING_HANDLE _Handle = 0; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 4); _Handle = NDRCContextBinding(( NDR_CCONTEXT )*ac);; _StubMsg.BufferLength = 20U; NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrClientContextMarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT )*ac, 0); NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION ) NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[22] ); NdrClientContextUnmarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT __RPC_FAR * )ac, _Handle); } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally } int getAudio( /* [in] */ audioContext ac, /* [in] */ int size, /* [size_is][out] */ unsigned char __RPC_FAR buf[ ]) { RPC_BINDING_HANDLE _Handle = 0; int _RetVal; RPC_MESSAGE _RpcMessage; MIDL_STUB_MESSAGE _StubMsg; RpcTryFinally { NdrClientInitializeNew( ( PRPC_MESSAGE )&_RpcMessage, ( PMIDL_STUB_MESSAGE )&_StubMsg, ( PMIDL_STUB_DESC )&audioRPC_StubDesc, 5); _Handle = NDRCContextBinding(( NDR_CCONTEXT )ac);; _StubMsg.BufferLength = 20U + 4U; NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle ); NdrClientContextMarshall( ( PMIDL_STUB_MESSAGE )&_StubMsg, ( NDR_CCONTEXT )ac, 1); *(( int __RPC_FAR * )_StubMsg.Buffer)++ = size; NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer ); if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION ) NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[28] ); NdrConformantArrayUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR * __RPC_FAR *)&buf, (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[8], (unsigned char)0 ); _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3); _RetVal = *(( int __RPC_FAR * )_StubMsg.Buffer)++; } RpcFinally { NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg ); } RpcEndFinally return _RetVal; } static const MIDL_STUB_DESC audioRPC_StubDesc = { (void __RPC_FAR *)& audioRPC___RpcClientInterface, MIDL_user_allocate, MIDL_user_free, &audioRPCHandle, 0, 0, 0, 0, __MIDL_TypeFormatString.Format, 0, /* -error bounds_check flag */ 0x10001, /* Ndr library version */ 0, 0x301004b, /* MIDL Version 3.1.75 */ 0, 0, 0, /* Reserved1 */ 0, /* Reserved2 */ 0, /* Reserved3 */ 0, /* Reserved4 */ 0 /* Reserved5 */ }; #if !defined(__RPC_WIN32__) #error Invalid build platform for this stub. #endif static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString = { 0, { 0x4d, /* FC_IN_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */ /* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */ 0x8, /* FC_LONG */ /* 6 */ 0x4d, /* FC_IN_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 8 */ NdrFcShort( 0x4 ), /* Type Offset=4 */ /* 10 */ 0x5b, /* FC_END */ 0x5c, /* FC_PAD */ /* 12 */ 0x4d, /* FC_IN_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 14 */ NdrFcShort( 0x12 ), /* Type Offset=18 */ /* 16 */ 0x51, /* FC_OUT_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 18 */ NdrFcShort( 0x16 ), /* Type Offset=22 */ /* 20 */ 0x5b, /* FC_END */ 0x5c, /* FC_PAD */ /* 22 */ 0x50, /* FC_IN_OUT_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 24 */ NdrFcShort( 0x1e ), /* Type Offset=30 */ /* 26 */ 0x5b, /* FC_END */ 0x5c, /* FC_PAD */ /* 28 */ 0x4d, /* FC_IN_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 30 */ NdrFcShort( 0x0 ), /* Type Offset=0 */ /* 32 */ 0x4e, /* FC_IN_PARAM_BASETYPE */ 0x8, /* FC_LONG */ /* 34 */ 0x51, /* FC_OUT_PARAM */ #ifndef _ALPHA_ 0x1, /* x86, MIPS & PPC Stack size = 1 */ #else 0x2, /* Alpha Stack size = 2 */ #endif /* 36 */ NdrFcShort( 0x8 ), /* Type Offset=8 */ /* 38 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */ 0x8, /* FC_LONG */ 0x0 } }; static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString = { 0, { 0x30, /* FC_BIND_CONTEXT */ 0x40, /* 64 */ /* 2 */ 0x0, /* 0 */ 0x0, /* 0 */ /* 4 */ 0x11, 0x0, /* FC_RP */ /* 6 */ NdrFcShort( 0x2 ), /* Offset= 2 (8) */ /* 8 */ 0x1b, /* FC_CARRAY */ 0x0, /* 0 */ /* 10 */ NdrFcShort( 0x1 ), /* 1 */ /* 12 */ 0x28, /* 40 */ 0x0, /* */ #ifndef _ALPHA_ /* 14 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */ #else NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */ #endif /* 16 */ 0x2, /* FC_CHAR */ 0x5b, /* FC_END */ /* 18 */ 0x11, 0x8, /* FC_RP [simple_pointer] */ /* 20 */ 0x22, /* FC_C_CSTRING */ 0x5c, /* FC_PAD */ /* 22 */ 0x11, 0x0, /* FC_RP */ /* 24 */ NdrFcShort( 0x2 ), /* Offset= 2 (26) */ /* 26 */ 0x30, /* FC_BIND_CONTEXT */ 0xa0, /* 160 */ /* 28 */ 0x0, /* 0 */ 0x1, /* 1 */ /* 30 */ 0x11, 0x0, /* FC_RP */ /* 32 */ NdrFcShort( 0x2 ), /* Offset= 2 (34) */ /* 34 */ 0x30, /* FC_BIND_CONTEXT */ 0xe0, /* 224 */ /* 36 */ 0x0, /* 0 */ 0x0, /* 0 */ 0x0 } };