home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / WIN_NT / LMAPI.ZIP / H / LMMSG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-07  |  1.9 KB  |  98 lines

  1. /*
  2.  
  3. Copyright (c) 1991-1993  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmmsg.h
  8.  
  9. Abstract:
  10.  
  11.     This file contains structures, function prototypes, and definitions
  12.     for the NetMessage API.
  13.  
  14. [Notes:]
  15.  
  16.     You must include NETCONS.H before this file, since this file depends
  17.     on values defined in NETCONS.H.
  18.  
  19. --*/
  20.  
  21. #ifndef _LMMSG_
  22. #define _LMMSG_
  23.  
  24. //
  25. // Function Prototypes
  26. //
  27.  
  28. NET_API_STATUS NET_API_FUNCTION
  29. NetMessageNameAdd (
  30.     IN  LPTSTR  servername,
  31.     IN  LPTSTR  msgname
  32.     );
  33.  
  34. NET_API_STATUS NET_API_FUNCTION
  35. NetMessageNameEnum (
  36.     IN  LPTSTR      servername,
  37.     IN  DWORD       level,
  38.     OUT LPBYTE      *bufptr,
  39.     IN  DWORD       prefmaxlen,
  40.     OUT LPDWORD     entriesread,
  41.     OUT LPDWORD     totalentries,
  42.     IN OUT LPDWORD  resume_handle
  43.     );
  44.  
  45. NET_API_STATUS NET_API_FUNCTION
  46. NetMessageNameGetInfo (
  47.     IN  LPTSTR  servername,
  48.     IN  LPTSTR  msgname,
  49.     IN  DWORD   level,
  50.     OUT LPBYTE  *bufptr
  51.     );
  52.  
  53. NET_API_STATUS NET_API_FUNCTION
  54. NetMessageNameDel (
  55.     IN  LPTSTR   servername,
  56.     IN  LPTSTR   msgname
  57.     );
  58.  
  59. NET_API_STATUS NET_API_FUNCTION
  60. NetMessageBufferSend (
  61.     IN  LPTSTR  servername,
  62.     IN  LPTSTR  msgname,
  63.     IN  LPTSTR  fromname,
  64.     IN  LPBYTE  buf,
  65.     IN  DWORD   buflen
  66.     );
  67.  
  68. //
  69. //  Data Structures
  70. //
  71.  
  72. typedef struct _MSG_INFO_0 {
  73.     LPTSTR  msgi0_name;
  74. }MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0;
  75.  
  76. typedef struct _MSG_INFO_1 {
  77.     LPTSTR  msgi1_name;
  78.     DWORD   msgi1_forward_flag;
  79.     LPTSTR  msgi1_forward;
  80. }MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1;
  81.  
  82. //
  83. // Special Values and Constants
  84. //
  85.  
  86. //
  87. // Values for msgi1_forward_flag.
  88. //
  89.  
  90. #define MSGNAME_NOT_FORWARDED   0       // Name not forwarded
  91. #define MSGNAME_FORWARDED_TO    0x04    // Name forward to remote station
  92. #define MSGNAME_FORWARDED_FROM  0x10    // Name forwarded from remote station
  93.  
  94. #endif //_LMMSG_
  95.  
  96.  
  97. 
  98.