home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / callout.h < prev    next >
C/C++ Source or Header  |  1999-04-29  |  4KB  |  125 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Local Area Network (LAN) Server              */
  4. /*                            Version 5.03                                */
  5. /*                   (C) Copyright IBM Corp. 1988, 1998                   */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9. /*                                                                        */
  10. /**************************************************************************/
  11.  
  12.  
  13. /********************************************************************
  14.  *                                                                  *
  15.  *  About this file ...  CALLOUT.H                                  *
  16.  *                                                                  *
  17.  *  This file contains information about the NetCallout APIs        *
  18.  *  The layout is:                                                  *
  19.  *                                                                  *
  20.  *      Function prototypes.                                        *
  21.  *                                                                  *
  22.  *      Data structure templates.                                   *
  23.  *                                                                  *
  24.  *      Definition of special values.                               *
  25.  *                                                                  *
  26.  *                                                                  *
  27.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  28.  *         file depends on values defined in NETCONS.H.             *
  29.  *                                                                  *
  30.  *         This file is always included by LAN.H                    *
  31.  *                                                                  *
  32.  ********************************************************************/
  33.  
  34. #ifndef __CALLOUT_H
  35. #define __CALLOUT_H
  36.  
  37. #ifdef INCL_32
  38. #pragma pack(1)
  39. #endif
  40.  
  41.  
  42.  
  43.  
  44. USHORT LSFAR LSPAS
  45. NetCalloutAdd(char  LSFAR * LSPTR reserved1,
  46.               USHORT              level,
  47.               USHORT              function,
  48.               char  LSFAR * LSPTR apiname,
  49.               USHORT              ordinal,
  50.               ULONG LSFAR * LSPTR handle);
  51.  
  52. USHORT LSFAR LSPAS
  53. NetCalloutFree (char LSFAR * LSPTR reserved1,
  54.                ULONG               handle,
  55.                USHORT              function);
  56.  
  57.  
  58.  
  59.  
  60.  
  61. struct Callout_Access_Control_Auth_0 {
  62.      USHORT             caca0_function;
  63.      USHORT             caca0_level;
  64.      char LSFAR  *      caca0_username;
  65.      char LSFAR  *      caca0_compname;
  66.      char LSFAR  *      caca0_resource;
  67.      USHORT             caca0_reqperms;
  68.      };
  69.  
  70. struct Callout_Session_Setup_0 {
  71.      USHORT             cses0_function;
  72.      USHORT             cses0_level;
  73.      char LSFAR *       cses0_username;
  74.      char LSFAR *       cses0_compname;
  75.      };
  76.  
  77. struct Callout_Open_Failed_0  {
  78.      USHORT             copn0_function;
  79.      USHORT             copn0_level;
  80.      USHORT             copn0_openmode;
  81.      char LSFAR *       copn0_username;
  82.      char LSFAR *       copn0_resource;
  83.      };
  84.  
  85.  
  86. struct Callout_User_Password_0 {
  87.      USHORT             cup0_function;
  88.      USHORT             cup0_level;
  89.      USHORT             cup0_action;
  90.      char               cup0_username[UNLEN+1];
  91.      char               pad0;
  92.      char               cup0_password[PWLEN+1];
  93.      char               pad1;
  94.      char               cup0_newpassword[PWLEN+1];
  95.      };
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. #define CALLOUT_ACCESS_CONTROL_AUTH  1
  105. #define CALLOUT_SESSION_SETUP        2
  106. #define CALLOUT_OPEN_FAILED          3
  107. #define CALLOUT_USER_PASSWORD        4
  108.  
  109.  
  110.  
  111. #define CUP_LOGON                    0
  112. #define CUP_CHANGE                   1
  113. #define CUP_SET                      2
  114.  
  115.  
  116.  
  117. #ifdef INCL_32
  118. #pragma linkage (NetCalloutAdd, far16 pascal)
  119. #pragma linkage (NetCalloutFree, far16 pascal)
  120. #pragma pack()
  121. #endif
  122.  
  123.  
  124. #endif
  125.