A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z


The NetMessageBufferSend function sends a buffer of information to a registered message alias.

Declare Function NetMessageBufferSend Lib "NETAPI32.DLL" (yServer As Any, yToName As Byte, yFromName As Any, yMsg As Byte, ByVal lSize As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Win9x/ME: Not supported


Parameter Information
- servername
[in] Pointer to a constant Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.

- msgname
[in] Pointer to a constant Unicode string specifying the message alias to which the message buffer should be sent.

- fromname
[in] Pointer to a constant Unicode string specifying who the message is from. If this parameter is NULL, the message is sent from the local computer name.

- buf
[in] Pointer to a buffer that contains the message text.

- buflen
[in] Specifies a DWORD value that contains the length, in bytes, of the message text pointed to by the buf parameter.

Return Values
If the function succeeds, the return value is NERR_Success.

If the function fails, the return value can be one of the following error codes.

The user does not have access to the requested information.
The specified parameter is invalid.
This network request is not supported.
The user name could not be found.
A general failure occurred in the network hardware.

Last update: 07 April 2006