[PATCH] Add stub for DsGetSpnA
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Jul 12 07:49:52 CDT 2011
---
dlls/ntdsapi/ntdsapi.c | 15 +++++++++++++++
dlls/ntdsapi/ntdsapi.spec | 2 +-
include/ntdsapi.h | 10 ++++++++++
3 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdsapi/ntdsapi.c b/dlls/ntdsapi/ntdsapi.c
index 01acda0..d87b337 100644
--- a/dlls/ntdsapi/ntdsapi.c
+++ b/dlls/ntdsapi/ntdsapi.c
@@ -150,3 +150,18 @@ DWORD WINAPI DsMakeSpnA(LPCSTR svc_class, LPCSTR svc_name,
return ERROR_CALL_NOT_IMPLEMENTED;
}
+
+/***********************************************************************
+ * DsMakeSpnA (NTDSAPI.@)
+ */
+DWORD WINAPI DsGetSpnA(DS_SPN_NAME_TYPE ServType, LPCSTR Servlass, LPCSTR ServName,
+ USHORT InstPort, USHORT nInstanceNames,
+ LPCSTR *pInstanceNames, const USHORT *pInstancePorts,
+ DWORD *pSpn, LPSTR **pszSpn)
+{
+ FIXME("(%d,%s,%s,%d,%d,%p,%p,%p,%p): stub!\n", ServType,
+ debugstr_a(Servlass), debugstr_a(ServName), InstPort,
+ nInstanceNames, pInstanceNames, pInstancePorts, pSpn, pszSpn);
+
+ return ERROR_DS_BAD_NAME_SYNTAX;
+}
diff --git a/dlls/ntdsapi/ntdsapi.spec b/dlls/ntdsapi/ntdsapi.spec
index a9607ca..64f91e8 100644
--- a/dlls/ntdsapi/ntdsapi.spec
+++ b/dlls/ntdsapi/ntdsapi.spec
@@ -29,7 +29,7 @@
@ stub DsGetDomainControllerInfoA
@ stub DsGetDomainControllerInfoW
@ stub DsGetRdnW
-@ stub DsGetSpnA
+@ stdcall DsGetSpnA(long str str long long str ptr ptr ptr ptr)
@ stub DsGetSpnW
@ stub DsInheritSecurityIdentityA
@ stub DsInheritSecurityIdentityW
diff --git a/include/ntdsapi.h b/include/ntdsapi.h
index 23f1493..9fecdab 100644
--- a/include/ntdsapi.h
+++ b/include/ntdsapi.h
@@ -29,6 +29,16 @@ 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)
+typedef enum
+{
+ DS_SPN_DNS_HOST = 0,
+ DS_SPN_DN_HOST = 1,
+ DS_SPN_NB_HOST = 2,
+ DS_SPN_DOMAIN = 3,
+ DS_SPN_NB_DOMAIN = 4,
+ DS_SPN_SERVICE = 5
+} DS_SPN_NAME_TYPE;
+
#ifdef __cplusplus
}
#endif
--
1.7.4.1
--------------040603000109030601000800--
More information about the wine-patches
mailing list