网站首页  词典首页

请输入您要查询的函数:

 

术语 netmessagebuffersend
释义 NetMessageBufferSend
语法:
C++
NET_API_STATUS NetMessageBufferSend(
__in LPCWSTR servername,
__in LPCWSTR msgname,
__in LPCWSTR fromname,
__in LPBYTE buf,
__in DWORD buflen
);
NetMessageBufferSend功能
[此功能不支持作为Windows Vista,因为信使服务不支持。]
该NetMessageBufferSend函数发送的信息缓冲区注册消息别名。
参数
服务器名 [in]
指针常量字符串指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
msgname [in]
指针常量字符串,指定电文的消息缓冲区应发送别名。
fromname [in]
指针常量字符串指定谁的消息是从。如果该参数为NULL,则发送消息从本地计算机的名称。
缓冲带 [in]
缓冲区指针包含的消息文本。有关更多信息,请参阅网络管理功能的缓冲器。
buflen [in]
指定一个值,它包含的长度,以字节的消息的文本,指出由buf参数。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe调用方没有适当的访问,以完成操作。
ERROR_INVALID_PARAMETERA参数不正确。
ERROR_NOT_SUPPORTEDThis不支持请求。返回此错误在Windows Vista和更高版本。
NERR_NameNotFoundThe用户名找不到。
NERR_NetworkErrorA一般故障发生在网络硬件。
备注
如果您调用域控制器上运行Active Directory的这一功能,允许访问或拒绝的访问控制列表的安全对象(ACL)的基础。默认的ACL只允许域管理员和Account Operators调用此函数。在成员服务器或工作站,只有管理员和服务器操作员可以调用这个函数。有关更多信息,请参阅的网络管理功能的安全要求。欲了解更多有关ACL和ACE的信息,请访问控制模型。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户supportWindows的高端XP
服务器supportWindows低端服务器2003
HeaderLmmsg.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
消息函数
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetMessageNameGetInfo
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetMessageBufferSend Function
[This function is not supported as of Windows Vista because the messenger service is not supported.]
The NetMessageBufferSend function sends a buffer of information to a registered message alias.
Syntax
C++
NET_API_STATUS NetMessageBufferSend(
__in LPCWSTR servername,
__in LPCWSTR msgname,
__in LPCWSTR fromname,
__in LPBYTE buf,
__in DWORD buflen
);
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 which the message buffer should be sent.
fromname [in]
Pointer to a constant string specifying who the message is from. If this parameter is NULL, the message is sent from the local computer name.
buf [in]
Pointer to a buffer that contains the message text. For more information, see Network Management Function Buffers .
buflen [in]
Specifies a value that contains the length, in bytes, of the message text pointed to by the buf parameter.
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_NameNotFoundThe user name could not be found.
NERR_NetworkErrorA general failure occurred in the network hardware.

Remarks
If you call this function on a domain controller that is running Active Directory, access is allowed or denied based on the access control list (ACL) for the securable object. The default ACL permits only Domain Admins and Account Operators to call this function. On a member server or workstation, only Administrators and Server Operators can call this function. For more information, see Security Requirements for the Network Management Functions . For more information on ACLs and ACEs, see Access Control Model .
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
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetMessageNameGetInfo
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370605(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:22:18