
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
DelAccount
Description:
This function is to delete a user account.
Include:
DAPAPI.H
Usage: ushort
DelAccount(char
*name);
Input Parameters:
name
:
a user name string
Return Value:
1
:
delete successful
other
:
error, the user name not exist
Example:
…
ret=DelAccount( name);
if (ret==0) {
//error
}
else {
//ok
}
Remarks:
VerifyAccount
Description:
This function is to verify a user name and password.
Include:
DAPAPI.H
Usage:
ushort VerifyAccount(char *name_pwd);
Input Parameters:
name_pwd
:
a string including user name and password
delimited with blank.
Return Value:
0
:
error, ether user name not exist or password not correct
1
:
verify ok
Example:
char namepwd[80], password[20];
…
sprintf(namepwd,"%s %s","admin",password);
ret=VerifyAccount(namepwd);
if (ret==0) {
//error, not correct
}
else {
//verify ok
}
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.