home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / 3COMM.ZIP / H.ZIP / NETBIOS.H < prev    next >
C/C++ Source or Header  |  1989-05-17  |  4KB  |  112 lines

  1. /********************************************************************
  2.  **                   Microsoft OS/2 LAN Manager                   **
  3.  **            Copyright(c) Microsoft Corp., 1987, 1988            **
  4.  ********************************************************************/
  5.  
  6. /********************************************************************
  7.  *                                    *
  8.  *  About this file ...  NETBIOS.H                    *
  9.  *                                    *
  10.  *  This file contains information about the NetBios APIs.        *
  11.  *                                    *
  12.  *    Function prototypes.                        *
  13.  *                                    *
  14.  *    Data structure templates.                    *
  15.  *                                    *
  16.  *    Definition of special values.                    *
  17.  *                                    *
  18.  *                                    *
  19.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  20.  *       file    depends on values defined in NETCONS.H.            *
  21.  *                                    *
  22.  ********************************************************************
  23.  *                                    *
  24.  *  NOTICE:  The redirector uses this include file.  If you change  *
  25.  *           it, you need to make sure that the redir still builds. *
  26.  *                                    *
  27.  ********************************************************************/
  28.  
  29. /**************************************************************** 
  30.  *                                *
  31.  *          Function prototypes                 *
  32.  *                                *
  33.  ****************************************************************/
  34.  
  35. /*NOINC*/
  36. extern API_FUNCTION 
  37.   NetBiosEnum( const char far *, short, char far *, unsigned short, 
  38.             unsigned short far *, unsigned short far *);
  39.  
  40. extern API_FUNCTION 
  41.   NetBiosGetInfo( const char far *, const char far *, short, char far *, 
  42.             unsigned short, unsigned short far * );
  43.  
  44. extern API_FUNCTION 
  45.   NetBiosOpen( char far *, char far *, unsigned short, unsigned short far * );
  46.  
  47. extern API_FUNCTION 
  48.   NetBiosClose( unsigned short, unsigned short );
  49.  
  50. extern API_FUNCTION 
  51.   NetBiosSubmit( unsigned short, unsigned short, struct ncb far *);
  52. /*INC*/
  53.  
  54.  
  55. /**************************************************************** 
  56.  *                                *
  57.  *          Data structure templates            *
  58.  *                                *
  59.  ****************************************************************/
  60.  
  61.  
  62. struct netbios_info_0 {
  63.     char         nb0_net_name[NETBIOS_NAME_LEN+1];
  64. };    /* netbios_info_0 */
  65.  
  66. struct netbios_info_1 {
  67.     char           nb1_net_name[NETBIOS_NAME_LEN+1];   
  68.     char           nb1_driver_name[DEVLEN+1];/* OS/2 device driver name        */
  69.     unsigned char  nb1_lana_num;             /* Lan adapter number of this net */
  70.     char       nb1_pad_1;
  71.     unsigned short nb1_driver_type;
  72.     unsigned short nb1_net_status;           
  73.     unsigned long  nb1_net_bandwidth;        /* Network bandwidth, bits/s      */
  74.     unsigned short nb1_max_sess;             /* Max number of sessions         */
  75.     unsigned short nb1_max_ncbs;             /* Max number of outstanding NCBs */
  76.     unsigned short nb1_max_names;            /* Max number of names            */
  77. };    /* netbios_info_1 */
  78.  
  79.  
  80. /**************************************************************** 
  81.  *                                *
  82.  *          Special values and constants            *
  83.  *                                *
  84.  ****************************************************************/
  85.  
  86.  
  87. /*
  88.  *    Driver types (nb1_driver_type).
  89.  */
  90.  
  91. #define    NB_TYPE_NCB    1
  92. #define    NB_TYPE_MCB    2
  93.  
  94. /*
  95.  *    Bits defined in nb1_net_status.
  96.  */
  97.  
  98. #define NB_LAN_MANAGED        0x0001    /* Lan is managed by redirector */
  99. #define NB_LAN_LOOPBACK        0x0002    /* Lan is a loopback driver */
  100. #define NB_LAN_SENDNOACK    0x0004    /* Lan allows SendNoAck NCBs */
  101.  
  102. /*
  103.  *    Open modes for NetBiosOpen.
  104.  */
  105.  
  106. #define    NB_REGULAR    1 
  107. #define    NB_PRIVILEGED    2
  108. #define    NB_EXCLUSIVE    3 
  109.  
  110.  
  111.  
  112.