Add a stub implementation of ntdsapi.dll.
This commit is contained in:
parent
b1cbecbbc6
commit
5fd4d3410d
9 changed files with 223 additions and 1 deletions
3
configure
vendored
3
configure
vendored
File diff suppressed because one or more lines are too long
|
@ -1641,6 +1641,7 @@ dlls/netapi32/tests/Makefile
|
||||||
dlls/newdev/Makefile
|
dlls/newdev/Makefile
|
||||||
dlls/ntdll/Makefile
|
dlls/ntdll/Makefile
|
||||||
dlls/ntdll/tests/Makefile
|
dlls/ntdll/tests/Makefile
|
||||||
|
dlls/ntdsapi/Makefile
|
||||||
dlls/objsel/Makefile
|
dlls/objsel/Makefile
|
||||||
dlls/odbc32/Makefile
|
dlls/odbc32/Makefile
|
||||||
dlls/odbccp32/Makefile
|
dlls/odbccp32/Makefile
|
||||||
|
|
|
@ -107,6 +107,7 @@ BASEDIRS = \
|
||||||
netapi32 \
|
netapi32 \
|
||||||
newdev \
|
newdev \
|
||||||
ntdll \
|
ntdll \
|
||||||
|
ntdsapi \
|
||||||
objsel \
|
objsel \
|
||||||
odbc32 \
|
odbc32 \
|
||||||
odbccp32 \
|
odbccp32 \
|
||||||
|
@ -507,6 +508,7 @@ IMPORT_LIBS = \
|
||||||
netapi32/libnetapi32.$(IMPLIBEXT) \
|
netapi32/libnetapi32.$(IMPLIBEXT) \
|
||||||
newdev/libnewdev.$(IMPLIBEXT) \
|
newdev/libnewdev.$(IMPLIBEXT) \
|
||||||
ntdll/libntdll.$(IMPLIBEXT) \
|
ntdll/libntdll.$(IMPLIBEXT) \
|
||||||
|
ntdsapi/libntdsapi.$(IMPLIBEXT) \
|
||||||
odbc32/libodbc32.$(IMPLIBEXT) \
|
odbc32/libodbc32.$(IMPLIBEXT) \
|
||||||
odbccp32/libodbccp32.$(IMPLIBEXT) \
|
odbccp32/libodbccp32.$(IMPLIBEXT) \
|
||||||
ole32/libole32.$(IMPLIBEXT) \
|
ole32/libole32.$(IMPLIBEXT) \
|
||||||
|
@ -747,6 +749,9 @@ newdev/libnewdev.$(IMPLIBEXT): newdev/newdev.spec $(WINEBUILD)
|
||||||
ntdll/libntdll.$(IMPLIBEXT): ntdll/ntdll.spec $(WINEBUILD)
|
ntdll/libntdll.$(IMPLIBEXT): ntdll/ntdll.spec $(WINEBUILD)
|
||||||
@cd ntdll && $(MAKE) libntdll.$(IMPLIBEXT)
|
@cd ntdll && $(MAKE) libntdll.$(IMPLIBEXT)
|
||||||
|
|
||||||
|
ntdsapi/libntdsapi.$(IMPLIBEXT): ntdsapi/ntdsapi.spec $(WINEBUILD)
|
||||||
|
@cd ntdsapi && $(MAKE) libntdsapi.$(IMPLIBEXT)
|
||||||
|
|
||||||
odbc32/libodbc32.$(IMPLIBEXT): odbc32/odbc32.spec $(WINEBUILD)
|
odbc32/libodbc32.$(IMPLIBEXT): odbc32/odbc32.spec $(WINEBUILD)
|
||||||
@cd odbc32 && $(MAKE) libodbc32.$(IMPLIBEXT)
|
@cd odbc32 && $(MAKE) libodbc32.$(IMPLIBEXT)
|
||||||
|
|
||||||
|
|
2
dlls/ntdsapi/.gitignore
vendored
Normal file
2
dlls/ntdsapi/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Makefile
|
||||||
|
libntdsapi.def
|
14
dlls/ntdsapi/Makefile.in
Normal file
14
dlls/ntdsapi/Makefile.in
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
TOPSRCDIR = @top_srcdir@
|
||||||
|
TOPOBJDIR = ../..
|
||||||
|
SRCDIR = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
MODULE = ntdsapi.dll
|
||||||
|
IMPORTLIB = libntdsapi.$(IMPLIBEXT)
|
||||||
|
IMPORTS = kernel32
|
||||||
|
|
||||||
|
C_SRCS = \
|
||||||
|
ntdsapi.c
|
||||||
|
|
||||||
|
@MAKE_DLL_RULES@
|
||||||
|
|
||||||
|
### Dependencies:
|
68
dlls/ntdsapi/ntdsapi.c
Normal file
68
dlls/ntdsapi/ntdsapi.c
Normal file
|
@ -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;
|
||||||
|
}
|
96
dlls/ntdsapi/ntdsapi.spec
Normal file
96
dlls/ntdsapi/ntdsapi.spec
Normal file
|
@ -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
|
|
@ -201,6 +201,7 @@ WINDOWS_INCLUDES = \
|
||||||
ntddcdrm.h \
|
ntddcdrm.h \
|
||||||
ntddscsi.h \
|
ntddscsi.h \
|
||||||
ntddstor.h \
|
ntddstor.h \
|
||||||
|
ntdsapi.h \
|
||||||
ntsecapi.h \
|
ntsecapi.h \
|
||||||
ntstatus.h \
|
ntstatus.h \
|
||||||
objbase.h \
|
objbase.h \
|
||||||
|
|
34
include/ntdsapi.h
Normal file
34
include/ntdsapi.h
Normal file
|
@ -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 */
|
Loading…
Add table
Reference in a new issue