Rob Shearman : netapi32: Add a stub for NetUserChangePassword.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 23 05:28:12 CST 2007


Module: wine
Branch: master
Commit: 3d02585449bfa2fda1adb161f8bc63eace2239ce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3d02585449bfa2fda1adb161f8bc63eace2239ce

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Feb 22 14:34:10 2007 +0000

netapi32: Add a stub for NetUserChangePassword.

---

 dlls/netapi32/access.c      |   22 ++++++++++++++++++++++
 dlls/netapi32/netapi32.spec |    2 +-
 2 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c
index 7861140..94d8b23 100644
--- a/dlls/netapi32/access.c
+++ b/dlls/netapi32/access.c
@@ -701,3 +701,25 @@ NET_API_STATUS WINAPI NetUserModalsGet(
 
     return NERR_Success;
 }
+
+/******************************************************************************
+ *                NetUserChangePassword  (NETAPI32.@)
+ * PARAMS
+ *  domainname  [I] Optional. Domain on which the user resides or the logon
+ *                  domain of the current user if NULL.
+ *  username    [I] Optional. Username to change the password for or the name
+ *                  of the current user if NULL.
+ *  oldpassword [I] The user's current password.
+ *  newpassword [I] The password that the user will be changed to using.
+ *
+ * RETURNS
+ *  Success: NERR_Success.
+ *  Failure: NERR_* failure code or win error code.
+ *
+ */
+NET_API_STATUS WINAPI NetUserChangePassword(LPCWSTR domainname, LPCWSTR username,
+    LPCWSTR oldpassword, LPCWSTR newpassword)
+{
+    FIXME("(%s, %s, ..., ...)\n", debugstr_w(domainname), debugstr_w(username));
+    return NERR_InternalError;
+}
diff --git a/dlls/netapi32/netapi32.spec b/dlls/netapi32/netapi32.spec
index 65bdba4..b0d6ebf 100644
--- a/dlls/netapi32/netapi32.spec
+++ b/dlls/netapi32/netapi32.spec
@@ -202,7 +202,7 @@
 @ stub NetUseEnum
 @ stub NetUseGetInfo
 @ stdcall NetUserAdd(wstr long ptr ptr)
-@ stub NetUserChangePassword
+@ stdcall NetUserChangePassword(wstr wstr wstr wstr)
 @ stdcall NetUserDel(wstr wstr)
 @ stdcall NetUserEnum(wstr long long ptr long ptr ptr ptr)
 @ stub NetUserGetGroups




More information about the wine-cvs mailing list