术语 | netgetjoininformation |
释义 | NetGetJoinInformation 语法: C++ NET_API_STATUS NetGetJoinInformation( __in LPCWSTR lpServer, __out LPWSTR *lpNameBuffer, __out PNETSETUP_JOIN_STATUS BufferType ); NetGetJoinInformation功能 该NetGetJoinInformation函数检索加入指定的计算机的状态信息。 参数 lpServer [in] 指针常量字符串指定的DNS或NetBIOS的计算机上调用函数的名称。如果该参数为NULL,则使用本地计算机。 lpNameBuffer [out] 缓冲区指针,它接收的域或工作组到该计算机加入NetBIOS名称。此缓冲区分配制度,必须使用NetApiBufferFree释放功能。有关更多信息,请参阅网络管理功能,缓冲器和网络管理功能缓冲区长度。 BufferType [out] 收到加入指定的计算机的状态。此参数可以有以下值之一。 typedef枚举_NETSETUP_JOIN_STATUS( NetSetupUnknownStatus = 0, NetSetupUnjoined, NetSetupWorkgroupName, NetSetupDomainName )NETSETUP_JOIN_STATUS,* PNETSETUP_JOIN_STATUS; 这些值的含义如下。 ValueMeaning NetSetupUnknownStatusThe身份不明。 NetSetupUnjoinedThe计算机未加入。 NetSetupWorkgroupNameThe计算机加入到工作组。 NetSetupDomainNameThe计算机加入到域。 返回值 如果函数成功,返回值是NERR_Success。 如果函数失败,返回值可以是下面的错误代码或系统错误代码之一。 返回codeDescription ERROR_NOT_ENOUGH_MEMORYNot存储空间不足,无法处理此命令。 备注 集团成员没有特殊需要成功地执行NetGetJoinInformation功能。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderLmjoin.h(包括Lm.h) LibraryNetapi32.lib DLLNetapi32.dll 参见 网络管理概述 网络管理功能 NetGetJoinableOUs 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月13日 ==英文原文==NetGetJoinInformation Function The NetGetJoinInformation function retrieves join status information for the specified computer. Syntax C++ NET_API_STATUS NetGetJoinInformation( __in LPCWSTR lpServer, __out LPWSTR *lpNameBuffer, __out PNETSETUP_JOIN_STATUS BufferType ); Parameters lpServer [in] Pointer to a constant string that specifies the DNS or NetBIOS name of the computer on which to call the function. If this parameter is NULL, the local computer is used. lpNameBuffer [out] Pointer to the buffer that receives the NetBIOS name of the domain or workgroup to which the computer is joined. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. For more information, see Network Management Function Buffers and Network Management Function Buffer Lengths . BufferType [out] Receives the join status of the specified computer. This parameter can have one of the following values. typedef enum _NETSETUP_JOIN_STATUS { NetSetupUnknownStatus = 0, NetSetupUnjoined, NetSetupWorkgroupName, NetSetupDomainName } NETSETUP_JOIN_STATUS, *PNETSETUP_JOIN_STATUS; These values have the following meanings. ValueMeaning NetSetupUnknownStatusThe status is unknown. NetSetupUnjoinedThe computer is not joined. NetSetupWorkgroupNameThe computer is joined to a workgroup. NetSetupDomainNameThe computer is joined to a domain. Return Value If the function succeeds, the return value is NERR_Success. If the function fails, the return value can be the following error code or one of the system error codes . Return codeDescription ERROR_NOT_ENOUGH_MEMORYNot enough storage is available to process this command. Remarks No special group membership is required to successfully execute the NetGetJoinInformation function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderLmjoin.h (include Lm.h) LibraryNetapi32.lib DLLNetapi32.dll See Also Network Management Overview Network Management Functions NetGetJoinableOUs Send comments about this topic to Microsoft Build date: 8/13/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa370423(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。