The NetMessageBufferSend function sends a buffer of information to a registered message alias.
No special group membership is required to execute NetMessageBufferSend on a LAN Manager or Windows NT system. Admin, Accounts, Print, or Server operator group membership is required to successfully execute NetMessageBufferSend on a remote server.
NET_API_STATUS NetMessageBufferSend(
LPWSTR servername,
LPWSTR msgname,
LPWSTR fromname,
LPBYTE buf,
DWORD buflen
);
If the function returns account information, the return value is NERR_Success.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
ERROR_ACCESS_DENIED | The user does not have access to the requested information. |
ERROR_INVALID_PARAMETER | The specified parameter is invalid. |
ERROR_NOT_SUPPORTED | This network request is not supported. |
NERR_NameNotFound | The user name could not be found. |
NERR_NetworkError | A general failure occurred in the network hardware. |
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmmsg.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetMessageNameAdd, NetMessageNameDel, NetMessageNameEnum, NetMessageNameGetInfo