home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / mag&info / msjv7_4.zip / NETBIOS2.ARJ / COMMON.H < prev    next >
Text File  |  1992-07-01  |  2KB  |  51 lines

  1. /****************************************************************************
  2.     FILE: COMMON.H
  3.  
  4.     PURPOSE: contains function declarations, #defines,
  5.              and constants common to all programs.
  6.  
  7.     History:
  8.                 January, 1992       Alok Sinha      Created
  9. ****************************************************************************/
  10.  
  11.  
  12. /* Common constants  */
  13.  
  14. #define MAXFILENAME 256          /* maximum length of file pathname      */
  15. #define MAXPATH     256          /* maximum path length                  */
  16. #define NO_ERROR    0
  17. #define NETBIOS_NAME_LENGTH 16     /* Maximum NetBIOS name         */
  18. #define ERROR_OUT_OF_MEMORY 102  /* out of memory error */
  19. #define SERVER_NAME_END     'A'
  20. #define MAX_LINE_SIZE       80   /* File detail line shown in list box */
  21.  
  22. /*
  23.  *  User defined messages
  24.  *
  25.  */
  26.  
  27. #define NO_MESSAGE         (WM_USER + 1)
  28.  
  29.  
  30. #define BW_CALL_BACK         (WM_USER + 100)
  31. #define BW_LISTEN_BACK         (WM_USER + 101)
  32. #define BW_C_RECEIVE_BACK    (WM_USER + 102)
  33. #define BW_S_RECEIVE_BACK    (WM_USER + 103)
  34. #define BW_C_SEND_BACK         (WM_USER + 104)
  35. #define BW_S_SEND_BACK         (WM_USER + 105)
  36.  
  37. #define CLIENT_CONNECTED     (WM_USER + 201)
  38.  
  39. #define LIST_PROCESSING      (WM_USER + 202)
  40. /*
  41.  * Common functions
  42.  */
  43.  
  44. BOOL _loadds MessageLoop (MSG FAR *);
  45. VOID HourGlass           (BOOL );
  46. VOID InitServer          (HWND );
  47. VOID DeleteServer        (VOID );
  48. VOID Server              (HWND );
  49. VOID ReceiveCompleted    (HWND, PNCB );
  50. VOID ListenCompleted     (HWND, PNCB );
  51.