Group: Network Management - Library: netapi32
Registers a message alias in the message name table. The function requires that the messenger service be started.
Using the NetMessageBufferSend to send messages on the network
NNET_API_STATUS NetMessageNameAdd(
LPCWSTR servername,
LPCWSTR msgname
);
DECLARE INTEGER NetMessageNameAdd IN netapi32;
STRING servername,;
STRING msgname
servername [in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
msgname [in] Pointer to a constant string that specifies the message alias to add. The string cannot be more than 15 characters long.
If the function succeeds, the return value is NERR_Success (0).
See also: NetMessageNameEnum, NetMessageNameDel.