mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[NETAPI32] Implement DsEnumerateDomainTrustsW
This commit is contained in:
parent
7eb28dd0a9
commit
324afc252c
1 changed files with 23 additions and 2 deletions
|
@ -657,9 +657,30 @@ DsEnumerateDomainTrustsW(
|
|||
_Out_ PDS_DOMAIN_TRUSTSW *Domains,
|
||||
_Out_ PULONG DomainCount)
|
||||
{
|
||||
FIXME("DsEnumerateDomainTrustsW(%s, %x, %p, %p)\n",
|
||||
NETLOGON_TRUSTED_DOMAIN_ARRAY DomainsArray = {0, NULL};
|
||||
NET_API_STATUS status;
|
||||
|
||||
TRACE("DsEnumerateDomainTrustsW(%s, %x, %p, %p)\n",
|
||||
debugstr_w(ServerName), Flags, Domains, DomainCount);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
|
||||
RpcTryExcept
|
||||
{
|
||||
status = DsrEnumerateDomainTrusts(ServerName,
|
||||
Flags,
|
||||
&DomainsArray);
|
||||
if (status == NERR_Success)
|
||||
{
|
||||
*Domains = DomainsArray.Domains;
|
||||
*DomainCount = DomainsArray.DomainCount;
|
||||
}
|
||||
}
|
||||
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
status = I_RpcMapWin32Status(RpcExceptionCode());
|
||||
}
|
||||
RpcEndExcept;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue