netapi: Stub for DsGetDcNameA

Paul Chitescu paulc at voip.null.ro
Thu Oct 5 09:26:53 CDT 2006


Changelog: Add stub implementation of DsGetDcNameA

Note: I noticed MSDN listing DsGetDcName as taking 7 parameters (there's an 
extra domain name as 3rd parameter) while wine versions have only 6 
parameters. Which is correct?

Paul Chitescu
-------------- next part --------------
--- ./dlls/netapi32/ds.c.orig	2006-09-28 16:57:00.000000000 +0300
+++ ./dlls/netapi32/ds.c	2006-09-28 18:32:46.000000000 +0300
@@ -43,6 +43,16 @@
     return ERROR_CALL_NOT_IMPLEMENTED;
 }
 
+DWORD WINAPI DsGetDcNameA(LPCSTR ComputerName, LPCSTR AvoidDCName,
+ GUID* DomainGuid, LPCSTR SiteName, ULONG Flags,
+ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
+{
+    FIXME("(%s, %s, %s, %s, %08lx, %p): stub\n", debugstr_a(ComputerName),
+     debugstr_a(AvoidDCName), debugstr_guid(DomainGuid),
+     debugstr_a(SiteName), Flags, DomainControllerInfo);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
 DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName)
 {
     FIXME("(%s, %p): stub\n", debugstr_w(ComputerName), SiteName);
--- ./dlls/netapi32/netapi32.spec.orig	2006-09-28 16:57:00.000000000 +0300
+++ ./dlls/netapi32/netapi32.spec	2006-09-28 18:28:46.000000000 +0300
@@ -3,7 +3,7 @@
 @ stub DsDeregisterDnsHostRecords
 @ stub DsEnumerateDomainTrusts
 @ stub DsGetDcClose
-@ stub DsGetDcNameA # (str str ptr str long ptr)
+@ stdcall DsGetDcNameA(str str ptr str long ptr)
 @ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr)
 @ stub DsGetDcNext
 @ stub DsGetDcOpen


More information about the wine-patches mailing list