Description
Creates a Bone user.
Callback
BONE_CALLBACK_CREATEUSER
Notes
The function parameters are the BONEHANDLE, Bone username, and e-mail
address. The BONEHANDLE is destroyed after the function's callback is
called. If successful, your Bone password will be e-mailed to the address
you provided. You must call this function with a BONEHANDLE which is not
logged in.
WARNING: Use of bone_createuser() is carefully monitored. Using someone else's e-mail address or creating a large number of accounts is strictly prohibited. If either of these occurs, the user will be banned from ever using Bone again and his or her ISP will be contacted. Please notify the users of your application of this.
Example
bone_setcallback(BONE_CALLBACK_CREATEUSER, callback_usercreate);
BONEHANDLE bnd;
bnd = bone_create();
if (!bnd)
{
printf("Unable to create BONEHANDLE.\n");
exit(1);
}
else
{
if (bone_createuser(bnd,"boneuser","bonester@imatowns.com"))
printf("Unable to create user (reason %d).\n",bone_getlasterror());
}
void callback_usercreate(BONEHANDLE bnd, int errorcode)
{
if (errorcode)
{
printf("Unable to create Bone
user (reason: %d).",errorcode);
}
}