网站首页  词典首页

请输入您要查询的函数:

 

术语 netmessagenameenum
释义 NetMessageNameEnum
语法:
C++
NET_API_STATUS NetMessageNameEnum(
__in LPCWSTR servername,
__in DWORD level,
__out LPBYTE *bufptr,
__in DWORD prefmaxlen,
__out LPDWORD entriesread,
__out LPDWORD totalentries,
__inout LPDWORD resume_handle
);
NetMessageNameEnum功能
[此功能不支持作为Windows Vista,因为信使服务不支持。]
该NetMessageNameEnum函数列出了信息接收的别名指定计算机上的信息。该函数规定,信使服务启动。
参数
服务器名 [in]
指针常量字符串指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
Level [in]
指定的数据信息的Level。此参数可以是下列值之一。
ValueMeaning
0Return消息别名。在bufptr参数指向一个MSG_INFO_0结构的数组。
1Return消息别名。在bufptr参数指向一个MSG_INFO_1结构的数组。这个级别只存在兼容性。消息转发不支持。
bufptr [out]
指针的缓冲区,接收数据。这一数据格式取决于Level的参数值。此缓冲区分配制度,必须使用NetApiBufferFree释放功能。请注意,您必须释放缓冲区,即使函数ERROR_MORE_DATA失败。
prefmaxlen [in]
指定返回数据的首选的最大字节长度。如果您指定MAX_PREFERRED_LENGTH,功能分配用于数据所需的内存量。如果指定这个参数在另一个值,它可以限制的字节数函数返回。如果缓冲区大小不足以容纳所有作品,该函数返回ERROR_MORE_DATA。有关更多信息,请参阅网络管理功能,缓冲器和网络管理功能缓冲区长度。
entriesread [out]
指针的值,它接收元素计数实际列举。
totalentries [out]
指针的值,它接收了本来可以列举参赛总人数从目前的恢复情况。请注意,应用程序应考虑仅作为提示此值。
resume_handle [ in , out ]
指针的值,它包含简历处理,用于继续现有的消息别名搜索。手柄应在第一次调用零,离开后续调用不变。如果resume_handle为NULL,没有恢复处理存储。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe调用方没有适当的访问,以完成操作。
ERROR_INVALID_LEVELThe价值Level参数指定无效。
ERROR_INVALID_PARAMETERA参数不正确。
ERROR_MORE_DATAMore项可用。指定一个足够大的缓冲区接收的所有条目。
ERROR_NOT_ENOUGH_MEMORYInsufficient内存可用。
ERROR_NOT_SUPPORTEDThis不支持请求。返回此错误在Windows Vista和更高版本。
NERR_BufTooSmallThe提供的缓冲区太小。
备注
系统管理员本地组的成员才可以成功地执行远程服务器上的NetMessageNameEnum功能。
要检索有关在邮件名称表中特定邮件别名的信息,您可以调用NetMessageNameGetInfo功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户supportWindows的高端XP
服务器supportWindows低端服务器2003
HeaderLmmsg.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
消息函数
MSG_INFO_0
MSG_INFO_1
NetMessageNameGetInfo
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetMessageNameEnum Function
[This function is not supported as of Windows Vista because the messenger service is not supported.]
The NetMessageNameEnum function lists the message aliases that receive messages on a specified computer. The function requires that the messenger service be started.
Syntax
C++
NET_API_STATUS NetMessageNameEnum(
__in LPCWSTR servername,
__in DWORD level,
__out LPBYTE *bufptr,
__in DWORD prefmaxlen,
__out LPDWORD entriesread,
__out LPDWORD totalentries,
__inout LPDWORD resume_handle
);
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.
level [in]
Specifies the information level of the data. This parameter can be one of the following values.
ValueMeaning
0Return message aliases. The bufptr parameter points to an array of MSG_INFO_0 structures.
1Return message aliases. The bufptr parameter points to an array of MSG_INFO_1 structures. This level exists only for compatibility. Message forwarding is not supported.

bufptr [out]
Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. Note that you must free the buffer even if the function fails with ERROR_MORE_DATA.
prefmaxlen [in]
Specifies the preferred maximum length of the returned data, in bytes. If you specify MAX_PREFERRED_LENGTH, the function allocates the amount of memory required for the data. If you specify another value in this parameter, it can restrict the number of bytes that the function returns. If the buffer size is insufficient to hold all entries, the function returns ERROR_MORE_DATA. For more information, see Network Management Function Buffers and Network Management Function Buffer Lengths .
entriesread [out]
Pointer to a value that receives the count of elements actually enumerated.
totalentries [out]
Pointer to a value that receives the total number of entries that could have been enumerated from the current resume position. Note that applications should consider this value only as a hint.
resume_handle [in, out]
Pointer to a value that contains a resume handle which is used to continue an existing message alias search. The handle should be zero on the first call and left unchanged for subsequent calls. If resume_handle is NULL, no resume handle is stored.
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_LEVELThe value specified for the level parameter is invalid.
ERROR_INVALID_PARAMETERA parameter is incorrect.
ERROR_MORE_DATAMore entries are available. Specify a large enough buffer to receive all entries.
ERROR_NOT_ENOUGH_MEMORYInsufficient memory is available.
ERROR_NOT_SUPPORTEDThis request is not supported. This error is returned on Windows Vista and later.
NERR_BufTooSmallThe supplied buffer is too small.

Remarks
Only members of the Administrators local group can successfully execute the NetMessageNameEnum function on a remote server.
To retrieve information about a particular message alias in the message name table, you can call the NetMessageNameGetInfo function.
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
MSG_INFO_0
MSG_INFO_1
NetMessageNameGetInfo
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370608(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:33