Add a stub implementation of ntdsapi.dll
Dmitry Timoshkov
dmitry at codeweavers.com
Fri May 19 02:36:20 CDT 2006
Hello,
Changelog:
Add a stub implementation of ntdsapi.dll.
diff -up cvs/hq/wine/configure.ac wine/configure.ac
--- cvs/hq/wine/configure.ac 2006-05-17 11:16:47.000000000 +0900
+++ wine/configure.ac 2006-05-19 15:57:29.000000000 +0900
@@ -1641,6 +1641,7 @@ dlls/netapi32/tests/Makefile
dlls/newdev/Makefile
dlls/ntdll/Makefile
dlls/ntdll/tests/Makefile
+dlls/ntdsapi/Makefile
dlls/objsel/Makefile
dlls/odbc32/Makefile
dlls/odbccp32/Makefile
diff -up cvs/hq/wine/dlls/Makefile.in wine/dlls/Makefile.in
--- cvs/hq/wine/dlls/Makefile.in 2006-05-11 16:11:41.000000000 +0900
+++ wine/dlls/Makefile.in 2006-05-19 15:57:05.000000000 +0900
@@ -107,6 +107,7 @@ BASEDIRS = \
netapi32 \
newdev \
ntdll \
+ ntdsapi \
objsel \
odbc32 \
odbccp32 \
@@ -507,6 +508,7 @@ IMPORT_LIBS = \
netapi32/libnetapi32.$(IMPLIBEXT) \
newdev/libnewdev.$(IMPLIBEXT) \
ntdll/libntdll.$(IMPLIBEXT) \
+ ntdsapi/libntdsapi.$(IMPLIBEXT) \
odbc32/libodbc32.$(IMPLIBEXT) \
odbccp32/libodbccp32.$(IMPLIBEXT) \
ole32/libole32.$(IMPLIBEXT) \
@@ -747,6 +749,9 @@ newdev/libnewdev.$(IMPLIBEXT): newdev/ne
ntdll/libntdll.$(IMPLIBEXT): ntdll/ntdll.spec $(WINEBUILD)
@cd ntdll && $(MAKE) libntdll.$(IMPLIBEXT)
+ntdsapi/libntdsapi.$(IMPLIBEXT): ntdsapi/ntdsapi.spec $(WINEBUILD)
+ @cd ntdsapi && $(MAKE) libntdsapi.$(IMPLIBEXT)
+
odbc32/libodbc32.$(IMPLIBEXT): odbc32/odbc32.spec $(WINEBUILD)
@cd odbc32 && $(MAKE) libodbc32.$(IMPLIBEXT)
diff -up /dev/null wine/dlls/ntdsapi/.cvsignore
--- /dev/null
+++ wine/dlls/ntdsapi/.cvsignore 2006-05-19 15:55:19.000000000 +0900
@@ -0,0 +1,2 @@
+Makefile
+libntdsapi.def
diff -up /dev/null wine/dlls/ntdsapi/Makefile.in
--- /dev/null
+++ wine/dlls/ntdsapi/Makefile.in 2006-05-19 15:55:51.000000000 +0900
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = ntdsapi.dll
+IMPORTLIB = libntdsapi.$(IMPLIBEXT)
+IMPORTS = kernel32
+
+C_SRCS = \
+ ntdsapi.c
+
+ at MAKE_DLL_RULES@
+
+### Dependencies:
diff -up /dev/null wine/dlls/ntdsapi/ntdsapi.c
--- /dev/null
+++ wine/dlls/ntdsapi/ntdsapi.c 2006-05-19 16:04:43.000000000 +0900
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2006 Dmitry Timoshkov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "ntdsapi.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(ntdsapi);
+
+/*****************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
+{
+ TRACE("(%p, %ld, %p)\n", hinst, reason, reserved);
+
+ switch(reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls( hinst );
+ break;
+ }
+ return TRUE;
+}
+
+DWORD WINAPI DsMakeSpnW(LPCWSTR svc_class, LPCWSTR svc_name,
+ LPCWSTR inst_name, USHORT inst_port,
+ LPCWSTR ref, DWORD *spn_length, LPWSTR spn)
+{
+ FIXME("(%s,%s,%s,%d,%s,%p,%p): stub!\n", debugstr_w(svc_class),
+ debugstr_w(svc_name), debugstr_w(inst_name), inst_port,
+ debugstr_w(ref), spn_length, spn);
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+DWORD WINAPI DsMakeSpnA(LPCSTR svc_class, LPCSTR svc_name,
+ LPCSTR inst_name, USHORT inst_port,
+ LPCSTR ref, DWORD *spn_length, LPSTR spn)
+{
+ FIXME("(%s,%s,%s,%d,%s,%p,%p): stub!\n", debugstr_a(svc_class),
+ debugstr_a(svc_name), debugstr_a(inst_name), inst_port,
+ debugstr_a(ref), spn_length, spn);
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
diff -up /dev/null wine/dlls/ntdsapi/ntdsapi.spec
--- /dev/null
+++ wine/dlls/ntdsapi/ntdsapi.spec 2006-05-19 15:29:16.000000000 +0900
@@ -0,0 +1,96 @@
+@ stub DsAddSidHistoryA
+@ stub DsAddSidHistoryW
+@ stub DsBindA
+@ stub DsBindW
+@ stub DsBindWithCredA
+@ stub DsBindWithCredW
+@ stub DsBindWithSpnA
+@ stub DsBindWithSpnW
+@ stub DsClientMakeSpnForTargetServerA
+@ stub DsClientMakeSpnForTargetServerW
+@ stub DsCrackNamesA
+@ stub DsCrackNamesW
+@ stub DsCrackSpn2A
+@ stub DsCrackSpn2W
+@ stub DsCrackSpn3W
+@ stub DsCrackSpnA
+@ stub DsCrackSpnW
+@ stub DsCrackUnquotedMangledRdnA
+@ stub DsCrackUnquotedMangledRdnW
+@ stub DsFreeDomainControllerInfoA
+@ stub DsFreeDomainControllerInfoW
+@ stub DsFreeNameResultA
+@ stub DsFreeNameResultW
+@ stub DsFreePasswordCredentials
+@ stub DsFreeSchemaGuidMapA
+@ stub DsFreeSchemaGuidMapW
+@ stub DsFreeSpnArrayA
+@ stub DsFreeSpnArrayW
+@ stub DsGetDomainControllerInfoA
+@ stub DsGetDomainControllerInfoW
+@ stub DsGetRdnW
+@ stub DsGetSpnA
+@ stub DsGetSpnW
+@ stub DsInheritSecurityIdentityA
+@ stub DsInheritSecurityIdentityW
+@ stub DsIsMangledDnA
+@ stub DsIsMangledDnW
+@ stub DsIsMangledRdnValueA
+@ stub DsIsMangledRdnValueW
+@ stub DsListDomainsInSiteA
+@ stub DsListDomainsInSiteW
+@ stub DsListInfoForServerA
+@ stub DsListInfoForServerW
+@ stub DsListRolesA
+@ stub DsListRolesW
+@ stub DsListServersForDomainInSiteA
+@ stub DsListServersForDomainInSiteW
+@ stub DsListServersInSiteA
+@ stub DsListServersInSiteW
+@ stub DsListSitesA
+@ stub DsListSitesW
+@ stub DsLogEntry
+@ stub DsMakePasswordCredentialsA
+@ stub DsMakePasswordCredentialsW
+@ stub DsMakeSpnA
+@ stdcall DsMakeSpnW(wstr wstr wstr long wstr ptr ptr)
+@ stub DsMapSchemaGuidsA
+@ stub DsMapSchemaGuidsW
+@ stub DsQuoteRdnValueA
+@ stub DsQuoteRdnValueW
+@ stub DsRemoveDsDomainA
+@ stub DsRemoveDsDomainW
+@ stub DsRemoveDsServerA
+@ stub DsRemoveDsServerW
+@ stub DsReplicaAddA
+@ stub DsReplicaAddW
+@ stub DsReplicaConsistencyCheck
+@ stub DsReplicaDelA
+@ stub DsReplicaDelW
+@ stub DsReplicaFreeInfo
+@ stub DsReplicaGetInfo2W
+@ stub DsReplicaGetInfoW
+@ stub DsReplicaModifyA
+@ stub DsReplicaModifyW
+@ stub DsReplicaSyncA
+@ stub DsReplicaSyncAllA
+@ stub DsReplicaSyncAllW
+@ stub DsReplicaSyncW
+@ stub DsReplicaUpdateRefsA
+@ stub DsReplicaUpdateRefsW
+@ stub DsReplicaVerifyObjectsA
+@ stub DsReplicaVerifyObjectsW
+@ stub DsServerRegisterSpnA
+@ stub DsServerRegisterSpnW
+@ stub DsUnBindA
+@ stub DsUnBindW
+@ stub DsUnquoteRdnValueA
+@ stub DsUnquoteRdnValueW
+@ stub DsWriteAccountSpnA
+@ stub DsWriteAccountSpnW
+@ stub DsaopBind
+@ stub DsaopBindWithCred
+@ stub DsaopBindWithSpn
+@ stub DsaopExecuteScript
+@ stub DsaopPrepareScript
+@ stub DsaopUnBind
diff -up cvs/hq/wine/include/Makefile.in wine/include/Makefile.in
--- cvs/hq/wine/include/Makefile.in 2006-05-11 16:12:15.000000000 +0900
+++ wine/include/Makefile.in 2006-05-19 15:56:34.000000000 +0900
@@ -201,6 +201,7 @@ WINDOWS_INCLUDES = \
ntddcdrm.h \
ntddscsi.h \
ntddstor.h \
+ ntdsapi.h \
ntsecapi.h \
ntstatus.h \
objbase.h \
diff -up /dev/null wine/include/ntdsapi.h
--- /dev/null
+++ wine/include/ntdsapi.h 2006-05-19 15:29:08.000000000 +0900
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2006 Dmitry Timoshkov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __WINE_NTDSAPI_H
+#define __WINE_NTDSAPI_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+DWORD WINAPI DsMakeSpnA(LPCSTR, LPCSTR, LPCSTR, USHORT, LPCSTR, DWORD*, LPSTR);
+DWORD WINAPI DsMakeSpnW(LPCWSTR, LPCWSTR, LPCWSTR, USHORT, LPCWSTR, DWORD*, LPWSTR);
+#define DsMakeSpn WINELIB_NAME_AW(DsMakeSpn)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WINE_NTDSAPI_H */
More information about the wine-patches
mailing list