CLUUID_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:05:23 1998
  4.  */
  5. /* Compiler settings for cluuid.idl:
  6.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext, oldnames
  7.     error checks: none, use_epv
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. #include <string.h>
  11. #include "cluuid.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: cluuid, ver. 1.0,
  27.    GUID={0x4AF72C40,0x4DAA,0x1068,{0xA9,0xAD,0x08,0x00,0x2B,0x2E,0xB2,0x3C}} */
  28. extern RPC_DISPATCH_TABLE cluuid_DispatchTable;
  29. extern cluuid_SERVER_EPV DEFAULT_EPV;
  30. static const RPC_SERVER_INTERFACE cluuid___RpcServerInterface =
  31.     {
  32.     sizeof(RPC_SERVER_INTERFACE),
  33.     {{0x4AF72C40,0x4DAA,0x1068,{0xA9,0xAD,0x08,0x00,0x2B,0x2E,0xB2,0x3C}},{1,0}},
  34.     {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  35.     &cluuid_DispatchTable,
  36.     0,
  37.     0,
  38.     &DEFAULT_EPV,
  39.     0,
  40.     0
  41.     };
  42. RPC_IF_HANDLE cluuid_ServerIfHandle = (RPC_IF_HANDLE)& cluuid___RpcServerInterface;
  43. extern const MIDL_STUB_DESC cluuid_StubDesc;
  44. void __RPC_STUB
  45. cluuid_HelloProc(
  46.     PRPC_MESSAGE _pRpcMessage )
  47. {
  48.     MIDL_STUB_MESSAGE _StubMsg;
  49.     unsigned char __RPC_FAR *pszString;
  50.     RPC_STATUS _Status;
  51.     
  52.     ((void)(_Status));
  53.     NdrServerInitializeNew(
  54.                           _pRpcMessage,
  55.                           &_StubMsg,
  56.                           &cluuid_StubDesc);
  57.     
  58.     ( unsigned char __RPC_FAR * )pszString = 0;
  59.     RpcTryFinally
  60.         {
  61.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  62.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  63.         
  64.         NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  65.                                        (unsigned char __RPC_FAR * __RPC_FAR *)&pszString,
  66.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
  67.                                        (unsigned char)0 );
  68.         
  69.         
  70.         ((cluuid_SERVER_EPV *)(_pRpcMessage->ManagerEpv)) -> HelloProc(pszString);
  71.         
  72.         }
  73.     RpcFinally
  74.         {
  75.         }
  76.     RpcEndFinally
  77.     _pRpcMessage->BufferLength = 
  78.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  79.     
  80. }
  81. void __RPC_STUB
  82. cluuid_Shutdown(
  83.     PRPC_MESSAGE _pRpcMessage )
  84. {
  85.     MIDL_STUB_MESSAGE _StubMsg;
  86.     RPC_STATUS _Status;
  87.     
  88.     ((void)(_Status));
  89.     NdrServerInitializeNew(
  90.                           _pRpcMessage,
  91.                           &_StubMsg,
  92.                           &cluuid_StubDesc);
  93.     
  94.     RpcTryFinally
  95.         {
  96.         
  97.         ((cluuid_SERVER_EPV *)(_pRpcMessage->ManagerEpv)) -> Shutdown();
  98.         
  99.         }
  100.     RpcFinally
  101.         {
  102.         }
  103.     RpcEndFinally
  104.     _pRpcMessage->BufferLength = 
  105.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  106.     
  107. }
  108. static const MIDL_STUB_DESC cluuid_StubDesc = 
  109.     {
  110.     (void __RPC_FAR *)& cluuid___RpcServerInterface,
  111.     MIDL_user_allocate,
  112.     MIDL_user_free,
  113.     0,
  114.     0,
  115.     0,
  116.     0,
  117.     0,
  118.     __MIDL_TypeFormatString.Format,
  119.     0, /* -error bounds_check flag */
  120.     0x10001, /* Ndr library version */
  121.     0,
  122.     0x303006e, /* MIDL Version 3.3.110 */
  123.     0,
  124.     0,
  125.     0,  /* Reserved1 */
  126.     0,  /* Reserved2 */
  127.     0,  /* Reserved3 */
  128.     0,  /* Reserved4 */
  129.     0   /* Reserved5 */
  130.     };
  131. static RPC_DISPATCH_FUNCTION cluuid_table[] =
  132.     {
  133.     cluuid_HelloProc,
  134.     cluuid_Shutdown,
  135.     0
  136.     };
  137. RPC_DISPATCH_TABLE cluuid_DispatchTable = 
  138.     {
  139.     2,
  140.     cluuid_table
  141.     };
  142. static cluuid_SERVER_EPV DEFAULT_EPV = 
  143.     {
  144.     HelloProc,
  145.     Shutdown
  146. };
  147. #if !defined(__RPC_WIN32__)
  148. #error  Invalid build platform for this stub.
  149. #endif
  150. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  151.     {
  152.         0,
  153.         {
  154. 0x4d, /* FC_IN_PARAM */
  155. #ifndef _ALPHA_
  156. 0x1, /* x86, MIPS & PPC Stack size = 1 */
  157. #else
  158. 0x2, /* Alpha Stack size = 2 */
  159. #endif
  160. /*  2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
  161. /*  4 */ 0x5b, /* FC_END */
  162. 0x5c, /* FC_PAD */
  163. /*  6 */ 0x5b, /* FC_END */
  164. 0x5c, /* FC_PAD */
  165. 0x0
  166.         }
  167.     };
  168. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  169.     {
  170.         0,
  171.         {
  172. 0x11, 0x8, /* FC_RP [simple_pointer] */
  173. /*  2 */
  174. 0x22, /* FC_C_CSTRING */
  175. 0x5c, /* FC_PAD */
  176. 0x0
  177.         }
  178.     };