Description
Creates or modifies a Bone user profile.
Callback
BONE_CALLBACK_MODIFYUSERPROFILE
Notes
The function parameter is the BONEHANDLE, the username of the account to
create/modify, and the desired password, email, and user type of the
account. Non-Bone administrators may only modify the password for their
own account.
Example
bone_setcallback(BONE_CALLBACK_MODIFYUSERPROFILE, callback_moduserprof);
if
(bone_modifyuserprofile(bhnd, "BoneUser", "PassPass", "Bonester@imatowns.com",
0, 0))
printf("Unable to modify profile (reason %d).\n",
bone_getlasterror());
void callback_moduserprof (BONEHANDLE bhnd, int errorcode, const char
*username)
{
if (errorcode)
printf("Error modifying profile
(reason %d).\n", errorcode);
else
printf("Profile of %s
modified.\n", username);
}