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

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:06:39 1998
  4.  */
  5. /* Compiler settings for doctor.idl:
  6.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext, oldnames
  7.     error checks: none
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. #include <string.h>
  11. #include "doctor.h"
  12. #define TYPE_FORMAT_STRING_SIZE   11                                
  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: doctor, ver. 1.0,
  27.    GUID={0xC2557720,0xCA46,0x1067,{0xB3,0x1C,0x00,0xDD,0x01,0x06,0x62,0xDA}} */
  28. extern RPC_DISPATCH_TABLE doctor_DispatchTable;
  29. static const RPC_SERVER_INTERFACE doctor___RpcServerInterface =
  30.     {
  31.     sizeof(RPC_SERVER_INTERFACE),
  32.     {{0xC2557720,0xCA46,0x1067,{0xB3,0x1C,0x00,0xDD,0x01,0x06,0x62,0xDA}},{1,0}},
  33.     {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  34.     &doctor_DispatchTable,
  35.     0,
  36.     0,
  37.     0,
  38.     0,
  39.     0
  40.     };
  41. RPC_IF_HANDLE doctor_ServerIfHandle = (RPC_IF_HANDLE)& doctor___RpcServerInterface;
  42. extern const MIDL_STUB_DESC doctor_StubDesc;
  43. void __RPC_STUB
  44. doctor_Analyze(
  45.     PRPC_MESSAGE _pRpcMessage )
  46. {
  47.     MIDL_STUB_MESSAGE _StubMsg;
  48.     unsigned char __RPC_FAR *pszInOut;
  49.     RPC_STATUS _Status;
  50.     
  51.     ((void)(_Status));
  52.     NdrServerInitializeNew(
  53.                           _pRpcMessage,
  54.                           &_StubMsg,
  55.                           &doctor_StubDesc);
  56.     
  57.     ( unsigned char __RPC_FAR * )pszInOut = 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 *)&pszInOut,
  65.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
  66.                                        (unsigned char)0 );
  67.         
  68.         
  69.         Analyze(pszInOut);
  70.         
  71.         _StubMsg.BufferLength = 12U;
  72.         _StubMsg.MaxCount = STRSIZE;
  73.         
  74.         NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  75.                                        (unsigned char __RPC_FAR *)pszInOut,
  76.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  77.         
  78.         _pRpcMessage->BufferLength = _StubMsg.BufferLength;
  79.         
  80.         _Status = I_RpcGetBuffer( _pRpcMessage ); 
  81.         if ( _Status )
  82.             RpcRaiseException( _Status );
  83.         
  84.         _StubMsg.Buffer = (unsigned char __RPC_FAR *) _pRpcMessage->Buffer;
  85.         
  86.         _StubMsg.MaxCount = STRSIZE;
  87.         
  88.         NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  89.                                      (unsigned char __RPC_FAR *)pszInOut,
  90.                                      (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  91.         
  92.         }
  93.     RpcFinally
  94.         {
  95.         _StubMsg.MaxCount = STRSIZE;
  96.         
  97.         NdrPointerFree( &_StubMsg,
  98.                         (unsigned char __RPC_FAR *)pszInOut,
  99.                         &__MIDL_TypeFormatString.Format[0] );
  100.         
  101.         }
  102.     RpcEndFinally
  103.     _pRpcMessage->BufferLength = 
  104.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  105.     
  106. }
  107. void __RPC_STUB
  108. doctor_Shutdown(
  109.     PRPC_MESSAGE _pRpcMessage )
  110. {
  111.     MIDL_STUB_MESSAGE _StubMsg;
  112.     RPC_STATUS _Status;
  113.     
  114.     ((void)(_Status));
  115.     NdrServerInitializeNew(
  116.                           _pRpcMessage,
  117.                           &_StubMsg,
  118.                           &doctor_StubDesc);
  119.     
  120.     RpcTryFinally
  121.         {
  122.         
  123.         Shutdown();
  124.         
  125.         }
  126.     RpcFinally
  127.         {
  128.         }
  129.     RpcEndFinally
  130.     _pRpcMessage->BufferLength = 
  131.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  132.     
  133. }
  134. static const MIDL_STUB_DESC doctor_StubDesc = 
  135.     {
  136.     (void __RPC_FAR *)& doctor___RpcServerInterface,
  137.     MIDL_user_allocate,
  138.     MIDL_user_free,
  139.     0,
  140.     0,
  141.     0,
  142.     0,
  143.     0,
  144.     __MIDL_TypeFormatString.Format,
  145.     0, /* -error bounds_check flag */
  146.     0x10001, /* Ndr library version */
  147.     0,
  148.     0x303006e, /* MIDL Version 3.3.110 */
  149.     0,
  150.     0,
  151.     0,  /* Reserved1 */
  152.     0,  /* Reserved2 */
  153.     0,  /* Reserved3 */
  154.     0,  /* Reserved4 */
  155.     0   /* Reserved5 */
  156.     };
  157. static RPC_DISPATCH_FUNCTION doctor_table[] =
  158.     {
  159.     doctor_Analyze,
  160.     doctor_Shutdown,
  161.     0
  162.     };
  163. RPC_DISPATCH_TABLE doctor_DispatchTable = 
  164.     {
  165.     2,
  166.     doctor_table
  167.     };
  168. #if !defined(__RPC_WIN32__)
  169. #error  Invalid build platform for this stub.
  170. #endif
  171. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  172.     {
  173.         0,
  174.         {
  175. 0x50, /* FC_IN_OUT_PARAM */
  176. #ifndef _ALPHA_
  177. 0x1, /* x86, MIPS & PPC Stack size = 1 */
  178. #else
  179. 0x2, /* Alpha Stack size = 2 */
  180. #endif
  181. /*  2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
  182. /*  4 */ 0x5b, /* FC_END */
  183. 0x5c, /* FC_PAD */
  184. /*  6 */ 0x5b, /* FC_END */
  185. 0x5c, /* FC_PAD */
  186. 0x0
  187.         }
  188.     };
  189. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  190.     {
  191.         0,
  192.         {
  193. 0x11, 0x0, /* FC_RP */
  194. /*  2 */ NdrFcShort( 0x2 ), /* Offset= 2 (4) */
  195. /*  4 */
  196. 0x22, /* FC_C_CSTRING */
  197. 0x44, /* FC_STRING_SIZED */
  198. /*  6 */ 0x40, /* 64 */
  199. 0x0, /* 0 */
  200. /*  8 */ NdrFcShort( 0x1f4 ), /* 500 */
  201. 0x0
  202.         }
  203.     };