int MGOupduwnetid (Uwnetid *uwn)
The MGOupduwnetid() function updates an existing uwnetid record. Information is passed through uwn. The required fields are:
uwn.uwnetid is the uwnetid name. uwn.new_uwnetid is the new uwnetid name, if you wish to change it. uwn.uid is the high uid value. Specify a positive value, or 0 to have one chosen at random. The same applies for a low uid (uwn.luid). uwn.account is the account name. It typically is set to the encrypted employee number, student number, or some other unique value. uwn.disenfran is a boolean indicating whether or not the uwnetid is disenfranchised. uwn.comment is a comment field. It can be used for any purpose (such as why this uwnetid was disenfranchised). uwn.status_code is the uwnetid status reference code. You can only change the new_uwnetid, uid, luid, account, disenfran, comment, and status_code fields. Specifying the new_uwnetid field effectively changes the uwnetid field.
Returns the number of records updated upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
wmango
MGOdeluwnetid(), MGOinsuwnetid(), MGOselruwnstatus(), MGOseluwnetid(), MGOzero()