Home > database >  Pb call attendance machine function
Pb call attendance machine function

Time:09-29

1) registered data

GetEnrollData

Function: get a registration data from terminal,

BOOL GetEnrollData (
Long dwMachineNumber,
Long dwEnrollNumber,
Long dwEMachineNumber,
Long dwBackupNumber,
The long FAR * dwMachinePrivilege,
The long FAR * dwEnrollData,
The long FAR * dwPassWord
);

[parameter]

DwMachineNumber
Said to read data terminal number,

DwEnrollNumber
Said to get the registration data registration number,

DwEMachineNumber
Registration number for registration data,

DwBackupNumber
Said to get registration data Backup registration Number (Backup Number),
Backup registration number value stated below:

Value description

0 0 fingerprint data
The fingerprint data 1 1
2. 2 the fingerprint data
3 3 fingerprint data
4 4 fingerprint data
5 5 fingerprint data
6 6 fingerprint data
7 7 fingerprint data
8 8 fingerprint data
9, 9 fingerprint data
10 password data

DwMachinePrivilege
Said receive for registration data machine permission values to variables of type long pointer,




Direct description

0 average user
1 managers (registration, the machine Settings) [1]
2
DwEnrollData
Receive to obtain registration data value of the pointer to the buffer type long,

DwPassWord
Said to receive the registration data to obtain the password value refers to the long pointer variable,


[return]

If valid data is read from the terminal, it is TRUE,
If not specified in the terminal registration data or communication errors occur, it is FALSE,
When the return value is FALSE, the parameter value is meaningless,

[note]

This function is read from the terminal registration data of fingerprints and password specified data,
Call this function when dwBackupNumber value between 0 to 9, is read from the terminal to specify the function of fingerprint registration data, then dwPassWord specify a variable's value has no meaning,
If, when this function is called, dwBackupNumber value is 10, then the function is read from the terminal specified password registration data, then dwEnrollData to specify a variable's value has no meaning,

Example:
Boolean vRet
Long vEnrollNumber
Long vEMachineNumber
Long vBackupNumber
Long gMachinePrivilege
Long gEnrollData
Long gPassWord, mMachineNumber


St_2. Text=""
MMachineNumber=1

SB100PC1. Object. SetIPAddress (lpszipaddress. Text, integer (txtportno. Text), integer (txtpassword. Text))
SB100PC1. Object. OpenCommPort (1)
VRet=SB100PC1. Object. Enabledevice (mMachineNumber, false)
If vret=false then
Messagebox (" prompt ", "terminal are not permitted to enter the attendance status failed!" )
Return
End the if
VEnrollNumber=00003
VEMachineNumber=001
VBackupNumber=0

VRet=SB100PC1. Object. GetEnrollData (mMachineNumber, & amp;
VEnrollNumber, & amp;
VEMachineNumber, & amp;
VBackupNumber, & amp;
Ref gMachinePrivilege, & amp;
Ref gEnrollData, & amp;
Ref gPassWord)

Messagebox (' ', gEnrollData)

VRet=SB100PC1. Object. Enabledevice (mMachineNumber, true)


SB100PC1. Object. EnableDevice (1, true)
SB100PC1. Object. CloseCommPort

Why gEnrollData returns a value of 0, ask ace to help me, thank you!

CodePudding user response:

Everyone I am a newcomer, no points, so you don't, sorry!!!

CodePudding user response:

You have just sent 50 stick!

CodePudding user response:

No boundary points don't blame

CodePudding user response:

Add cent, hurry under help me to solve, thank you!

CodePudding user response:

Check the value of the vRet

CodePudding user response:

The value of vRet is true

CodePudding user response:

Learn!!!!!!!!!!

CodePudding user response:

Add cent, hurry under help me to solve, thank you!
  • Related