⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 creditverification_p.c

📁 Visual_C++[1].NET_Bible1 Visual_C++宝典书中的全部源码
💻 C
📖 第 1 页 / 共 2 页
字号:
        if(!__MIDL_0011)
            {
            RpcRaiseException(RPC_X_NULL_REF_POINTER);
            }
        RpcTryFinally
            {
            
            _StubMsg.BufferLength = 8;
            NdrProxyGetBuffer(This, &_StubMsg);
            _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
            *(( int * )_StubMsg.Buffer)++ = i;
            
            NdrProxySendReceive(This, &_StubMsg);
            
            if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
                NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] );
            
            _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 0) & ~ 0);
            *__MIDL_0011 = *(( unsigned char * )_StubMsg.Buffer)++;
            
            _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
            
            if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
                {
                RpcRaiseException(RPC_X_BAD_STUB_DATA);
                }
            _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
            
            }
        RpcFinally
            {
            NdrProxyFreeBuffer(This, &_StubMsg);
            
            }
        RpcEndFinally
        
        }
    RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
        {
        NdrClearOutParameters(
                         ( PMIDL_STUB_MESSAGE  )&_StubMsg,
                         ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[6],
                         ( void * )__MIDL_0011);
        _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
        }
    RpcEndExcept
    return _RetVal;
}

void __RPC_STUB ICreditVerification2_GetCardType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase)
{
    unsigned char _M0	=	0;
    HRESULT _RetVal;
    MIDL_STUB_MESSAGE _StubMsg;
    unsigned char *__MIDL_0011;
    int i;
    
NdrStubInitialize(
                     _pRpcMessage,
                     &_StubMsg,
                     &Object_StubDesc,
                     _pRpcChannelBuffer);
    i = 0;
    ( unsigned char * )__MIDL_0011 = 0;
    RpcTryFinally
        {
        if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
            NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] );
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        
        if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
            {
            RpcRaiseException(RPC_X_BAD_STUB_DATA);
            }
        i = *(( int * )_StubMsg.Buffer)++;
        
        __MIDL_0011 = &_M0;
        
        *_pdwStubPhase = STUB_CALL_SERVER;
        _RetVal = (((ICreditVerification2*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetCardType(
               (ICreditVerification2 *) ((CStdStubBuffer *)This)->pvServerObject,
               i,
               __MIDL_0011);
        
        *_pdwStubPhase = STUB_MARSHAL;
        
        _StubMsg.BufferLength = 33;
        NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 0) & ~ 0);
        *(( unsigned char * )_StubMsg.Buffer)++ = *__MIDL_0011;
        
        _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
        *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
        
        }
    RpcFinally
        {
        }
    RpcEndFinally
    _pRpcMessage->BufferLength = 
        (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
    
}



#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 */	0x53,		/* FC_RETURN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/*  6 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/*  8 */	0x53,		/* FC_RETURN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 10 */	0x53,		/* FC_RETURN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 12 */	0x4e,		/* FC_IN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */
/* 14 */	
			0x51,		/* FC_OUT_PARAM */
			0x1,		/* x86 stack size = 1 */
/* 16 */	NdrFcShort( 0x6 ),	/* Type Offset=6 */
/* 18 */	0x53,		/* FC_RETURN_PARAM_BASETYPE */
			0x8,		/* FC_LONG */

			0x0
        }
    };

static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
    {
        0,
        {
			NdrFcShort( 0x0 ),	/* 0 */
/*  2 */	
			0x11, 0x8,	/* FC_RP [simple_pointer] */
/*  4 */	0x2,		/* FC_CHAR */
			0x5c,		/* FC_PAD */
/*  6 */	
			0x11, 0xc,	/* FC_RP [alloced_on_stack] [simple_pointer] */
/*  8 */	0x2,		/* FC_CHAR */
			0x5c,		/* FC_PAD */

			0x0
        }
    };


/* Object interface: IUnknown, ver. 0.0,
   GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */


