网站首页  词典首页

请输入您要查询的函数:

 

术语 netgetjoinableous
释义 NetGetJoinableOUs
语法:
C++
NET_API_STATUS NetGetJoinableOUs(
__in LPCWSTR lpServer,
__in LPCWSTR lpDomain,
__in LPCWSTR lpAccount,
__in LPCWSTR lpPassword,
__out DWORD *OUCount,
__out LPWSTR **OUs
);
NetGetJoinableOUs功能
该NetGetJoinableOUs函数检索一个(类),其中一台计算机的帐户可以创建组织单位名单。
参数
lpServer [in]
指针常量字符串指定的DNS或NetBIOS的计算机上调用函数的名称。如果该参数为NULL,则使用本地计算机。
lpDomain [in]
指针常量字符串,指定的域名,检索OU的名单,可以加入的名称。
lpAccount [in]
指针常量字符串,指定的帐户时所使用的名称连接到域控制器。该字符串必须指定一个域的NetBIOS名称和用户帐户(例如,“雷德蒙德\\用户”)或用户主要名称(UPN)在一个互联网的形式向用户式(例如登录名,“有人@ example.com“)。如果该参数为NULL,则调用方的上下文被使用。
lpPassword [in]
如果lpAccount参数指定的帐户名,此参数必须指向要使用的密码当连接到域控制器。否则,此参数必须为NULL。
OUCount [out]
在收到的可连接OU的名单返回OU的罪名。
OU的[出]
指针数组,它接收的可连接OU的名单。此数组分配的制度,必须释放使用单一调用NetApiBufferFree功能。有关更多信息,请参阅网络管理功能,缓冲器和网络管理功能缓冲区长度。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码或系统错误代码之一。
返回codeDescription
ERROR_NOT_ENOUGH_MEMORYNot存储空间不足,无法处理此命令。
NERR_DefaultJoinRequiredThe目标域控制器不支持在OU中创建计算机帐户。
备注
没有特殊组成员必须成功地执行NetGetJoinableOUs功能。
如需有关组织单位的信息,请参阅管理Active Directory中的用户文件。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmjoin.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
NetGetJoinInformation
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetGetJoinableOUs Function
The NetGetJoinableOUs function retrieves a list of organizational units (OUs) in which a computer account can be created.
Syntax
C++
NET_API_STATUS NetGetJoinableOUs(
__in LPCWSTR lpServer,
__in LPCWSTR lpDomain,
__in LPCWSTR lpAccount,
__in LPCWSTR lpPassword,
__out DWORD *OUCount,
__out LPWSTR **OUs
);
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.
lpDomain [in]
Pointer to a constant string that specifies the name of the domain for which to retrieve the list of OUs that can be joined.
lpAccount [in]
Pointer to a constant string that specifies the account name to use when connecting to the domain controller. The string must specify either a domain NetBIOS name and user account (for example, "REDMOND\\user") or the user principal name (UPN) of the user in the form of an Internet-style login name (for example, "someone@example.com"). If this parameter is NULL, the caller's context is used.
lpPassword [in]
If the lpAccount parameter specifies an account name, this parameter must point to the password to use when connecting to the domain controller. Otherwise, this parameter must be NULL.
OUCount [out]
Receives the count of OUs returned in the list of joinable OUs.
OUs [out]
Pointer to an array that receives the list of joinable OUs. This array is allocated by the system and must be freed using a single call to the NetApiBufferFree function. For more information, see Network Management Function Buffers and Network Management Function Buffer Lengths .
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 or one of the system error codes .
Return codeDescription
ERROR_NOT_ENOUGH_MEMORYNot enough storage is available to process this command.
NERR_DefaultJoinRequiredThe destination domain controller does not support creating computer accounts in OUs.

Remarks
No special group membership is required to successfully execute the NetGetJoinableOUs function.
For more information about organizational units, see Managing Users in the Active Directory documentation.
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
NetGetJoinInformation
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370422(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:24:23