Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.1 KiB

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