网站首页  词典首页

请输入您要查询的函数:

 

术语 netmessagenameadd
释义 NetMessageNameAdd
语法:
C++
NET_API_STATUS NetMessageNameAdd(
__in LPCWSTR servername,
__in LPCWSTR msgname
);
NetMessageNameAdd功能
[此功能不支持作为Windows Vista,因为信使服务不支持。]
该NetMessageNameAdd函数注册的名称表中的信息消息别名。该函数规定,信使服务启动。
参数
服务器名 [in]
指针常量字符串指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
msgname [in]
指针常量字符串,指定消息别名添加。该字符串不能超过15个字符长。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe调用方没有适当的访问,以完成操作。
ERROR_INVALID_PARAMETERA参数不正确。
ERROR_NOT_SUPPORTEDThis不支持请求。返回此错误在Windows Vista和更高版本。
NERR_AlreadyExistsThe消息别名已存在此计算机上。有关详细信息,请参阅下面的备注部分。
NERR_DuplicateNameThe指定的名称已作为网络上的消息别名使用。
NERR_NetworkErrorA一般故障发生在网络硬件。
NERR_TooManyNamesThe别名的消息的最大数目已超出。
备注
系统管理员本地组的成员才可以成功地执行远程服务器上的NetMessageNameAdd功能。
远期行动标志不再是到LAN管理器2.xNetMessageNameAdd功能参数,因为信息转发不再支持。如果NetMessageNameAdd功能检测到一个msgname转发版本在网络上存在,函数将失败,错误NERR_Already_Exists。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户supportWindows的高端XP
服务器supportWindows低端服务器2003
HeaderLmmsg.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
消息函数
NetMessageNameDel
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetMessageNameAdd Function
[This function is not supported as of Windows Vista because the messenger service is not supported.]
The NetMessageNameAdd function registers a message alias in the message name table. The function requires that the messenger service be started.
Syntax
C++
NET_API_STATUS NetMessageNameAdd(
__in LPCWSTR servername,
__in LPCWSTR 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.
If the function fails, the return value can be one of the following error codes.
Return codeDescription
ERROR_ACCESS_DENIEDThe caller does not have the appropriate access to complete the operation.
ERROR_INVALID_PARAMETERA parameter is incorrect.
ERROR_NOT_SUPPORTEDThis request is not supported. This error is returned on Windows Vista and later.
NERR_AlreadyExistsThe message alias already exists on this computer. For more information, see the following Remarks section.
NERR_DuplicateNameThe name specified is already in use as a message alias on the network.
NERR_NetworkErrorA general failure occurred in the network hardware.
NERR_TooManyNamesThe maximum number of message aliases has been exceeded.

Remarks
Only members of the Administrators local group can successfully execute the NetMessageNameAdd function on a remote server.
The forward action flag is no longer a parameter to the LAN Manager 2.xNetMessageNameAdd function 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.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
End of client supportWindows XP
End of server supportWindows Server 2003
HeaderLmmsg.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Message Functions
NetMessageNameDel
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370606(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:30:03