home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / msinc.pak / LMMSG.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  2KB  |  123 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Module Name:
  4.  
  5.     lmmsg.h
  6.  
  7. Abstract:
  8.  
  9.     This file contains structures, function prototypes, and definitions
  10.     for the NetMessage API.
  11.  
  12. Author:
  13.  
  14.     Dan Lafferty (danl) 10-Mar-1991
  15.  
  16. [Environment:]
  17.  
  18.     User Mode - Win32
  19.  
  20. [Notes:]
  21.  
  22.     You must include NETCONS.H before this file, since this file depends
  23.     on values defined in NETCONS.H.
  24.  
  25. Revision History:
  26.  
  27.     10-Mar-1991 danl
  28.         Created from LM2.0 header files and NT-LAN API Spec.
  29.  
  30. --*/
  31.  
  32. /*
  33.  *      C/C++ Run Time Library - Version 6.5
  34.  *
  35.  *      Copyright (c) 1994 by Borland International
  36.  *      All Rights Reserved.
  37.  *
  38.  */
  39.  
  40. #ifndef _LMMSG_
  41. #define _LMMSG_
  42. #define __LMMSG_H
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48. //
  49. // Function Prototypes
  50. //
  51.  
  52. NET_API_STATUS NET_API_FUNCTION
  53. NetMessageNameAdd (
  54.     IN  LPTSTR  servername,
  55.     IN  LPTSTR  msgname
  56.     );
  57.  
  58. NET_API_STATUS NET_API_FUNCTION
  59. NetMessageNameEnum (
  60.     IN  LPTSTR      servername,
  61.     IN  DWORD       level,
  62.     OUT LPBYTE      *bufptr,
  63.     IN  DWORD       prefmaxlen,
  64.     OUT LPDWORD     entriesread,
  65.     OUT LPDWORD     totalentries,
  66.     IN OUT LPDWORD  resume_handle
  67.     );
  68.  
  69. NET_API_STATUS NET_API_FUNCTION
  70. NetMessageNameGetInfo (
  71.     IN  LPTSTR  servername,
  72.     IN  LPTSTR  msgname,
  73.     IN  DWORD   level,
  74.     OUT LPBYTE  *bufptr
  75.     );
  76.  
  77. NET_API_STATUS NET_API_FUNCTION
  78. NetMessageNameDel (
  79.     IN  LPTSTR   servername,
  80.     IN  LPTSTR   msgname
  81.     );
  82.  
  83. NET_API_STATUS NET_API_FUNCTION
  84. NetMessageBufferSend (
  85.     IN  LPTSTR  servername,
  86.     IN  LPTSTR  msgname,
  87.     IN  LPTSTR  fromname,
  88.     IN  LPBYTE  buf,
  89.     IN  DWORD   buflen
  90.     );
  91.  
  92. //
  93. //  Data Structures
  94. //
  95.  
  96. typedef struct _MSG_INFO_0 {
  97.     LPTSTR  msgi0_name;
  98. }MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0;
  99.  
  100. typedef struct _MSG_INFO_1 {
  101.     LPTSTR  msgi1_name;
  102.     DWORD   msgi1_forward_flag;
  103.     LPTSTR  msgi1_forward;
  104. }MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1;
  105.  
  106. //
  107. // Special Values and Constants
  108. //
  109.  
  110. //
  111. // Values for msgi1_forward_flag.
  112. //
  113.  
  114. #define MSGNAME_NOT_FORWARDED   0       // Name not forwarded
  115. #define MSGNAME_FORWARDED_TO    0x04    // Name forward to remote station
  116. #define MSGNAME_FORWARDED_FROM  0x10    // Name forwarded from remote station
  117.  
  118. #ifdef __cplusplus
  119. }
  120. #endif
  121.  
  122. #endif //_LMMSG_
  123.