NetMessageNameGetInfo

The NetMessageNameGetInfo function retrieves information about a particular 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 NetMessageNameGetInfo on a remote server.

NET_API_STATUS NetMessageNameGetInfo(
  LPWSTR servername,  
  LPWSTR msgname,     
  DWORD level,        
  LPBYTE *bufptr      
);
 

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 on which to return information.
level
Specifies one of the following values to indicate the level of information provided.
Value Meaning
0 The bufptr parameter points to an array of MSG_INFO_0 structures.
1 The bufptr parameter points to an array of MSG_INFO_1 structures.

bufptr
Pointer to the buffer in which the data set with the level parameter is stored.

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.
ERROR_INVALID_LEVEL The value specified for the Level parameter is invalid.
ERROR_NOT_ENOUGH_MEMORY Insufficient memory is available.
NERR_NotLocalName The message alias is not on the local computer.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in lmmsg.h.
  Import Library: Use netapi32.lib.

See Also

Networking (Net) Overview, Net Functions, NetMessageNameEnum