Prev Next

NetMessageNameDel info  Overview  Group

The NetMessageNameDel function deletes a message alias from the table of message aliases on a computer. This function requires that the Messenger service be started.

Security Requirements

Only members of the Administrators local group can successfully execute NetMessageNameDel on a remote server.

NET_API_STATUS NetMessageNameDel(

    LPTSTR servername,

    LPTSTR msgname

   );

Parameters

servername
Pointer to a Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer.
msgname
Pointer to a Unicode string containing the message name to be deleted. The string cannot be more than 15 characters long.

Return Values

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.

NERR_DelComputerName

A message alias that is also a computer name cannot be deleted.

NERR_IncompleteDel

The message alias was not successfully deleted from all networks.

NERR_NameInUse

The message alias is currently in use. Try again later.

NERR_NotLocalName

The message alias is not on the local computer.

See Also

NetMessageNameAdd