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 / data / dunion / dunion.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-30  |  2.1 KB  |  87 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Mon Mar 30 03:05:33 1998
  6.  */
  7. /* Compiler settings for dunion.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.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __dunion_h__
  23. #define __dunion_h__
  24.  
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28.  
  29. /* Forward Declarations */ 
  30.  
  31. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  32. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  33.  
  34. #ifndef __dunion_INTERFACE_DEFINED__
  35. #define __dunion_INTERFACE_DEFINED__
  36.  
  37. /****************************************
  38.  * Generated header for interface: dunion
  39.  * at Mon Mar 30 03:05:33 1998
  40.  * using MIDL 3.03.0110
  41.  ****************************************/
  42. /* [implicit_handle][unique][version][uuid] */ 
  43.  
  44.  
  45. typedef /* [public][public][public][public][public][switch_type] */ union __MIDL_dunion_0001
  46.     {
  47.     /* [case()] */ short sVal;
  48.     /* [case()] */ float fVal;
  49.     /* [case()] */ unsigned char chVal;
  50.     /* [default] */  /* Empty union arm */ 
  51.     }    DISCRIM_UNION_PARAM_TYPE;
  52.  
  53. typedef DISCRIM_UNION_PARAM_TYPE DISCRIM_UNION_FIELD_TYPE;
  54.  
  55. typedef /* [public][public] */ struct  __MIDL_dunion_0002
  56.     {
  57.     short sDiscrim;
  58.     /* [switch_is] */ DISCRIM_UNION_FIELD_TYPE u;
  59.     }    DISCRIM_UNION_STRUCT_TYPE;
  60.  
  61. void UnionParamProc( 
  62.     /* [switch_is][in] */ DISCRIM_UNION_PARAM_TYPE __RPC_FAR *UnionParam,
  63.     /* [in] */ short sDiscrim);
  64.  
  65. void UnionStructProc( 
  66.     /* [in] */ DISCRIM_UNION_STRUCT_TYPE __RPC_FAR *UnionStruct);
  67.  
  68. void Shutdown( void);
  69.  
  70.  
  71. extern handle_t hDiscrim;
  72.  
  73.  
  74. extern RPC_IF_HANDLE dunion_ClientIfHandle;
  75. extern RPC_IF_HANDLE dunion_ServerIfHandle;
  76. #endif /* __dunion_INTERFACE_DEFINED__ */
  77.  
  78. /* Additional Prototypes for ALL interfaces */
  79.  
  80. /* end of Additional Prototypes */
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86. #endif
  87.