The NetMessageNameGetInfo function retrieves information about a particular message alias in the message name table. This function requires that the Messenger service be started.
Only members of the Administrators local group can successfully execute NetMessageNameGetInfo on a remote server.
NET_API_STATUS NetMessageNameGetInfo(
LPTSTR servername, | |
LPTSTR msgname, | |
DWORD level, | |
LPBYTE *bufptr | |
); |
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. |
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. |