
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the RPC client stubs */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Sun Aug 11 16:09:02 2002
 */
/* Compiler settings for \clarkson\studiobridge\src\BridgeCommon\bridgeclient.idl:
    Os, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, app_config, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#if !defined(_M_IA64) && !defined(_M_AMD64)
#include <string.h>

#include "bridgeclient_h.h"

#define TYPE_FORMAT_STRING_SIZE   75                                
#define PROC_FORMAT_STRING_SIZE   37                                
#define TRANSMIT_AS_TABLE_SIZE    0            
#define WIRE_MARSHAL_TABLE_SIZE   0            

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 RPC_SYNTAX_IDENTIFIER  _RpcTransferSyntax = 
{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}};


extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;

#define GENERIC_BINDING_TABLE_SIZE   0            


/* Standard interface: bridgeclient, ver. 1.0,
   GUID={0xa8c889c2,0x0b99,0x46c3,{0xbf,0x89,0x30,0x2d,0x81,0xff,0x53,0x41}} */



static const RPC_CLIENT_INTERFACE bridgeclient___RpcClientInterface =
    {
    sizeof(RPC_CLIENT_INTERFACE),
    {{0xa8c889c2,0x0b99,0x46c3,{0xbf,0x89,0x30,0x2d,0x81,0xff,0x53,0x41}},{1,0}},
    {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
    0,
    0,
    0,
    0,
    0,
    0x00000000
    };
RPC_IF_HANDLE bridgeclient_v1_0_c_ifspec = (RPC_IF_HANDLE)& bridgeclient___RpcClientInterface;

extern const MIDL_STUB_DESC bridgeclient_StubDesc;

static RPC_BINDING_HANDLE bridgeclient__MIDL_AutoBindHandle;


void InstantMessageNotify( 
    /* [in] */ HBC __MIDL_0000,
    /* [in] */ int senderId,
    /* [string][in] */ wchar_t *sender,
    /* [in] */ int recipientId,
    /* [string][in] */ wchar_t *recipient,
    /* [string][in] */ wchar_t *msg)
{

    RPC_BINDING_HANDLE _Handle	=	0;
    
    RPC_MESSAGE _RpcMessage;
    
    MIDL_STUB_MESSAGE _StubMsg;
    
    if(!__MIDL_0000)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!sender)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!recipient)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!msg)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    RpcTryFinally
        {
        NdrClientInitializeNew(
                          ( PRPC_MESSAGE  )&_RpcMessage,
                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
                          ( PMIDL_STUB_DESC  )&bridgeclient_StubDesc,
                          0);
        
        
        _Handle = HBC_bind(__MIDL_0000);;
        
        if(_Handle == 0)
            {
            RpcRaiseException(RPC_S_INVALID_BINDING);
            }
        
        _StubMsg.BufferLength = 182;
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)sender,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)recipient,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)msg,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
        
        NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                 (unsigned char *)__MIDL_0000,
                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = senderId;
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)sender,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = recipientId;
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)recipient,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)msg,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char *) _StubMsg.Buffer );
        
        _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
        _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
        
        }
    RpcFinally
        {
        NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
        
        
        if(_Handle)
            {
            HBC_unbind(__MIDL_0000,_Handle);
            }
        }
    RpcEndFinally
    
}


void GroupMessageNotify( 
    /* [in] */ HBC __MIDL_0001,
    /* [in] */ int senderId,
    /* [string][in] */ wchar_t *sender,
    /* [in] */ int recipientId,
    /* [string][in] */ wchar_t *recipient,
    /* [string][in] */ wchar_t *msg)
{

    RPC_BINDING_HANDLE _Handle	=	0;
    
    RPC_MESSAGE _RpcMessage;
    
    MIDL_STUB_MESSAGE _StubMsg;
    
    if(!__MIDL_0001)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!sender)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!recipient)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    if(!msg)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    RpcTryFinally
        {
        NdrClientInitializeNew(
                          ( PRPC_MESSAGE  )&_RpcMessage,
                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
                          ( PMIDL_STUB_DESC  )&bridgeclient_StubDesc,
                          1);
        
        
        _Handle = HBC_bind(__MIDL_0001);;
        
        if(_Handle == 0)
            {
            RpcRaiseException(RPC_S_INVALID_BINDING);
            }
        
        _StubMsg.BufferLength = 182;
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)sender,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)recipient,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
                                       (unsigned char *)msg,
                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
        
        NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                 (unsigned char *)__MIDL_0001,
                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = senderId;
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)sender,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = recipientId;
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)recipient,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                     (unsigned char *)msg,
                                     (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[72] );
        
        NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char *) _StubMsg.Buffer );
        
        _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
        _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
        
        }
    RpcFinally
        {
        NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
        
        
        if(_Handle)
            {
            HBC_unbind(__MIDL_0001,_Handle);
            }
        }
    RpcEndFinally
    
}


void ClientNotify( 
    /* [in] */ HBC __MIDL_0002,
    /* [in] */ int type,
    /* [in] */ int theId,
    /* [in] */ int reason,
    /* [in] */ int param)
{

    RPC_BINDING_HANDLE _Handle	=	0;
    
    RPC_MESSAGE _RpcMessage;
    
    MIDL_STUB_MESSAGE _StubMsg;
    
    if(!__MIDL_0002)
        {
        RpcRaiseException(RPC_X_NULL_REF_POINTER);
        }
    RpcTryFinally
        {
        NdrClientInitializeNew(
                          ( PRPC_MESSAGE  )&_RpcMessage,
                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
                          ( PMIDL_STUB_DESC  )&bridgeclient_StubDesc,
                          2);
        
        
        _Handle = HBC_bind(__MIDL_0002);;
        
        if(_Handle == 0)
            {
            RpcRaiseException(RPC_S_INVALID_BINDING);
            }
        
        _StubMsg.BufferLength = 198;
        NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
        
        NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
                                 (unsigned char *)__MIDL_0002,
                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = type;
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = theId;
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = reason;
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( int * )_StubMsg.Buffer)++ = param;
        
        NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char *) _StubMsg.Buffer );
        
        _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
        _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
        
        }
    RpcFinally
        {
        NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
        
        
        if(_Handle)
            {
            HBC_unbind(__MIDL_0002,_Handle);
            }
        }
    RpcEndFinally
    
}


#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 */
			0x1,		/* x86 stack size = 1 */
/*  2 */	NdrFcShort( 0x2 ),	/* Type Offset=2 */
/*  4 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/*  6 */	
			0x4d,		/* FC_IN_PARAM */
			0x1,		/* x86 stack size = 1 */
/*  8 */	NdrFcShort( 0x46 ),	/* Type Offset=70 */
/* 10 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 12 */	
			0x4d,		/* FC_IN_PARAM */
			0x1,		/* x86 stack size = 1 */
/* 14 */	NdrFcShort( 0x46 ),	/* Type Offset=70 */
/* 16 */	
			0x4d,		/* FC_IN_PARAM */
			0x1,		/* x86 stack size = 1 */
/* 18 */	NdrFcShort( 0x46 ),	/* Type Offset=70 */
/* 20 */	0x5b,		/* FC_END */
			0x5c,		/* FC_PAD */
/* 22 */	
			0x4d,		/* FC_IN_PARAM */
			0x1,		/* x86 stack size = 1 */
/* 24 */	NdrFcShort( 0x2 ),	/* Type Offset=2 */
/* 26 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 28 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 30 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 32 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 34 */	0x5b,		/* FC_END */
			0x5c,		/* FC_PAD */

			0x0
        }
    };

static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
    {
        0,
        {
			NdrFcShort( 0x0 ),	/* 0 */
/*  2 */	
			0x11, 0x0,	/* FC_RP */
/*  4 */	NdrFcShort( 0x2 ),	/* Offset= 2 (6) */
/*  6 */	
			0x16,		/* FC_PSTRUCT */
			0x3,		/* 3 */
/*  8 */	NdrFcShort( 0x14 ),	/* 20 */
/* 10 */	
			0x4b,		/* FC_PP */
			0x5c,		/* FC_PAD */
/* 12 */	
			0x46,		/* FC_NO_REPEAT */
			0x5c,		/* FC_PAD */
/* 14 */	NdrFcShort( 0x0 ),	/* 0 */
/* 16 */	NdrFcShort( 0x0 ),	/* 0 */
/* 18 */	0x12, 0x8,	/* FC_UP [simple_pointer] */
/* 20 */	0x5,		/* FC_WCHAR */
			0x5c,		/* FC_PAD */
/* 22 */	
			0x46,		/* FC_NO_REPEAT */
			0x5c,		/* FC_PAD */
/* 24 */	NdrFcShort( 0x4 ),	/* 4 */
/* 26 */	NdrFcShort( 0x4 ),	/* 4 */
/* 28 */	0x12, 0x8,	/* FC_UP [simple_pointer] */
/* 30 */	0x5,		/* FC_WCHAR */
			0x5c,		/* FC_PAD */
/* 32 */	
			0x46,		/* FC_NO_REPEAT */
			0x5c,		/* FC_PAD */
/* 34 */	NdrFcShort( 0x8 ),	/* 8 */
/* 36 */	NdrFcShort( 0x8 ),	/* 8 */
/* 38 */	0x12, 0x8,	/* FC_UP [simple_pointer] */
/* 40 */	0x5,		/* FC_WCHAR */
			0x5c,		/* FC_PAD */
/* 42 */	
			0x46,		/* FC_NO_REPEAT */
			0x5c,		/* FC_PAD */
/* 44 */	NdrFcShort( 0xc ),	/* 12 */
/* 46 */	NdrFcShort( 0xc ),	/* 12 */
/* 48 */	0x12, 0x8,	/* FC_UP [simple_pointer] */
/* 50 */	0x5,		/* FC_WCHAR */
			0x5c,		/* FC_PAD */
/* 52 */	
			0x46,		/* FC_NO_REPEAT */
			0x5c,		/* FC_PAD */
/* 54 */	NdrFcShort( 0x10 ),	/* 16 */
/* 56 */	NdrFcShort( 0x10 ),	/* 16 */
/* 58 */	0x12, 0x8,	/* FC_UP [simple_pointer] */
/* 60 */	0x5,		/* FC_WCHAR */
			0x5c,		/* FC_PAD */
/* 62 */	
			0x5b,		/* FC_END */

			0x8,		/* FC_LONG */
/* 64 */	0x8,		/* FC_LONG */
			0x8,		/* FC_LONG */
/* 66 */	0x8,		/* FC_LONG */
			0x8,		/* FC_LONG */
/* 68 */	0x5c,		/* FC_PAD */
			0x5b,		/* FC_END */
/* 70 */	
			0x11, 0x8,	/* FC_RP [simple_pointer] */
/* 72 */	
			0x25,		/* FC_C_WSTRING */
			0x5c,		/* FC_PAD */

			0x0
        }
    };

static const unsigned short bridgeclient_FormatStringOffsetTable[] =
    {
    0,
    0,
    22
    };


static const MIDL_STUB_DESC bridgeclient_StubDesc = 
    {
    (void *)& bridgeclient___RpcClientInterface,
    MIDL_user_allocate,
    MIDL_user_free,
    &bridgeclient__MIDL_AutoBindHandle,
    0,
    0,
    0,
    0,
    __MIDL_TypeFormatString.Format,
    1, /* -error bounds_check flag */
    0x10001, /* Ndr library version */
    0,
    0x600015b, /* MIDL Version 6.0.347 */
    0,
    0,
    0,  /* notify & notify_flag routine table */
    0x1, /* MIDL flag */
    0, /* cs routines */
    0,   /* proxy/server info */
    0   /* Reserved5 */
    };


#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

