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

📄 chapter4_server_p.c

📁 ATL开发指南PDF格式
💻 C
📖 第 1 页 / 共 2 页
字号:
/* 104 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 106 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure Divide */


	/* Procedure Divide */

/* 108 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 110 */	NdrFcShort( 0x6 ),	/* 6 */
#ifndef _ALPHA_
/* 112 */	NdrFcShort( 0x14 ),	/* x86, MIPS, PPC Stack size/offset = 20 */
#else
			NdrFcShort( 0x28 ),	/* Alpha Stack size/offset = 40 */
#endif
/* 114 */	NdrFcShort( 0x10 ),	/* 16 */
/* 116 */	NdrFcShort( 0x10 ),	/* 16 */
/* 118 */	0x4,		/* 4 */
			0x4,		/* 4 */

	/* Parameter lOp1 */


	/* Parameter lOp1 */

/* 120 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 122 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 124 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Parameter lOp2 */


	/* Parameter lOp2 */

/* 126 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 128 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 130 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Parameter plResult */


	/* Parameter plResult */

/* 132 */	NdrFcShort( 0x2150 ),	/* 8528 */
#ifndef _ALPHA_
/* 134 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 136 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Return value */


	/* Return value */

/* 138 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 140 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 142 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure Factorial */

/* 144 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 146 */	NdrFcShort( 0x3 ),	/* 3 */
#ifndef _ALPHA_
/* 148 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 150 */	NdrFcShort( 0x6 ),	/* 6 */
/* 152 */	NdrFcShort( 0x10 ),	/* 16 */
/* 154 */	0x4,		/* 4 */
			0x3,		/* 3 */

	/* Parameter sFact */

/* 156 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 158 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 160 */	0x6,		/* FC_SHORT */
			0x0,		/* 0 */

	/* Parameter pResult */

/* 162 */	NdrFcShort( 0x2150 ),	/* 8528 */
#ifndef _ALPHA_
/* 164 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 166 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Return value */

/* 168 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 170 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 172 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure Fibonacci */

/* 174 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 176 */	NdrFcShort( 0x4 ),	/* 4 */
#ifndef _ALPHA_
/* 178 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 180 */	NdrFcShort( 0x6 ),	/* 6 */
/* 182 */	NdrFcShort( 0x10 ),	/* 16 */
/* 184 */	0x4,		/* 4 */
			0x3,		/* 3 */

	/* Parameter sFib */

/* 186 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 188 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 190 */	0x6,		/* FC_SHORT */
			0x0,		/* 0 */

	/* Parameter pResult */

/* 192 */	NdrFcShort( 0x2150 ),	/* 8528 */
#ifndef _ALPHA_
/* 194 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 196 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Return value */

/* 198 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 200 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 202 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure get_Info */

/* 204 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 206 */	NdrFcShort( 0x3 ),	/* 3 */
#ifndef _ALPHA_
/* 208 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 210 */	NdrFcShort( 0x0 ),	/* 0 */
/* 212 */	NdrFcShort( 0x8 ),	/* 8 */
/* 214 */	0x5,		/* 5 */
			0x2,		/* 2 */

	/* Parameter pInfo */

/* 216 */	NdrFcShort( 0x2013 ),	/* 8211 */
#ifndef _ALPHA_
/* 218 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 220 */	NdrFcShort( 0x4 ),	/* Type Offset=4 */

	/* Return value */

/* 222 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 224 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 226 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure get_Name */

/* 228 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 230 */	NdrFcShort( 0x4 ),	/* 4 */
#ifndef _ALPHA_
/* 232 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 234 */	NdrFcShort( 0x0 ),	/* 0 */
/* 236 */	NdrFcShort( 0x8 ),	/* 8 */
/* 238 */	0x5,		/* 5 */
			0x2,		/* 2 */

	/* Parameter bstrName */

/* 240 */	NdrFcShort( 0x2113 ),	/* 8467 */
#ifndef _ALPHA_
/* 242 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 244 */	NdrFcShort( 0x46 ),	/* Type Offset=70 */

	/* Return value */

/* 246 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 248 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 250 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure Sum */

/* 252 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 254 */	NdrFcShort( 0x7 ),	/* 7 */
#ifndef _ALPHA_
/* 256 */	NdrFcShort( 0x14 ),	/* x86, MIPS, PPC Stack size/offset = 20 */
#else
			NdrFcShort( 0x28 ),	/* Alpha Stack size/offset = 40 */
#endif
/* 258 */	NdrFcShort( 0x6 ),	/* 6 */
/* 260 */	NdrFcShort( 0x10 ),	/* 16 */
/* 262 */	0x6,		/* 6 */
			0x4,		/* 4 */

	/* Parameter sArraySize */

/* 264 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 266 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 268 */	0x6,		/* FC_SHORT */
			0x0,		/* 0 */

	/* Parameter sArray */

/* 270 */	NdrFcShort( 0xb ),	/* 11 */
#ifndef _ALPHA_
/* 272 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 274 */	NdrFcShort( 0x50 ),	/* Type Offset=80 */

	/* Parameter lResult */

/* 276 */	NdrFcShort( 0x2150 ),	/* 8528 */
#ifndef _ALPHA_
/* 278 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 280 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Return value */

/* 282 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 284 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 286 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure Compute */

/* 288 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 290 */	NdrFcShort( 0x8 ),	/* 8 */
#ifndef _ALPHA_
/* 292 */	NdrFcShort( 0x18 ),	/* x86, MIPS, PPC Stack size/offset = 24 */
#else
			NdrFcShort( 0x30 ),	/* Alpha Stack size/offset = 48 */
#endif
/* 294 */	NdrFcShort( 0x16 ),	/* 22 */
/* 296 */	NdrFcShort( 0x10 ),	/* 16 */
/* 298 */	0x4,		/* 4 */
			0x5,		/* 5 */

	/* Parameter enumOp */

/* 300 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 302 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 304 */	0xd,		/* FC_ENUM16 */
			0x0,		/* 0 */

	/* Parameter lOp1 */

/* 306 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 308 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 310 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Parameter lOp2 */

/* 312 */	NdrFcShort( 0x48 ),	/* 72 */
#ifndef _ALPHA_
/* 314 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 316 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Parameter plResult */

/* 318 */	NdrFcShort( 0x2150 ),	/* 8528 */
#ifndef _ALPHA_
/* 320 */	NdrFcShort( 0x10 ),	/* x86, MIPS, PPC Stack size/offset = 16 */
#else
			NdrFcShort( 0x20 ),	/* Alpha Stack size/offset = 32 */
#endif
/* 322 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Return value */

/* 324 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 326 */	NdrFcShort( 0x14 ),	/* x86, MIPS, PPC Stack size/offset = 20 */
#else
			NdrFcShort( 0x28 ),	/* Alpha Stack size/offset = 40 */
#endif
/* 328 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

	/* Procedure get_AdvancedMath */

/* 330 */	0x33,		/* FC_AUTO_HANDLE */
			0x64,		/* 100 */
/* 332 */	NdrFcShort( 0x9 ),	/* 9 */
#ifndef _ALPHA_
/* 334 */	NdrFcShort( 0xc ),	/* x86, MIPS, PPC Stack size/offset = 12 */
#else
			NdrFcShort( 0x18 ),	/* Alpha Stack size/offset = 24 */
#endif
/* 336 */	NdrFcShort( 0x0 ),	/* 0 */
/* 338 */	NdrFcShort( 0x8 ),	/* 8 */
/* 340 */	0x5,		/* 5 */
			0x2,		/* 2 */

	/* Parameter ppVal */

/* 342 */	NdrFcShort( 0x13 ),	/* 19 */
#ifndef _ALPHA_
/* 344 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 346 */	NdrFcShort( 0x5a ),	/* Type Offset=90 */

	/* Return value */

/* 348 */	NdrFcShort( 0x70 ),	/* 112 */
#ifndef _ALPHA_
/* 350 */	NdrFcShort( 0x8 ),	/* x86, MIPS, PPC Stack size/offset = 8 */
#else
			NdrFcShort( 0x10 ),	/* Alpha Stack size/offset = 16 */
#endif
/* 352 */	0x8,		/* FC_LONG */
			0x0,		/* 0 */

			0x0
        }
    };

static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
    {
        0,
        {
			0x11, 0xc,	/* FC_RP [alloced_on_stack] [simple_pointer] */
/*  2 */	0x8,		/* FC_LONG */
			0x5c,		/* FC_PAD */
/*  4 */	
			0x11, 0x14,	/* FC_RP [alloced_on_stack] */
/*  6 */	NdrFcShort( 0x2 ),	/* Offset= 2 (8) */
/*  8 */	
			0x13, 0x0,	/* FC_OP */
/* 10 */	NdrFcShort( 0x24 ),	/* Offset= 36 (46) */
/* 12 */	
			0x13, 0x0,	/* FC_OP */
/* 14 */	NdrFcShort( 0xc ),	/* Offset= 12 (26) */
/* 16 */	
			0x1b,		/* FC_CARRAY */
			0x1,		/* 1 */
/* 18 */	NdrFcShort( 0x2 ),	/* 2 */
/* 20 */	0x9,		/* 9 */
			0x0,		/*  */
/* 22 */	NdrFcShort( 0xfffffffc ),	/* -4 */
/* 24 */	0x6,		/* FC_SHORT */
			0x5b,		/* FC_END */
/* 26 */	
			0x17,		/* FC_CSTRUCT */
			0x3,		/* 3 */
/* 28 */	NdrFcShort( 0x8 ),	/* 8 */
/* 30 */	NdrFcShort( 0xfffffff2 ),	/* Offset= -14 (16) */
/* 32 */	0x8,		/* FC_LONG */
			0x8,		/* FC_LONG */
/* 34 */	0x5c,		/* FC_PAD */
			0x5b,		/* FC_END */
/* 36 */	0xb4,		/* FC_USER_MARSHAL */
			0x83,		/* 131 */
/* 38 */	NdrFcShort( 0x0 ),	/* 0 */
/* 40 */	NdrFcShort( 0x4 ),	/* 4 */
/* 42 */	NdrFcShort( 0x0 ),	/* 0 */
/* 44 */	NdrFcShort( 0xffffffe0 ),	/* Offset= -32 (12) */
/* 46 */	
			0x1a,		/* FC_BOGUS_STRUCT */
			0x3,		/* 3 */
/* 48 */	NdrFcShort( 0xc ),	/* 12 */
/* 50 */	NdrFcShort( 0x0 ),	/* 0 */
/* 52 */	NdrFcShort( 0xa ),	/* Offset= 10 (62) */
/* 54 */	0x36,		/* FC_POINTER */
			0x6,		/* FC_SHORT */
/* 56 */	0x6,		/* FC_SHORT */
			0x4c,		/* FC_EMBEDDED_COMPLEX */
/* 58 */	0x0,		/* 0 */
			NdrFcShort( 0xffffffe9 ),	/* Offset= -23 (36) */
			0x5b,		/* FC_END */
/* 62 */	
			0x13, 0x8,	/* FC_OP [simple_pointer] */
/* 64 */	
			0x22,		/* FC_C_CSTRING */
			0x5c,		/* FC_PAD */
/* 66 */	
			0x11, 0x4,	/* FC_RP [alloced_on_stack] */
/* 68 */	NdrFcShort( 0x2 ),	/* Offset= 2 (70) */
/* 70 */	0xb4,		/* FC_USER_MARSHAL */
			0x83,		/* 131 */
/* 72 */	NdrFcShort( 0x0 ),	/* 0 */
/* 74 */	NdrFcShort( 0x4 ),	/* 4 */
/* 76 */	NdrFcShort( 0x0 ),	/* 0 */
/* 78 */	NdrFcShort( 0xffffffbe ),	/* Offset= -66 (12) */
/* 80 */	
			0x1b,		/* FC_CARRAY */
			0x1,		/* 1 */
/* 82 */	NdrFcShort( 0x2 ),	/* 2 */
/* 84 */	0x26,		/* 38 */
			0x0,		/*  */
#ifndef _ALPHA_
/* 86 */	NdrFcShort( 0x4 ),	/* x86, MIPS, PPC Stack size/offset = 4 */
#else
			NdrFcShort( 0x8 ),	/* Alpha Stack size/offset = 8 */
#endif
/* 88 */	0x6,		/* FC_SHORT */
			0x5b,		/* FC_END */
/* 90 */	
			0x11, 0x10,	/* FC_RP */
/* 92 */	NdrFcShort( 0x2 ),	/* Offset= 2 (94) */
/* 94 */	
			0x2f,		/* FC_IP */
			0x5a,		/* FC_CONSTANT_IID */
/* 96 */	NdrFcLong( 0x984d09a1 ),	/* -1739781727 */
/* 100 */	NdrFcShort( 0x3379 ),	/* 13177 */
/* 102 */	NdrFcShort( 0x11d1 ),	/* 4561 */
/* 104 */	0x88,		/* 136 */
			0x3a,		/* 58 */
/* 106 */	0x44,		/* 68 */
			0x45,		/* 69 */
/* 108 */	0x53,		/* 83 */
			0x54,		/* 84 */
/* 110 */	0x0,		/* 0 */
			0x0,		/* 0 */

			0x0
        }
    };

const CInterfaceProxyVtbl * _Chapter4_Server_ProxyVtblList[] = 
{
    ( CInterfaceProxyVtbl *) &_IMathProxyVtbl,
    ( CInterfaceProxyVtbl *) &_IComponentInfoProxyVtbl,
    ( CInterfaceProxyVtbl *) &_IAdvancedMathProxyVtbl,
    ( CInterfaceProxyVtbl *) &_IMath2ProxyVtbl,
    0
};

const CInterfaceStubVtbl * _Chapter4_Server_StubVtblList[] = 
{
    ( CInterfaceStubVtbl *) &_IMathStubVtbl,
    ( CInterfaceStubVtbl *) &_IComponentInfoStubVtbl,
    ( CInterfaceStubVtbl *) &_IAdvancedMathStubVtbl,
    ( CInterfaceStubVtbl *) &_IMath2StubVtbl,
    0
};

PCInterfaceName const _Chapter4_Server_InterfaceNamesList[] = 
{
    "IMath",
    "IComponentInfo",
    "IAdvancedMath",
    "IMath2",
    0
};


#define _Chapter4_Server_CHECK_IID(n)	IID_GENERIC_CHECK_IID( _Chapter4_Server, pIID, n)

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

    IID_BS_LOOKUP_INITIAL_TEST( _Chapter4_Server, 4, 2 )
    IID_BS_LOOKUP_NEXT_TEST( _Chapter4_Server, 1 )
    IID_BS_LOOKUP_RETURN_RESULT( _Chapter4_Server, 4, *pIndex )
    
}

const ExtendedProxyFileInfo Chapter4_Server_ProxyFileInfo = 
{
    (PCInterfaceProxyVtblList *) & _Chapter4_Server_ProxyVtblList,
    (PCInterfaceStubVtblList *) & _Chapter4_Server_StubVtblList,
    (const PCInterfaceName * ) & _Chapter4_Server_InterfaceNamesList,
    0, // no delegation
    & _Chapter4_Server_IID_Lookup, 
    4,
    2
};

⌨️ 快捷键说明

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