home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / LMMSG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.2 KB  |  109 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright 1991-1998 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. [Environment:]
  15.  
  16.     User Mode - Win32
  17.  
  18. [Notes:]
  19.  
  20.     You must include NETCONS.H before this file, since this file depends
  21.     on values defined in NETCONS.H.
  22.  
  23. --*/
  24.  
  25. #ifndef _LMMSG_
  26. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  27. #define _LMMSG_
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. //
  34. // Function Prototypes
  35. //
  36.  
  37. NET_API_STATUS NET_API_FUNCTION
  38. NetMessageNameAdd (
  39.     IN  LPCWSTR  servername,
  40.     IN  LPCWSTR  msgname
  41.     );
  42.  
  43. NET_API_STATUS NET_API_FUNCTION
  44. NetMessageNameEnum (
  45.     IN  LPCWSTR     servername,
  46.     IN  DWORD       level,
  47.     OUT LPBYTE      *bufptr,
  48.     IN  DWORD       prefmaxlen,
  49.     OUT LPDWORD     entriesread,
  50.     OUT LPDWORD     totalentries,
  51.     IN OUT LPDWORD  resume_handle
  52.     );
  53.  
  54. NET_API_STATUS NET_API_FUNCTION
  55. NetMessageNameGetInfo (
  56.     IN  LPCWSTR servername,
  57.     IN  LPCWSTR msgname,
  58.     IN  DWORD   level,
  59.     OUT LPBYTE  *bufptr
  60.     );
  61.  
  62. NET_API_STATUS NET_API_FUNCTION
  63. NetMessageNameDel (
  64.     IN  LPCWSTR   servername,
  65.     IN  LPCWSTR   msgname
  66.     );
  67.  
  68. NET_API_STATUS NET_API_FUNCTION
  69. NetMessageBufferSend (
  70.     IN  LPCWSTR  servername,
  71.     IN  LPCWSTR  msgname,
  72.     IN  LPCWSTR  fromname,
  73.     IN  LPBYTE   buf,
  74.     IN  DWORD    buflen
  75.     );
  76.  
  77. //
  78. //  Data Structures
  79. //
  80.  
  81. typedef struct _MSG_INFO_0 {
  82.     LPWSTR  msgi0_name;
  83. }MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0;
  84.  
  85. typedef struct _MSG_INFO_1 {
  86.     LPWSTR  msgi1_name;
  87.     DWORD   msgi1_forward_flag;
  88.     LPWSTR  msgi1_forward;
  89. }MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1;
  90.  
  91. //
  92. // Special Values and Constants
  93. //
  94.  
  95. //
  96. // Values for msgi1_forward_flag.
  97. //
  98.  
  99. #define MSGNAME_NOT_FORWARDED   0       // Name not forwarded
  100. #define MSGNAME_FORWARDED_TO    0x04    // Name forward to remote station
  101. #define MSGNAME_FORWARDED_FROM  0x10    // Name forwarded from remote station
  102.  
  103. #ifdef __cplusplus
  104. }
  105. #endif
  106.  
  107. #pragma option pop /*P_O_Pop*/
  108. #endif //_LMMSG_
  109.