MSG_S.C
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:5k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the RPC server stubs */
  2. /* File created by MIDL compiler version 3.03.0110 */
  3. /* at Mon Mar 30 03:07:53 1998
  4.  */
  5. /* Compiler settings for msg.idl:
  6.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: none
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. #include <string.h>
  11. #include "msg.h"
  12. #define TYPE_FORMAT_STRING_SIZE   5                                 
  13. #define PROC_FORMAT_STRING_SIZE   9                                 
  14. typedef struct _MIDL_TYPE_FORMAT_STRING
  15.     {
  16.     short          Pad;
  17.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  18.     } MIDL_TYPE_FORMAT_STRING;
  19. typedef struct _MIDL_PROC_FORMAT_STRING
  20.     {
  21.     short          Pad;
  22.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  23.     } MIDL_PROC_FORMAT_STRING;
  24. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  25. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  26. /* Standard interface: interop, ver. 1.0,
  27.    GUID={0x0E8BDF58,0xB3BF,0x101A,{0xA1,0x16,0x08,0x00,0x2B,0x2B,0x8C,0xD3}} */
  28. extern RPC_DISPATCH_TABLE interop_v1_0_DispatchTable;
  29. static const RPC_SERVER_INTERFACE interop___RpcServerInterface =
  30.     {
  31.     sizeof(RPC_SERVER_INTERFACE),
  32.     {{0x0E8BDF58,0xB3BF,0x101A,{0xA1,0x16,0x08,0x00,0x2B,0x2B,0x8C,0xD3}},{1,0}},
  33.     {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  34.     &interop_v1_0_DispatchTable,
  35.     0,
  36.     0,
  37.     0,
  38.     0,
  39.     0
  40.     };
  41. RPC_IF_HANDLE interop_v1_0_s_ifspec = (RPC_IF_HANDLE)& interop___RpcServerInterface;
  42. extern const MIDL_STUB_DESC interop_StubDesc;
  43. void __RPC_STUB
  44. interop_ClientMessage(
  45.     PRPC_MESSAGE _pRpcMessage )
  46. {
  47.     MIDL_STUB_MESSAGE _StubMsg;
  48.     unsigned char __RPC_FAR *pszMessage;
  49.     RPC_STATUS _Status;
  50.     
  51.     ((void)(_Status));
  52.     NdrServerInitializeNew(
  53.                           _pRpcMessage,
  54.                           &_StubMsg,
  55.                           &interop_StubDesc);
  56.     
  57.     ( unsigned char __RPC_FAR * )pszMessage = 0;
  58.     RpcTryFinally
  59.         {
  60.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  61.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  62.         
  63.         NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  64.                                        (unsigned char __RPC_FAR * __RPC_FAR *)&pszMessage,
  65.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
  66.                                        (unsigned char)0 );
  67.         
  68.         
  69.         ClientMessage(pszMessage);
  70.         
  71.         }
  72.     RpcFinally
  73.         {
  74.         }
  75.     RpcEndFinally
  76.     _pRpcMessage->BufferLength = 
  77.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  78.     
  79. }
  80. void __RPC_STUB
  81. interop_ShutdownServer(
  82.     PRPC_MESSAGE _pRpcMessage )
  83. {
  84.     MIDL_STUB_MESSAGE _StubMsg;
  85.     RPC_STATUS _Status;
  86.     
  87.     ((void)(_Status));
  88.     NdrServerInitializeNew(
  89.                           _pRpcMessage,
  90.                           &_StubMsg,
  91.                           &interop_StubDesc);
  92.     
  93.     RpcTryFinally
  94.         {
  95.         
  96.         ShutdownServer();
  97.         
  98.         }
  99.     RpcFinally
  100.         {
  101.         }
  102.     RpcEndFinally
  103.     _pRpcMessage->BufferLength = 
  104.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  105.     
  106. }
  107. static const MIDL_STUB_DESC interop_StubDesc = 
  108.     {
  109.     (void __RPC_FAR *)& interop___RpcServerInterface,
  110.     MIDL_user_allocate,
  111.     MIDL_user_free,
  112.     0,
  113.     0,
  114.     0,
  115.     0,
  116.     0,
  117.     __MIDL_TypeFormatString.Format,
  118.     0, /* -error bounds_check flag */
  119.     0x10001, /* Ndr library version */
  120.     0,
  121.     0x303006e, /* MIDL Version 3.3.110 */
  122.     0,
  123.     0,
  124.     0,  /* Reserved1 */
  125.     0,  /* Reserved2 */
  126.     0,  /* Reserved3 */
  127.     0,  /* Reserved4 */
  128.     0   /* Reserved5 */
  129.     };
  130. static RPC_DISPATCH_FUNCTION interop_table[] =
  131.     {
  132.     interop_ClientMessage,
  133.     interop_ShutdownServer,
  134.     0
  135.     };
  136. RPC_DISPATCH_TABLE interop_v1_0_DispatchTable = 
  137.     {
  138.     2,
  139.     interop_table
  140.     };
  141. #if !defined(__RPC_WIN32__)
  142. #error  Invalid build platform for this stub.
  143. #endif
  144. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  145.     {
  146.         0,
  147.         {
  148. 0x4d, /* FC_IN_PARAM */
  149. #ifndef _ALPHA_
  150. 0x1, /* x86, MIPS & PPC Stack size = 1 */
  151. #else
  152. 0x2, /* Alpha Stack size = 2 */
  153. #endif
  154. /*  2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
  155. /*  4 */ 0x5b, /* FC_END */
  156. 0x5c, /* FC_PAD */
  157. /*  6 */ 0x5b, /* FC_END */
  158. 0x5c, /* FC_PAD */
  159. 0x0
  160.         }
  161.     };
  162. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  163.     {
  164.         0,
  165.         {
  166. 0x11, 0x8, /* FC_RP [simple_pointer] */
  167. /*  2 */
  168. 0x22, /* FC_C_CSTRING */
  169. 0x5c, /* FC_PAD */
  170. 0x0
  171.         }
  172.     };