Commit 5fd4d341 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Add a stub implementation of ntdsapi.dll.

parent b1cbecbb
......@@ -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
......
......@@ -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/newdev.spec $(WINEBUILD)
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)
......
Makefile
libntdsapi.def
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = ntdsapi.dll
IMPORTLIB = libntdsapi.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = \
ntdsapi.c
@MAKE_DLL_RULES@
### Dependencies:
/*
* 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;
}
@ 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 \
ntddscsi.h \
ntddstor.h \
ntdsapi.h \
ntsecapi.h \
ntstatus.h \
objbase.h \
......
/*
* 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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment