netapi32: Add DsEnumerateDomainTrustsA/W stubs.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2018-04-29 01:49:57 +00:00 committed by Alexandre Julliard
parent 816b22a650
commit 07e41e4c9b
3 changed files with 46 additions and 1 deletions

View File

@ -3544,6 +3544,24 @@ DWORD WINAPI DavGetUNCFromHTTPPath(const WCHAR *http_path, WCHAR *buf, DWORD *bu
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
/************************************************************
* DsEnumerateDomainTrustsA (NETAPI32.@)
*/
DWORD WINAPI DsEnumerateDomainTrustsA(LPSTR server, ULONG flags, PDS_DOMAIN_TRUSTSA* domains, PULONG count)
{
FIXME("(%s, 0x%04x, %p, %p): stub\n", debugstr_a(server), flags, domains, count);
return ERROR_NO_LOGON_SERVERS;
}
/************************************************************
* DsEnumerateDomainTrustsW (NETAPI32.@)
*/
DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR server, ULONG flags, PDS_DOMAIN_TRUSTSW* domains, PULONG count)
{
FIXME("(%s, 0x%04x, %p, %p): stub\n", debugstr_w(server), flags, domains, count);
return ERROR_NO_LOGON_SERVERS;
}
DECLSPEC_HIDDEN void __RPC_FAR *__RPC_USER MIDL_user_allocate(SIZE_T n) DECLSPEC_HIDDEN void __RPC_FAR *__RPC_USER MIDL_user_allocate(SIZE_T n)
{ {
return HeapAlloc(GetProcessHeap(), 0, n); return HeapAlloc(GetProcessHeap(), 0, n);

View File

@ -3,7 +3,8 @@
@ stub DsAddressToSiteNames @ stub DsAddressToSiteNames
@ stub DsAddressToSiteNamesEx @ stub DsAddressToSiteNamesEx
@ stub DsDeregisterDnsHostRecords @ stub DsDeregisterDnsHostRecords
@ stub DsEnumerateDomainTrusts @ stdcall DsEnumerateDomainTrustsA(str long ptr ptr)
@ stdcall DsEnumerateDomainTrustsW(wstr long ptr ptr)
@ stub DsGetDcClose @ stub DsGetDcClose
@ stdcall DsGetDcNameA(str str ptr str long ptr) @ stdcall DsGetDcNameA(str str ptr str long ptr)
@ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr) @ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr)

View File

@ -86,6 +86,28 @@ typedef struct _DOMAIN_CONTROLLER_INFOW {
LPWSTR ClientSiteName; LPWSTR ClientSiteName;
} DOMAIN_CONTROLLER_INFOW, *PDOMAIN_CONTROLLER_INFOW; } DOMAIN_CONTROLLER_INFOW, *PDOMAIN_CONTROLLER_INFOW;
typedef struct _DS_DOMAIN_TRUSTSA {
LPSTR NetbiosDomainName;
LPSTR DnsDomainName;
ULONG Flags;
ULONG ParentIndex;
ULONG TrustType;
ULONG TrustAttributes;
PSID DomainSid;
GUID DomainGuid;
} DS_DOMAIN_TRUSTSA, *PDS_DOMAIN_TRUSTSA;
typedef struct _DS_DOMAIN_TRUSTSW {
LPWSTR NetbiosDomainName;
LPWSTR DnsDomainName;
ULONG Flags;
ULONG ParentIndex;
ULONG TrustType;
ULONG TrustAttributes;
PSID DomainSid;
GUID DomainGuid;
} DS_DOMAIN_TRUSTSW, *PDS_DOMAIN_TRUSTSW;
DECL_WINELIB_TYPE_AW(DOMAIN_CONTROLLER_INFO) DECL_WINELIB_TYPE_AW(DOMAIN_CONTROLLER_INFO)
DWORD WINAPI DsGetDcNameA(LPCSTR,LPCSTR,GUID*,LPCSTR,ULONG,PDOMAIN_CONTROLLER_INFOA*); DWORD WINAPI DsGetDcNameA(LPCSTR,LPCSTR,GUID*,LPCSTR,ULONG,PDOMAIN_CONTROLLER_INFOA*);
@ -96,6 +118,10 @@ DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName);
DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName); DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName);
#define DsGetSiteName WINELIB_NAME_AW(DsGetSiteName) #define DsGetSiteName WINELIB_NAME_AW(DsGetSiteName)
DWORD WINAPI DsEnumerateDomainTrustsA(LPSTR, ULONG, PDS_DOMAIN_TRUSTSA*, PULONG);
DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR, ULONG, PDS_DOMAIN_TRUSTSW*, PULONG);
#define DsEnumerateDomainTrusts WINELIB_NAME_AW(DsEnumerateDomainTrusts)
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif