From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- public/sdk/inc/lmmsg.h | 106 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 public/sdk/inc/lmmsg.h (limited to 'public/sdk/inc/lmmsg.h') diff --git a/public/sdk/inc/lmmsg.h b/public/sdk/inc/lmmsg.h new file mode 100644 index 000000000..7ca4c65bd --- /dev/null +++ b/public/sdk/inc/lmmsg.h @@ -0,0 +1,106 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1996 Microsoft Corporation + +Module Name: + + lmmsg.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetMessage API. + +[Environment:] + + User Mode - Win32 + +[Notes:] + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMMSG_ +#define _LMMSG_ + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameAdd ( + IN LPCWSTR servername, + IN LPCWSTR msgname + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameEnum ( + IN LPCWSTR servername, + IN DWORD level, + OUT LPBYTE *bufptr, + IN DWORD prefmaxlen, + OUT LPDWORD entriesread, + OUT LPDWORD totalentries, + IN OUT LPDWORD resume_handle + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameGetInfo ( + IN LPCWSTR servername, + IN LPCWSTR msgname, + IN DWORD level, + OUT LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameDel ( + IN LPCWSTR servername, + IN LPCWSTR msgname + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageBufferSend ( + IN LPCWSTR servername, + IN LPCWSTR msgname, + IN LPCWSTR fromname, + IN LPBYTE buf, + IN DWORD buflen + ); + +// +// Data Structures +// + +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; + +// +// Special Values and Constants +// + +// +// Values for msgi1_forward_flag. +// + +#define MSGNAME_NOT_FORWARDED 0 // Name not forwarded +#define MSGNAME_FORWARDED_TO 0x04 // Name forward to remote station +#define MSGNAME_FORWARDED_FROM 0x10 // Name forwarded from remote station + +#ifdef __cplusplus +} +#endif + +#endif //_LMMSG_ -- cgit v1.2.3