NWDisallowObjectPassword
Prevents use of the specified password by the specified object
#include <nwbindry.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWDisallowObjectPassword (
NWCONN_HANDLE conn,
const nstr8 N_FAR *objName,
nuint16 objType,
const nstr8 N_FAR *disallowedPassword);
uses calwin32
Function NWDisallowObjectPassword
(conn : NWCONN_HANDLE;
const objName : pnstr8;
objType : nuint16;
const disallowedPassword : pnstr8
) : NWCCODE; stdcall;
These are common return values. See Return Values (Return Values for C).
The objName and objType parameters must be specific and cannot contain wildcards.
For NWDisallowObjectPassword to work properly, LOGIN_CONTROL must be set appropriately.
NWDisallowObjectPassword adds an encrypted password to the list of old passwords maintained in the OLD_PASSWORDS property. If the OLD_PASSWORDS property does not exist, NWDisallowObjectPassword will check UNIQUE_PASSWORDS of the restriction flags in the LOGIN_CONTROL property. If the UNIQUE_PASSWORDS is set, the OLD_PASSWORDS property will be created. Otherwise, a BINDERY_FAILURE error code will be returned.
See Object Type.
NWChangeObjectPassword, NWLoginToFileServer (Server Management)