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 / picklp / picklp_c.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-30  |  5.4 KB  |  211 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:24 1998
  6.  */
  7. /* Compiler settings for picklp.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 "picklp.h"
  19.  
  20. #define TYPE_FORMAT_STRING_SIZE   53                                
  21. #define PROC_FORMAT_STRING_SIZE   21                                
  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: proc_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 proc_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 proc_pickle_ClientIfHandle = (RPC_IF_HANDLE)& proc_pickle___RpcClientInterface;
  58.  
  59. extern const MIDL_STUB_DESC proc_pickle_StubDesc;
  60.  
  61. static RPC_BINDING_HANDLE proc_pickle__MIDL_AutoBindHandle;
  62.  
  63.  
  64. /* [decode][encode] */ void ProcPickle( 
  65.     /* [string][out][in] */ unsigned char __RPC_FAR *pTextId,
  66.     /* [out][in] */ OBJECT1 __RPC_FAR *pObject1,
  67.     /* [out][in] */ OBJECT2 __RPC_FAR *pObject2)
  68. {
  69.  
  70. #if defined( _ALPHA_ )
  71.     va_list vlist;
  72.  
  73.     va_start(vlist,pObject2);
  74. #endif
  75.  
  76.     NdrMesProcEncodeDecode(
  77.                           ImplicitPicHandle,
  78.                           ( PMIDL_STUB_DESC  )&proc_pickle_StubDesc,
  79.                           ( PFORMAT_STRING  )&__MIDL_ProcFormatString.Format[0],
  80.                           ( unsigned char __RPC_FAR * )&pTextId,
  81.                           ( unsigned char __RPC_FAR * )&pObject1,
  82.                           ( unsigned char __RPC_FAR * )&pObject2);
  83.     
  84. }
  85.  
  86.  
  87. static const MIDL_STUB_DESC proc_pickle_StubDesc = 
  88.     {
  89.     (void __RPC_FAR *)& proc_pickle___RpcClientInterface,
  90.     MIDL_user_allocate,
  91.     MIDL_user_free,
  92.     &ImplicitPicHandle,
  93.     0,
  94.     0,
  95.     0,
  96.     0,
  97.     __MIDL_TypeFormatString.Format,
  98.     0, /* -error bounds_check flag */
  99.     0x10001, /* Ndr library version */
  100.     0,
  101.     0x303006e, /* MIDL Version 3.3.110 */
  102.     0,
  103.     0,
  104.     0,  /* Reserved1 */
  105.     0,  /* Reserved2 */
  106.     0,  /* Reserved3 */
  107.     0,  /* Reserved4 */
  108.     0   /* Reserved5 */
  109.     };
  110.  
  111. #if !defined(__RPC_WIN32__)
  112. #error  Invalid build platform for this stub.
  113. #endif
  114.  
  115. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  116.     {
  117.         0,
  118.         {
  119.             0x32,        /* FC_BIND_PRIMITIVE */
  120.             0x70,        /* 112 */
  121. /*  2 */    NdrFcShort( 0x0 ),    /* 0 */
  122. #ifndef _ALPHA_
  123. /*  4 */    NdrFcShort( 0xc ),    /* x86, MIPS, PPC Stack size/offset = 12 */
  124. #else
  125.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  126. #endif
  127. /*  6 */    
  128.             0x50,        /* FC_IN_OUT_PARAM */
  129. #ifndef _ALPHA_
  130.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  131. #else
  132.             0x2,        /* Alpha Stack size = 2 */
  133. #endif
  134. /*  8 */    NdrFcShort( 0x0 ),    /* Type Offset=0 */
  135. /* 10 */    
  136.             0x50,        /* FC_IN_OUT_PARAM */
  137. #ifndef _ALPHA_
  138.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  139. #else
  140.             0x2,        /* Alpha Stack size = 2 */
  141. #endif
  142. /* 12 */    NdrFcShort( 0x4 ),    /* Type Offset=4 */
  143. /* 14 */    
  144.             0x50,        /* FC_IN_OUT_PARAM */
  145. #ifndef _ALPHA_
  146.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  147. #else
  148.             0x2,        /* Alpha Stack size = 2 */
  149. #endif
  150. /* 16 */    NdrFcShort( 0x1e ),    /* Type Offset=30 */
  151. /* 18 */    0x5b,        /* FC_END */
  152.             0x5c,        /* FC_PAD */
  153.  
  154.             0x0
  155.         }
  156.     };
  157.  
  158. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  159.     {
  160.         0,
  161.         {
  162.             0x11, 0x8,    /* FC_RP [simple_pointer] */
  163. /*  2 */    
  164.             0x22,        /* FC_C_CSTRING */
  165.             0x5c,        /* FC_PAD */
  166. /*  4 */    
  167.             0x11, 0x0,    /* FC_RP */
  168. /*  6 */    NdrFcShort( 0x8 ),    /* Offset= 8 (14) */
  169. /*  8 */    
  170.             0x1d,        /* FC_SMFARRAY */
  171.             0x3,        /* 3 */
  172. /* 10 */    NdrFcShort( 0x10 ),    /* 16 */
  173. /* 12 */    0x8,        /* FC_LONG */
  174.             0x5b,        /* FC_END */
  175. /* 14 */    
  176.             0x1a,        /* FC_BOGUS_STRUCT */
  177.             0x3,        /* 3 */
  178. /* 16 */    NdrFcShort( 0x14 ),    /* 20 */
  179. /* 18 */    NdrFcShort( 0x0 ),    /* 0 */
  180. /* 20 */    NdrFcShort( 0x0 ),    /* Offset= 0 (20) */
  181. /* 22 */    0x4c,        /* FC_EMBEDDED_COMPLEX */
  182.             0x0,        /* 0 */
  183. /* 24 */    NdrFcShort( 0xfffffff0 ),    /* Offset= -16 (8) */
  184. /* 26 */    0x6,        /* FC_SHORT */
  185.             0x3e,        /* FC_STRUCTPAD2 */
  186. /* 28 */    0x5c,        /* FC_PAD */
  187.             0x5b,        /* FC_END */
  188. /* 30 */    
  189.             0x11, 0x0,    /* FC_RP */
  190. /* 32 */    NdrFcShort( 0xc ),    /* Offset= 12 (44) */
  191. /* 34 */    
  192.             0x1b,        /* FC_CARRAY */
  193.             0x1,        /* 1 */
  194. /* 36 */    NdrFcShort( 0x2 ),    /* 2 */
  195. /* 38 */    0x6,        /* 6 */
  196.             0x0,        /*  */
  197. /* 40 */    NdrFcShort( 0xfffffffe ),    /* -2 */
  198. /* 42 */    0x6,        /* FC_SHORT */
  199.             0x5b,        /* FC_END */
  200. /* 44 */    
  201.             0x17,        /* FC_CSTRUCT */
  202.             0x1,        /* 1 */
  203. /* 46 */    NdrFcShort( 0x2 ),    /* 2 */
  204. /* 48 */    NdrFcShort( 0xfffffff2 ),    /* Offset= -14 (34) */
  205. /* 50 */    0x6,        /* FC_SHORT */
  206.             0x5b,        /* FC_END */
  207.  
  208.             0x0
  209.         }
  210.     };
  211.