home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / pickle / picklt / picklt_c.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-30  |  4.5 KB  |  183 lines

  1. /* this ALWAYS GENERATED file contains the RPC client stubs */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Mon Mar 30 03:08:29 1998
  6.  */
  7. /* Compiler settings for picklt.idl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext, oldnames
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13. #include <string.h>
  14. #if defined( _ALPHA_ )
  15. #include <stdarg.h>
  16. #endif
  17.  
  18. #include "picklt.h"
  19.  
  20. #define TYPE_FORMAT_STRING_SIZE   45                                
  21. #define PROC_FORMAT_STRING_SIZE   1                                 
  22.  
  23. typedef struct _MIDL_TYPE_FORMAT_STRING
  24.     {
  25.     short          Pad;
  26.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  27.     } MIDL_TYPE_FORMAT_STRING;
  28.  
  29. typedef struct _MIDL_PROC_FORMAT_STRING
  30.     {
  31.     short          Pad;
  32.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  33.     } MIDL_PROC_FORMAT_STRING;
  34.  
  35.  
  36. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  37. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  38.  
  39. /* Pickling interface: type_pickle, ver. 1.0,
  40.    GUID={0xB75AF600,0x9CF4,0x11CD,{0xA0,0x76,0x08,0x00,0x2B,0x2B,0xD7,0x11}} */
  41.  
  42. handle_t ImplicitPicHandle;
  43.  
  44.  
  45. static const RPC_CLIENT_INTERFACE type_pickle___RpcClientInterface =
  46.     {
  47.     sizeof(RPC_CLIENT_INTERFACE),
  48.     {{0xB75AF600,0x9CF4,0x11CD,{0xA0,0x76,0x08,0x00,0x2B,0x2B,0xD7,0x11}},{1,0}},
  49.     {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  50.     0,
  51.     0,
  52.     0,
  53.     0,
  54.     0,
  55.     0
  56.     };
  57. RPC_IF_HANDLE type_pickle_ClientIfHandle = (RPC_IF_HANDLE)& type_pickle___RpcClientInterface;
  58.  
  59. extern const MIDL_STUB_DESC type_pickle_StubDesc;
  60.  
  61. static RPC_BINDING_HANDLE type_pickle__MIDL_AutoBindHandle;
  62.  
  63. size_t
  64. OBJECT2_AlignSize(
  65.     OBJECT2 __RPC_FAR * _pType)
  66. {
  67.     return NdrMesTypeAlignSize(
  68.                        ImplicitPicHandle,
  69.                        ( PMIDL_STUB_DESC  )&type_pickle_StubDesc,
  70.                        ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[22],
  71.                        _pType);
  72. }
  73.  
  74. void
  75. OBJECT2_Encode(
  76.     OBJECT2 __RPC_FAR * _pType)
  77. {
  78.     NdrMesTypeEncode(
  79.                     ImplicitPicHandle,
  80.                     ( PMIDL_STUB_DESC  )&type_pickle_StubDesc,
  81.                     ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[22],
  82.                     _pType);
  83. }
  84.  
  85. void
  86. OBJECT2_Decode(
  87.     OBJECT2 __RPC_FAR * _pType)
  88. {
  89.     NdrMesTypeDecode(
  90.                     ImplicitPicHandle,
  91.                     ( PMIDL_STUB_DESC  )&type_pickle_StubDesc,
  92.                     ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[22],
  93.                     _pType);
  94. }
  95.  
  96.  
  97. static const MIDL_STUB_DESC type_pickle_StubDesc = 
  98.     {
  99.     (void __RPC_FAR *)& type_pickle___RpcClientInterface,
  100.     MIDL_user_allocate,
  101.     MIDL_user_free,
  102.     &ImplicitPicHandle,
  103.     0,
  104.     0,
  105.     0,
  106.     0,
  107.     __MIDL_TypeFormatString.Format,
  108.     0, /* -error bounds_check flag */
  109.     0x10001, /* Ndr library version */
  110.     0,
  111.     0x303006e, /* MIDL Version 3.3.110 */
  112.     0,
  113.     0,
  114.     0,  /* Reserved1 */
  115.     0,  /* Reserved2 */
  116.     0,  /* Reserved3 */
  117.     0,  /* Reserved4 */
  118.     0   /* Reserved5 */
  119.     };
  120.  
  121. #if !defined(__RPC_WIN32__)
  122. #error  Invalid build platform for this stub.
  123. #endif
  124.  
  125. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  126.     {
  127.         0,
  128.         {
  129.  
  130.             0x0
  131.         }
  132.     };
  133.  
  134. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  135.     {
  136.         0,
  137.         {
  138.             
  139.             0x1d,        /* FC_SMFARRAY */
  140.             0x3,        /* 3 */
  141. /*  2 */    NdrFcShort( 0x10 ),    /* 16 */
  142. /*  4 */    0x8,        /* FC_LONG */
  143.             0x5b,        /* FC_END */
  144. /*  6 */    
  145.             0x1a,        /* FC_BOGUS_STRUCT */
  146.             0x3,        /* 3 */
  147. /*  8 */    NdrFcShort( 0x14 ),    /* 20 */
  148. /* 10 */    NdrFcShort( 0x0 ),    /* 0 */
  149. /* 12 */    NdrFcShort( 0x0 ),    /* Offset= 0 (12) */
  150. /* 14 */    0x4c,        /* FC_EMBEDDED_COMPLEX */
  151.             0x0,        /* 0 */
  152. /* 16 */    NdrFcShort( 0xfffffff0 ),    /* Offset= -16 (0) */
  153. /* 18 */    0x6,        /* FC_SHORT */
  154.             0x3e,        /* FC_STRUCTPAD2 */
  155. /* 20 */    0x5c,        /* FC_PAD */
  156.             0x5b,        /* FC_END */
  157. /* 22 */    
  158.             0x16,        /* FC_PSTRUCT */
  159.             0x3,        /* 3 */
  160. /* 24 */    NdrFcShort( 0x8 ),    /* 8 */
  161. /* 26 */    
  162.             0x4b,        /* FC_PP */
  163.             0x5c,        /* FC_PAD */
  164. /* 28 */    
  165.             0x46,        /* FC_NO_REPEAT */
  166.             0x5c,        /* FC_PAD */
  167. /* 30 */    NdrFcShort( 0x4 ),    /* 4 */
  168. /* 32 */    NdrFcShort( 0x4 ),    /* 4 */
  169. /* 34 */    0x12, 0x0,    /* FC_UP */
  170. /* 36 */    NdrFcShort( 0xffffffe2 ),    /* Offset= -30 (6) */
  171. /* 38 */    
  172.             0x5b,        /* FC_END */
  173.  
  174.             0x6,        /* FC_SHORT */
  175. /* 40 */    0x38,        /* FC_ALIGNM4 */
  176.             0x8,        /* FC_LONG */
  177. /* 42 */    0x5c,        /* FC_PAD */
  178.             0x5b,        /* FC_END */
  179.  
  180.             0x0
  181.         }
  182.     };
  183.