Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.32 KB

NetMessageNameAdd.md

File metadata and controls

53 lines (35 loc) · 1.32 KB

Home

Function name : NetMessageNameAdd

Group: Network Management - Library: netapi32


Registers a message alias in the message name table. The function requires that the messenger service be started.


Code examples:

Using the NetMessageBufferSend to send messages on the network

Declaration:

NNET_API_STATUS NetMessageNameAdd(
	LPCWSTR servername,
	LPCWSTR msgname
);  

FoxPro declaration:

DECLARE INTEGER NetMessageNameAdd IN netapi32;
	STRING servername,;
	STRING msgname  

Parameters:

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.


Return value:

If the function succeeds, the return value is NERR_Success (0).


Comments:

See also: NetMessageNameEnum, NetMessageNameDel.