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

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:09:40 1998
  4.  */
  5. /* Compiler settings for yield.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 "yield.h"
  12. #define TYPE_FORMAT_STRING_SIZE   1                                 
  13. #define PROC_FORMAT_STRING_SIZE   7                                 
  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: yield, ver. 1.0,
  27.    GUID={0x87A118A0,0x11DB,0x1068,{0x94,0xB2,0x00,0xDD,0x01,0x06,0x62,0xDA}} */
  28. extern RPC_DISPATCH_TABLE yield_DispatchTable;
  29. static const RPC_SERVER_INTERFACE yield___RpcServerInterface =
  30.     {
  31.     sizeof(RPC_SERVER_INTERFACE),
  32.     {{0x87A118A0,0x11DB,0x1068,{0x94,0xB2,0x00,0xDD,0x01,0x06,0x62,0xDA}},{1,0}},
  33.     {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  34.     &yield_DispatchTable,
  35.     0,
  36.     0,
  37.     0,
  38.     0,
  39.     0
  40.     };
  41. RPC_IF_HANDLE yield_ServerIfHandle = (RPC_IF_HANDLE)& yield___RpcServerInterface;
  42. extern const MIDL_STUB_DESC yield_StubDesc;
  43. void __RPC_STUB
  44. yield_YieldProc(
  45.     PRPC_MESSAGE _pRpcMessage )
  46. {
  47.     MIDL_STUB_MESSAGE _StubMsg;
  48.     short cSeconds;
  49.     RPC_STATUS _Status;
  50.     
  51.     ((void)(_Status));
  52.     NdrServerInitializeNew(
  53.                           _pRpcMessage,
  54.                           &_StubMsg,
  55.                           &yield_StubDesc);
  56.     
  57.     RpcTryFinally
  58.         {
  59.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  60.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  61.         
  62.         cSeconds = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
  63.         
  64.         
  65.         YieldProc(cSeconds);
  66.         
  67.         }
  68.     RpcFinally
  69.         {
  70.         }
  71.     RpcEndFinally
  72.     _pRpcMessage->BufferLength = 
  73.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  74.     
  75. }
  76. void __RPC_STUB
  77. yield_Shutdown(
  78.     PRPC_MESSAGE _pRpcMessage )
  79. {
  80.     MIDL_STUB_MESSAGE _StubMsg;
  81.     RPC_STATUS _Status;
  82.     
  83.     ((void)(_Status));
  84.     NdrServerInitializeNew(
  85.                           _pRpcMessage,
  86.                           &_StubMsg,
  87.                           &yield_StubDesc);
  88.     
  89.     RpcTryFinally
  90.         {
  91.         
  92.         Shutdown();
  93.         
  94.         }
  95.     RpcFinally
  96.         {
  97.         }
  98.     RpcEndFinally
  99.     _pRpcMessage->BufferLength = 
  100.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  101.     
  102. }
  103. static const MIDL_STUB_DESC yield_StubDesc = 
  104.     {
  105.     (void __RPC_FAR *)& yield___RpcServerInterface,
  106.     MIDL_user_allocate,
  107.     MIDL_user_free,
  108.     0,
  109.     0,
  110.     0,
  111.     0,
  112.     0,
  113.     __MIDL_TypeFormatString.Format,
  114.     0, /* -error bounds_check flag */
  115.     0x10001, /* Ndr library version */
  116.     0,
  117.     0x303006e, /* MIDL Version 3.3.110 */
  118.     0,
  119.     0,
  120.     0,  /* Reserved1 */
  121.     0,  /* Reserved2 */
  122.     0,  /* Reserved3 */
  123.     0,  /* Reserved4 */
  124.     0   /* Reserved5 */
  125.     };
  126. static RPC_DISPATCH_FUNCTION yield_table[] =
  127.     {
  128.     yield_YieldProc,
  129.     yield_Shutdown,
  130.     0
  131.     };
  132. RPC_DISPATCH_TABLE yield_DispatchTable = 
  133.     {
  134.     2,
  135.     yield_table
  136.     };
  137. #if !defined(__RPC_WIN32__)
  138. #error  Invalid build platform for this stub.
  139. #endif
  140. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  141.     {
  142.         0,
  143.         {
  144. 0x4e, /* FC_IN_PARAM_BASETYPE */
  145. 0x6, /* FC_SHORT */
  146. /*  2 */ 0x5b, /* FC_END */
  147. 0x5c, /* FC_PAD */
  148. /*  4 */ 0x5b, /* FC_END */
  149. 0x5c, /* FC_PAD */
  150. 0x0
  151.         }
  152.     };
  153. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  154.     {
  155.         0,
  156.         {
  157. 0x0
  158.         }
  159.     };