/* Object interface: ICreditVerification, ver. 0.0,
   GUID={0xcbb27840,0x836d,0x11d1,{0xb9,0x90,0x00,0x80,0xc8,0x24,0xb3,0x23}} */

#pragma code_seg(".orpc")
static const unsigned short ICreditVerification_FormatStringOffsetTable[] =
    {
    0,
    6
    };

static const MIDL_STUBLESS_PROXY_INFO ICreditVerification_ProxyInfo =
    {
    &Object_StubDesc,
    __MIDL_ProcFormatString.Format,
    &ICreditVerification_FormatStringOffsetTable[-3],
    0,
    0,
    0
    };


static const MIDL_SERVER_INFO ICreditVerification_ServerInfo = 
    {
    &Object_StubDesc,
    0,
    __MIDL_ProcFormatString.Format,
    &ICreditVerification_FormatStringOffsetTable[-3],
    0,
    0,
    0,
    0};
const CINTERFACE_PROXY_VTABLE(5) _ICreditVerificationProxyVtbl = 
{
    &IID_ICreditVerification,
    IUnknown_QueryInterface_Proxy,
    IUnknown_AddRef_Proxy,
    IUnknown_Release_Proxy ,
    ICreditVerification_SetCardType_Proxy ,
    ICreditVerification_VerifyCardNumber_Proxy
};


static const PRPC_STUB_FUNCTION ICreditVerification_table[] =
{
    ICreditVerification_SetCardType_Stub,
    ICreditVerification_VerifyCardNumber_Stub
};

const CInterfaceStubVtbl _ICreditVerificationStubVtbl =
{
    &IID_ICreditVerification,
    &ICreditVerification_ServerInfo,
    5,
    &ICreditVerification_table[-3],
    CStdStubBuffer_METHODS
};


/* Object interface: ISomethingElse, ver. 0.0,
   GUID={0xd6925520,0x8505,0x11d1,{0xb9,0x90,0x00,0x80,0xc8,0x24,0xb3,0x23}} */

#pragma code_seg(".orpc")
static const unsigned short ISomethingElse_FormatStringOffsetTable[] =
    {
    10
    };

static const MIDL_STUBLESS_PROXY_INFO ISomethingElse_ProxyInfo =
    {
    &Object_StubDesc,
    __MIDL_ProcFormatString.Format,
    &ISomethingElse_FormatStringOffsetTable[-3],
    0,
    0,
    0
    };


static const MIDL_SERVER_INFO ISomethingElse_ServerInfo = 
    {
    &Object_StubDesc,
    0,
    __MIDL_ProcFormatString.Format,
    &ISomethingElse_FormatStringOffsetTable[-3],
    0,
    0,
    0,
    0};
const CINTERFACE_PROXY_VTABLE(4) _ISomethingElseProxyVtbl = 
{
    &IID_ISomethingElse,
    IUnknown_QueryInterface_Proxy,
    IUnknown_AddRef_Proxy,
    IUnknown_Release_Proxy ,
    ISomethingElse_Foo_Proxy
};


static const PRPC_STUB_FUNCTION ISomethingElse_table[] =
{
    ISomethingElse_Foo_Stub
};

const CInterfaceStubVtbl _ISomethingElseStubVtbl =
{
    &IID_ISomethingElse,
    &ISomethingElse_ServerInfo,
    4,
    &ISomethingElse_table[-3],
    CStdStubBuffer_METHODS
};


/* Object interface: ICreditVerification2, ver. 0.0,
   GUID={0xd6925522,0x8505,0x11d1,{0xb9,0x90,0x00,0x80,0xc8,0x24,0xb3,0x23}} */

#pragma code_seg(".orpc")
static const unsigned short ICreditVerification2_FormatStringOffsetTable[] =
    {
    0,
    6,
    12
    };

static const MIDL_STUBLESS_PROXY_INFO ICreditVerification2_ProxyInfo =
    {
    &Object_StubDesc,
    __MIDL_ProcFormatString.Format,
    &ICreditVerification2_FormatStringOffsetTable[-3],
    0,
    0,
    0
    };


