术语 | netremotecomputersupports |
释义 | NetRemoteComputerSupports 语法: C++ NET_API_STATUS NetRemoteComputerSupports( __in LPCWSTR UncServerName, __in DWORD OptionsWanted, __out LPDWORD OptionsSupported ); NetRemoteComputerSupports功能 该NetRemoteComputerSupports函数查询重定向到远程检索系统支持可选功能。其功能包括统一代码,远程过程调用(RPC),以及远程管理协议的支持。函数建立一个网络连接,如果不存在。 参数 UncServerName [in] 指针常量字符串,指定远程服务器的名称查询。如果该参数为NULL,则使用本地计算机。 OptionsWanted [in] 指定一个值,它包含了一些感兴趣的指示标志设置的功能。此参数必须至少有以下值之一。 ValueMeaning SUPPORTS_REMOTE_ADMIN_PROTOCOLRequests远程管理协议的支持。 SUPPORTS_RPCRequests RPC支持。 SUPPORTS_SAM_PROTOCOLRequests安全帐户管理器(SAM)的支持。 SUPPORTS_UNICODERequests Unicode标准的支持。 SUPPORTS_LOCALRequests支持前三此表中列出的值。如果Unicode是由调用应用程序定义的,请列出以前四个特点。 OptionsSupported [out] 指针的值,它接收的位标志集。标志指示为特色的OptionsWanted参数指定正由UncServerName参数指定的计算机上实现。 (所有其他位都设置为0。) 这个参数的值是有效的只有NetRemoteComputerSupports函数返回NERR_Success。 返回值 如果函数成功,返回值是NERR_Success。 如果函数失败,返回值可以是下面的错误代码之一。 返回codeDescription ERROR_INVALID_PARAMETEREither的OptionsWanted参数或OptionsSupported参数为NULL,这两个参数是必需的。 ERROR_NOT_ENOUGH_MEMORYInsufficient内存可用。 备注 没有特殊组成员必须成功地执行NetRemoteComputerSupports功能。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderLmremutl.h(包括Lm.h) LibraryNetapi32.lib DLLNetapi32.dll 参见 网络管理概述 网络管理功能 远程实用功能 NetServerGetInfo 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月13日 ==英文原文==NetRemoteComputerSupports Function The NetRemoteComputerSupports function queries the redirector to retrieve the optional features the remote system supports. Features include Unicode, Remote Procedure Call (RPC), and Remote Administration Protocol support. The function establishes a network connection if one does not exist. Syntax C++ NET_API_STATUS NetRemoteComputerSupports( __in LPCWSTR UncServerName, __in DWORD OptionsWanted, __out LPDWORD OptionsSupported ); Parameters UncServerName [in] Pointer to a constant string that specifies the name of the remote server to query. If this parameter is NULL, the local computer is used. OptionsWanted [in] Specifies a value that contains a set of bit flags indicating the features of interest. This parameter must be at least one of the following values. ValueMeaning SUPPORTS_REMOTE_ADMIN_PROTOCOLRequests Remote Administration Protocol support. SUPPORTS_RPCRequests RPC support. SUPPORTS_SAM_PROTOCOLRequests Security Account Manager (SAM) support. SUPPORTS_UNICODERequests Unicode standard support. SUPPORTS_LOCALRequests support for the first three values listed in this table. If UNICODE is defined by the calling application, requests the four features listed previously. OptionsSupported [out] Pointer to a value that receives a set of bit flags. The flags indicate which features specified by the OptionsWanted parameter are implemented on the computer specified by the UncServerName parameter. (All other bits are set to zero.) The value of this parameter is valid only when the NetRemoteComputerSupports function returns NERR_Success. 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_INVALID_PARAMETEREither the OptionsWanted parameter or the OptionsSupported parameter is NULL; both parameters are required. ERROR_NOT_ENOUGH_MEMORYInsufficient memory is available. Remarks No special group membership is required to successfully execute the NetRemoteComputerSupports function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderLmremutl.h (include Lm.h) LibraryNetapi32.lib DLLNetapi32.dll See Also Network Management Overview Network Management Functions Remote Utility Functions NetServerGetInfo Send comments about this topic to Microsoft Build date: 8/13/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa370611(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。