NWChangeObjectPassword
Changes the specified password of an object to a new password
#include <nwbindry.h> or #include <nwcalls.h> NWCCODE N_API NWChangeObjectPassword ( NWCONN_HANDLE conn, const nstr8 N_FAR *objName, nuint16 objType, const nstr8 N_FAR *oldPassword, const nstr8 N_FAR *newPassword);
uses calwin32 Function NWChangeObjectPassword (conn : NWCONN_HANDLE; const objName : pnstr8; objType : nuint16; const oldPassword : pnstr8; const newPassword : pnstr8 ) : NWCCODE; stdcall;
These are common return values. See Return Values (Return Values for C).
NWChangeObjectPassword does not require the old password to be known.
For NWChangeObjectPassword to work properly, LOGIN_CONTROL must be set appropriately.
NWChangeObjectPassword attempts to change the password by using encryption. If the server does not support encryption, NWChangeObjectPassword attempts to change the password without using encryption.
Clients can change their own password. To change the password for other bindery objects, the client must be a SUPERVISOR or SUPERVISOR equivalent.
See Object Type.