please dont rip this site Prev Next

NetMessageNameAdd info  Overview  Group

The NetMessageNameAdd function registers a message alias in the message name table. This function requires that the Messenger service be started.

Security Requirements

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

NET_API_STATUS NetMessageNameAdd(

    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 added. 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_INVALID_PARAMETER

The specified parameter is invalid.

NERR_AlreadyExists

The message alias already exists on this computer.

NERR_DuplicateName

The name specified is already in use as a message alias on the network.

NERR_NetworkError

A general failure occurred in the network hardware.

NERR_TooManyNames

The maximum number of message aliases has been exceeded.

Remarks

The forward action flag from the LAN Manager 2.x NetMessageNameAdd function is no longer a parameter because message forwarding is no longer supported. If the NetMessageNameAdd function detects that a forwarded version of msgname exists on the network, the function will fail with error NERR_Already_Exists.

See Also

NetMessageNameDel 


file: /Techref/os/win/api/win32/func/src/f61_6.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/25 07:14,
TOP NEW HELP FIND: 
18.227.0.57:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f61_6.htm"> NetMessageNameAdd</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .