Alistair Leslie-Hughes : ntdsapi: Add stubs DsServerRegisterSpnA, DsServerRegisterSpnW.
Alexandre Julliard
julliard at winehq.org
Mon Sep 5 13:26:22 CDT 2011
Module: wine
Branch: master
Commit: 5b49e228aebe8d373a9fe7f35c04454a08b4a53b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b49e228aebe8d373a9fe7f35c04454a08b4a53b
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Aug 31 15:34:07 2011 +1000
ntdsapi: Add stubs DsServerRegisterSpnA, DsServerRegisterSpnW.
---
dlls/ntdsapi/ntdsapi.c | 20 ++++++++++++++++++++
dlls/ntdsapi/ntdsapi.spec | 4 ++--
include/ntdsapi.h | 11 +++++++++++
3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdsapi/ntdsapi.c b/dlls/ntdsapi/ntdsapi.c
index 76565fb..1ffbd9d 100644
--- a/dlls/ntdsapi/ntdsapi.c
+++ b/dlls/ntdsapi/ntdsapi.c
@@ -165,3 +165,23 @@ DWORD WINAPI DsGetSpnA(DS_SPN_NAME_TYPE ServType, LPCSTR Servlass, LPCSTR ServNa
return ERROR_CALL_NOT_IMPLEMENTED;
}
+
+/***********************************************************************
+ * DsServerRegisterSpnA (NTDSAPI.@)
+ */
+DWORD WINAPI DsServerRegisterSpnA(DS_SPN_WRITE_OP operation, LPCSTR ServiceClass, LPCSTR UserObjectDN)
+{
+ FIXME("(%d,%s,%s): stub!\n", operation,
+ debugstr_a(ServiceClass), debugstr_a(UserObjectDN));
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+/***********************************************************************
+ * DsServerRegisterSpnW (NTDSAPI.@)
+ */
+DWORD WINAPI DsServerRegisterSpnW(DS_SPN_WRITE_OP operation, LPCWSTR ServiceClass, LPCWSTR UserObjectDN)
+{
+ FIXME("(%d,%s,%s): stub!\n", operation,
+ debugstr_w(ServiceClass), debugstr_w(UserObjectDN));
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
diff --git a/dlls/ntdsapi/ntdsapi.spec b/dlls/ntdsapi/ntdsapi.spec
index 8a4758a..f4ae6f8 100644
--- a/dlls/ntdsapi/ntdsapi.spec
+++ b/dlls/ntdsapi/ntdsapi.spec
@@ -80,8 +80,8 @@
@ stub DsReplicaUpdateRefsW
@ stub DsReplicaVerifyObjectsA
@ stub DsReplicaVerifyObjectsW
-@ stub DsServerRegisterSpnA
-@ stub DsServerRegisterSpnW
+@ stdcall DsServerRegisterSpnA(long str str)
+@ stdcall DsServerRegisterSpnW(long wstr wstr)
@ stub DsUnBindA
@ stub DsUnBindW
@ stub DsUnquoteRdnValueA
diff --git a/include/ntdsapi.h b/include/ntdsapi.h
index 9fecdab..6d2902f 100644
--- a/include/ntdsapi.h
+++ b/include/ntdsapi.h
@@ -39,6 +39,17 @@ typedef enum
DS_SPN_SERVICE = 5
} DS_SPN_NAME_TYPE;
+typedef enum
+{
+ DS_SPN_ADD_SPN_OP = 0,
+ DS_SPN_REPLACE_SPN_OP = 1,
+ DS_SPN_DELETE_SPN_OP = 2
+} DS_SPN_WRITE_OP;
+
+DWORD WINAPI DsServerRegisterSpnA(DS_SPN_WRITE_OP operation, LPCSTR ServiceClass, LPCSTR UserObjectDN);
+DWORD WINAPI DsServerRegisterSpnW(DS_SPN_WRITE_OP operation, LPCWSTR ServiceClass, LPCWSTR UserObjectDN);
+#define DsServerRegisterSpn WINELIB_NAME_AW(DsServerRegisterSpn)
+
#ifdef __cplusplus
}
#endif
More information about the wine-cvs
mailing list