home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwphescr.zip / XWPH0208.ZIP / include / helpers / lan.h < prev    next >
C/C++ Source or Header  |  2001-10-23  |  2KB  |  57 lines

  1.  
  2. /*
  3.  *@@sourcefile lan.h:
  4.  *      header file for lan.c. See notes there.
  5.  *
  6.  *      Note: Version numbering in this file relates to XWorkplace version
  7.  *            numbering.
  8.  *
  9.  *@@include #include <os2.h>
  10.  *@@include #include <netcons.h>
  11.  *@@include #include "helpers\lan.h"
  12.  */
  13.  
  14. /*
  15.  *      Copyright (C) 2001 Ulrich Möller.
  16.  *      This file is part of the "XWorkplace helpers" source package.
  17.  *      This is free software; you can redistribute it and/or modify
  18.  *      it under the terms of the GNU General Public License as published
  19.  *      by the Free Software Foundation, in version 2 as it comes in the
  20.  *      "COPYING" file of the XWorkplace main distribution.
  21.  *      This program is distributed in the hope that it will be useful,
  22.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.  *      GNU General Public License for more details.
  25.  */
  26.  
  27. #if __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. #ifndef LANH_HEADER_INCLUDED
  32.     #define LANH_HEADER_INCLUDED
  33.  
  34.     APIRET lanInit(VOID);
  35.  
  36.     #pragma pack(1)
  37.     typedef struct _SERVER
  38.     {
  39.         UCHAR       achServerName[CNLEN + 1];
  40.                                         // server name (without leading \\)
  41.         UCHAR       cVersionMajor;      // major version # of net
  42.         UCHAR       cVersionMinor;      // minor version # of net
  43.         ULONG       ulServerType;       // server type
  44.         PSZ         pszComment;         // server comment
  45.     } SERVER, *PSERVER;
  46.     #pragma pack()
  47.  
  48.     APIRET lanQueryServers(PSERVER *paServers,
  49.                            ULONG *pcServers);
  50.  
  51. #endif
  52.  
  53. #if __cplusplus
  54. }
  55. #endif
  56.  
  57.