home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / mag&info / msjv7_4.zip / NETBIOS2.ARJ / NET.H < prev    next >
C/C++ Source or Header  |  1992-07-01  |  1KB  |  56 lines

  1. /*  Net  calls */
  2.  
  3.  
  4. #include <direct.h>
  5. #include <dos.h>
  6.  
  7.  
  8. BYTE AddName   ( LPSTR lpLocalName, BYTE * pbNameNum);
  9. BYTE DeleteName( LPSTR lpLocalName);
  10. BYTE CreateASession ( LPSTR lpRemoteName,
  11.                       LPSTR lpLocalName,
  12.                       BYTE * pbLsn);
  13.  
  14. BYTE Hangup( BYTE bLsn);
  15.  
  16. char * R_getcwd( char * pszBuffer, int maxlen);
  17.  
  18.  
  19. /* struct to contain find first information */
  20. typedef struct {
  21.     char      chFileName [ MAXFILENAME ] ;
  22.     unsigned  uAttrib;
  23.     struct    find_t FileInfo;
  24. } FINDFIRST;
  25.  
  26. /* struct to contain find next information */
  27. typedef struct {
  28.     struct    find_t FileInfo;
  29. } FINDNEXT;
  30.  
  31.  
  32. /* struct to contain getcwd information */
  33. typedef struct {
  34.     char    chBuffer [ MAXPATH ] ;
  35.     int     imaxlen;
  36. } GETCWD;
  37.  
  38.  
  39. /* A single packet going over net */
  40. typedef struct {
  41.     BYTE  bCommand;         /* Requested Command */
  42.     union
  43.     {
  44.        FINDFIRST FindFirst;
  45.        FINDNEXT  FindNext;
  46.        GETCWD    GetCwd;
  47.     } data;
  48. }   PACKET;
  49.  
  50. #define PACKET_SIZE (sizeof(PACKET))
  51.  
  52. /* Commands  */
  53. #define  R_GETCWD    01
  54. #define  R_FINDFIRST 02
  55. #define  R_FINDNEXT  03
  56.