static const MIDL_SERVER_INFO ICreditVerification2_ServerInfo = 
    {
    &Object_StubDesc,
    0,
    __MIDL_ProcFormatString.Format,
    &ICreditVerification2_FormatStringOffsetTable[-3],
    0,
    0,
    0,
    0};
const CINTERFACE_PROXY_VTABLE(6) _ICreditVerification2ProxyVtbl = 
{
    &IID_ICreditVerification2,
    IUnknown_QueryInterface_Proxy,
    IUnknown_AddRef_Proxy,
    IUnknown_Release_Proxy ,
    ICreditVerification_SetCardType_Proxy ,
    ICreditVerification_VerifyCardNumber_Proxy ,
    ICreditVerification2_GetCardType_Proxy
};


static const PRPC_STUB_FUNCTION ICreditVerification2_table[] =
{
    ICreditVerification_SetCardType_Stub,
    ICreditVerification_VerifyCardNumber_Stub,
    ICreditVerification2_GetCardType_Stub
};

const CInterfaceStubVtbl _ICreditVerification2StubVtbl =
{
    &IID_ICreditVerification2,
    &ICreditVerification2_ServerInfo,
    6,
    &ICreditVerification2_table[-3],
    CStdStubBuffer_METHODS
};

static const MIDL_STUB_DESC Object_StubDesc = 
    {
    0,
    NdrOleAllocate,
    NdrOleFree,
    0,
    0,
    0,
    0,
    0,
    __MIDL_TypeFormatString.Format,
    1, /* -error bounds_check flag */
    0x10001, /* Ndr library version */
    0,
    0x6000156, /* MIDL Version 6.0.342 */
    0,
    0,
    0,  /* notify & notify_flag routine table */
    0x1, /* MIDL flag */
    0, /* cs routines */
    0,   /* proxy/server info */
    0   /* Reserved5 */
    };

const CInterfaceProxyVtbl * _CreditVerification_ProxyVtblList[] = 
{
    ( CInterfaceProxyVtbl *) &_ISomethingElseProxyVtbl,
    ( CInterfaceProxyVtbl *) &_ICreditVerification2ProxyVtbl,
    ( CInterfaceProxyVtbl *) &_ICreditVerificationProxyVtbl,
    0
};

const CInterfaceStubVtbl * _CreditVerification_StubVtblList[] = 
{
    ( CInterfaceStubVtbl *) &_ISomethingElseStubVtbl,
    ( CInterfaceStubVtbl *) &_ICreditVerification2StubVtbl,
    ( CInterfaceStubVtbl *) &_ICreditVerificationStubVtbl,
    0
};

PCInterfaceName const _CreditVerification_InterfaceNamesList[] = 
{
    "ISomethingElse",
    "ICreditVerification2",
    "ICreditVerification",
    0
};


#define _CreditVerification_CHECK_IID(n)	IID_GENERIC_CHECK_IID( _CreditVerification, pIID, n)

int __stdcall _CreditVerification_IID_Lookup( const IID * pIID, int * pIndex )
{
    IID_BS_LOOKUP_SETUP

    IID_BS_LOOKUP_INITIAL_TEST( _CreditVerification, 3, 2 )
    IID_BS_LOOKUP_NEXT_TEST( _CreditVerification, 1 )
    IID_BS_LOOKUP_RETURN_RESULT( _CreditVerification, 3, *pIndex )
    
}

const ExtendedProxyFileInfo CreditVerification_ProxyFileInfo = 
{
    (PCInterfaceProxyVtblList *) & _CreditVerification_ProxyVtblList,
    (PCInterfaceStubVtblList *) & _CreditVerification_StubVtblList,
    (const PCInterfaceName * ) & _CreditVerification_InterfaceNamesList,
    0, // no delegation
    & _CreditVerification_IID_Lookup, 
    3,
    1,
    0, /* table of [async_uuid] interfaces */
    0, /* Filler1 */
    0, /* Filler2 */
    0  /* Filler3 */
};


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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -