lmmsg.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _LMMSG_
  7. #define _LMMSG_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. NET_API_STATUS WINAPI NetMessageNameAdd(LPCWSTR servername,LPCWSTR msgname);
  12. NET_API_STATUS WINAPI NetMessageNameEnum(LPCWSTR servername,DWORD level,LPBYTE *bufptr,DWORD prefmaxlen,LPDWORD entriesread,LPDWORD totalentries,LPDWORD resume_handle);
  13. NET_API_STATUS WINAPI NetMessageNameGetInfo(LPCWSTR servername,LPCWSTR msgname,DWORD level,LPBYTE *bufptr);
  14. NET_API_STATUS WINAPI NetMessageNameDel(LPCWSTR servername,LPCWSTR msgname);
  15. NET_API_STATUS WINAPI NetMessageBufferSend(LPCWSTR servername,LPCWSTR msgname,LPCWSTR fromname,LPBYTE buf,DWORD buflen);
  16. typedef struct _MSG_INFO_0 {
  17. LPWSTR msgi0_name;
  18. } MSG_INFO_0,*PMSG_INFO_0,*LPMSG_INFO_0;
  19. typedef struct _MSG_INFO_1 {
  20. LPWSTR msgi1_name;
  21. DWORD msgi1_forward_flag;
  22. LPWSTR msgi1_forward;
  23. } MSG_INFO_1,*PMSG_INFO_1,*LPMSG_INFO_1;
  24. #define MSGNAME_NOT_FORWARDED 0
  25. #define MSGNAME_FORWARDED_TO 0x04
  26. #define MSGNAME_FORWARDED_FROM 0x10
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif