Leaked source code of windows server 2003
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.

110 lines
2.1 KiB

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