Author: tfaber Date: Sat Apr 18 16:40:48 2015 New Revision: 67263
URL: http://svn.reactos.org/svn/reactos?rev=67263&view=rev Log: [NETAPI32] - Stub NetEnumerateTrustedDomains. CORE-9560 #resolve
Modified: trunk/reactos/dll/win32/netapi32/access.c trunk/reactos/dll/win32/netapi32/netapi32.spec trunk/reactos/include/psdk/lmaccess.h
Modified: trunk/reactos/dll/win32/netapi32/access.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/access.c... ============================================================================== --- trunk/reactos/dll/win32/netapi32/access.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/access.c [iso-8859-1] Sat Apr 18 16:40:48 2015 @@ -260,3 +260,15 @@ debugstr_w(domainname), bufptr); return NERR_DCNotFound; /* say we can't find a domain controller */ } + +/************************************************************ + * NetEnumerateTrustedDomains (NETAPI32.@) + * + * On success, *DomainNames is a multi-sz allocated using NetApiBufferAllocate + */ +NTSTATUS WINAPI +NetEnumerateTrustedDomains(LPWSTR ServerName, LPWSTR *DomainNames) +{ + FIXME("(%s, %p) stub!\n", debugstr_w(ServerName), DomainNames); + return STATUS_NOT_IMPLEMENTED; +}
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netapi32... ============================================================================== --- trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] Sat Apr 18 16:40:48 2015 @@ -140,7 +140,7 @@ @ stub NetDfsSetSecurity @ stub NetDfsSetStdContainerSecurity @ stub NetEnumerateComputerNames -@ stub NetEnumerateTrustedDomains +@ stdcall NetEnumerateTrustedDomains(wstr ptr) @ stub NetErrorLogClear @ stub NetErrorLogRead @ stub NetErrorLogWrite
Modified: trunk/reactos/include/psdk/lmaccess.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/lmaccess.h?rev... ============================================================================== --- trunk/reactos/include/psdk/lmaccess.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/lmaccess.h [iso-8859-1] Sat Apr 18 16:40:48 2015 @@ -583,6 +583,11 @@ DWORD netlog3_reserved5; } NETLOGON_INFO_3,*PNETLOGON_INFO_3;
+#ifndef _NTDEF_ +typedef _Return_type_success_(return >= 0) LONG NTSTATUS; +typedef NTSTATUS *PNTSTATUS; +#endif + #if 0 /* MS has these defined, but the RxNetAccessXX functions aren't documented nor do they exist in any headers */ @@ -639,6 +644,7 @@ NET_API_STATUS WINAPI NetGetAnyDCName(LPCWSTR,LPCWSTR,PBYTE*); NET_API_STATUS WINAPI I_NetLogonControl(LPCWSTR,DWORD,DWORD,PBYTE*); NET_API_STATUS WINAPI I_NetLogonControl2(LPCWSTR,DWORD,DWORD,PBYTE,PBYTE*); +NTSTATUS WINAPI NetEnumerateTrustedDomains(LPWSTR,LPWSTR*); #ifdef __cplusplus } #endif