From 8e01c1b2a3dc7aa4a79f9444b5dff53dd4f6408e Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Thu, 8 Jun 2006 00:14:28 -0400 Subject: [PATCH] include: Add lmmsg.h. --- include/Makefile.in | 1 + include/lm.h | 1 + include/lmmsg.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 include/lmmsg.h diff --git a/include/Makefile.in b/include/Makefile.in index d9825c43590..a7a4a74ac10 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -162,6 +162,7 @@ WINDOWS_INCLUDES = \ lmcons.h \ lmerr.h \ lmjoin.h \ + lmmsg.h \ lmserver.h \ lmshare.h \ lmstats.h \ diff --git a/include/lm.h b/include/lm.h index 681440d50e3..6151fd5e377 100644 --- a/include/lm.h +++ b/include/lm.h @@ -31,5 +31,6 @@ #include #include #include +#include #endif diff --git a/include/lmmsg.h b/include/lmmsg.h new file mode 100644 index 00000000000..a6b395b1b0e --- /dev/null +++ b/include/lmmsg.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2006 Robert Reif + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#ifndef _LMMSG_ +#define _LMMSG_ + +#ifdef __cplusplus +extern "C" { +#endif + +#define MSGNAME_NOT_FORWARDED 0x00 +#define MSGNAME_FORWARDED_TO 0x04 +#define MSGNAME_FORWARDED_FROM 0x10 + +typedef struct _MSG_INFO_0 +{ + LPWSTR msgi0_name; +} MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0; + +typedef struct _MSG_INFO_1 +{ + LPWSTR msgi1_name; + DWORD msgi1_forward_flag; + LPWSTR msgi1_forward; +} MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1; + +NET_API_STATUS NET_API_FUNCTION NetMessageBufferSend(LPCWSTR,LPCWSTR,LPCWSTR,LPBYTE,DWORD); +NET_API_STATUS NET_API_FUNCTION NetMessageNameAdd(LPCWSTR,LPCWSTR); +NET_API_STATUS NET_API_FUNCTION NetMessageNameDel(LPCWSTR,LPCWSTR); +NET_API_STATUS NET_API_FUNCTION NetMessageNameEnum(LPCWSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD); +NET_API_STATUS NET_API_FUNCTION NetMessageNameGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*); + +#ifdef __cplusplus +} +#endif + +#endif -- 2.11.4.GIT