home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / lmmsg.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  107 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. #define _LMMSG_
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. //
  33. // Function Prototypes
  34. //
  35.  
  36. NET_API_STATUS NET_API_FUNCTION
  37. NetMessageNameAdd (
  38.     IN  LPCWSTR  servername,
  39.     IN  LPCWSTR  msgname
  40.     );
  41.  
  42. NET_API_STATUS NET_API_FUNCTION
  43. NetMessageNameEnum (
  44.     IN  LPCWSTR     servername,
  45.     IN  DWORD       level,
  46.     OUT LPBYTE      *bufptr,
  47.     IN  DWORD       prefmaxlen,
  48.     OUT LPDWORD     entriesread,
  49.     OUT LPDWORD     totalentries,
  50.     IN OUT LPDWORD  resume_handle
  51.     );
  52.  
  53. NET_API_STATUS NET_API_FUNCTION
  54. NetMessageNameGetInfo (
  55.     IN  LPCWSTR servername,
  56.     IN  LPCWSTR msgname,
  57.     IN  DWORD   level,
  58.     OUT LPBYTE  *bufptr
  59.     );
  60.  
  61. NET_API_STATUS NET_API_FUNCTION
  62. NetMessageNameDel (
  63.     IN  LPCWSTR   servername,
  64.     IN  LPCWSTR   msgname
  65.     );
  66.  
  67. NET_API_STATUS NET_API_FUNCTION
  68. NetMessageBufferSend (
  69.     IN  LPCWSTR  servername,
  70.     IN  LPCWSTR  msgname,
  71.     IN  LPCWSTR  fromname,
  72.     IN  LPBYTE   buf,
  73.     IN  DWORD    buflen
  74.     );
  75.  
  76. //
  77. //  Data Structures
  78. //
  79.  
  80. typedef struct _MSG_INFO_0 {
  81.     LPWSTR  msgi0_name;
  82. }MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0;
  83.  
  84. typedef struct _MSG_INFO_1 {
  85.     LPWSTR  msgi1_name;
  86.     DWORD   msgi1_forward_flag;
  87.     LPWSTR  msgi1_forward;
  88. }MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1;
  89.  
  90. //
  91. // Special Values and Constants
  92. //
  93.  
  94. //
  95. // Values for msgi1_forward_flag.
  96. //
  97.  
  98. #define MSGNAME_NOT_FORWARDED   0       // Name not forwarded
  99. #define MSGNAME_FORWARDED_TO    0x04    // Name forward to remote station
  100. #define MSGNAME_FORWARDED_FROM  0x10    // Name forwarded from remote station
  101.  
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105.  
  106. #endif //_LMMSG_
  107.