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

📄 creditverification_s.c

📁 Visual_C++[1].NET_Bible1 Visual_C++宝典书中的全部源码
💻 C
📖 第 1 页 / 共 2 页
字号:
   GUID={0xd6925522,0x8505,0x11d1,{0xb9,0x90,0x00,0x80,0xc8,0x24,0xb3,0x23}} */


extern RPC_DISPATCH_TABLE ICreditVerification2_v0_0_DispatchTable;

static const RPC_SERVER_INTERFACE ICreditVerification2___RpcServerInterface =
    {
    sizeof(RPC_SERVER_INTERFACE),
    {{0xd6925522,0x8505,0x11d1,{0xb9,0x90,0x00,0x80,0xc8,0x24,0xb3,0x23}},{0,0}},
    {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
    &ICreditVerification2_v0_0_DispatchTable,
    0,
    0,
    0,
    0,
    0x00000000
    };
RPC_IF_HANDLE ICreditVerification2_v0_0_s_ifspec = (RPC_IF_HANDLE)& ICreditVerification2___RpcServerInterface;

extern const MIDL_STUB_DESC ICreditVerification2_StubDesc;

void __RPC_STUB
ICreditVerification2_GetCardType(
    PRPC_MESSAGE _pRpcMessage )
{
    unsigned char _M0	=	0;
    HRESULT _RetVal;
    MIDL_STUB_MESSAGE _StubMsg;
    unsigned char *__MIDL_0011;
    int i;
    RPC_STATUS _Status;
    
    ((void)(_Status));
    NdrServerInitializeNew(
                          _pRpcMessage,
                          &_StubMsg,
                          &ICreditVerification2_StubDesc);
    
    i = 0;
    ( unsigned char * )__MIDL_0011 = 0;
    RpcTryFinally
        {
        RpcTryExcept
            {
            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)++;
            
            if(_StubMsg.Buffer > _StubMsg.BufferEnd)
                {
                RpcRaiseException(RPC_X_BAD_STUB_DATA);
                }
            }
        RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER )
            {
            RpcRaiseException(RPC_X_BAD_STUB_DATA);
            }
        RpcEndExcept
        __MIDL_0011 = &_M0;
        
        _RetVal = GetCardType(i,__MIDL_0011);
        
        _StubMsg.BufferLength = 33;
        _pRpcMessage->BufferLength = _StubMsg.BufferLength;
        
        _Status = I_RpcGetBuffer( _pRpcMessage ); 
        if ( _Status )
            RpcRaiseException( _Status );
        
        _StubMsg.Buffer = (unsigned char *) _pRpcMessage->Buffer;
        
        _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
        }
    };

static const unsigned short ICreditVerification_FormatStringOffsetTable[] =
    {
    0,
    6
    };


static const MIDL_STUB_DESC ICreditVerification_StubDesc = 
    {
    (void *)& ICreditVerification___RpcServerInterface,
    MIDL_user_allocate,
    MIDL_user_free,
    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 */
    };

static RPC_DISPATCH_FUNCTION ICreditVerification_table[] =
    {
    ICreditVerification_SetCardType,
    ICreditVerification_VerifyCardNumber,
    0
    };
RPC_DISPATCH_TABLE ICreditVerification_v0_0_DispatchTable = 
    {
    2,
    ICreditVerification_table
    };

static const unsigned short ISomethingElse_FormatStringOffsetTable[] =
    {
    10
    };


static const MIDL_STUB_DESC ISomethingElse_StubDesc = 
    {
    (void *)& ISomethingElse___RpcServerInterface,
    MIDL_user_allocate,
    MIDL_user_free,
    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 */
    };

static RPC_DISPATCH_FUNCTION ISomethingElse_table[] =
    {
    ISomethingElse_Foo,
    0
    };
RPC_DISPATCH_TABLE ISomethingElse_v0_0_DispatchTable = 
    {
    1,
    ISomethingElse_table
    };

static const unsigned short ICreditVerification2_FormatStringOffsetTable[] =
    {
    12
    };


static const MIDL_STUB_DESC ICreditVerification2_StubDesc = 
    {
    (void *)& ICreditVerification2___RpcServerInterface,
    MIDL_user_allocate,
    MIDL_user_free,
    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 */
    };

static RPC_DISPATCH_FUNCTION ICreditVerification2_table[] =
    {
    ICreditVerification2_GetCardType,
    0
    };
RPC_DISPATCH_TABLE ICreditVerification2_v0_0_DispatchTable = 
    {
    1,
    ICreditVerification2_table
    };


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

⌨️ 快捷键说明

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