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.

106 lines
2.0 KiB

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