Ir al contenido


Foto

Ayudenme a entender esta función


  • Por favor identifícate para responder
3 respuestas en este tema

#1 enecumene

enecumene

    Webmaster

  • Administrador
  • 7.419 mensajes
  • LocationRepública Dominicana

Escrito 01 junio 2009 - 07:00

Pues eso tengo una función propia de una librerí­a pero no entiendo como es su uso:

VARIANT_BOOL ReadAllUserID([in] LONG dwMachineNumber)

[Purpose]
Read in all user information to the Memory of PC,Include user No. password, Name,
Card No. etc, excepte the finergerprint template
[Return Value]
Return True for success, otherwise False.


[Example]



vb
  1. Dim userID As Integer
  2. CZKEM1.ReadAllUserID MACHINENUMBER



[Special Consideration]:
After this function performance finish, may transfer function GetAllUserID to obtain the user enrolled No. GetAllUserID ev perform a time, the pointer to aim to user information moves to the next record, when reads the last record, returns to False.


GetAllUserID

[Protocal]
VARIANT_BOOL GetAllUserID([in] LONG dwMachineNumber, [in] LONG*
dwEnrollNumber, [in] LONG* dwEMachineNumber, [in] LONG* dwBackupNumber,
[in] LONG* dwMachinePrivilege, [in] LONG* dwEnable)

[Purpose]
Obtain all user information.Before the function perform,may use ReadAllUserID to
read all user’s information into Memory, the function GetAlluserID perform each time, the user information pointer will move to next record. after read all user information .the function return False.

[Parameter]
dwMachinePrivilege
User privilege;0,Common User;1,Enroller;2,administrator;3 .Supper administator

[Return Value]
Return True for success, otherwise False.

[Example]
This function server as GetAllUserInfo,please refer to GetAllUserInfo illustration

[Spiecal Consideration]
The function can use ReadAllUserID to transfer all user information to Memory, than
repeat reading user information


Como ven, la función GetAllUserID la entiendo perfectamente su uso serí­a de esta manera:



delphi
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var Maquina, UserID, EMaquina, BUNumber, Privilegue, Enable: Integer;
  3. begin
  4.     zkLector.GetAllUserID(Maquina,UserID, EMaquina, BUNumber, Privilegue, Enable);
  5.     EDit1.Text := IntoStr(UserID);
  6.     Edit2.Text := IntoStr(EMaquina);
  7.     //...Así­ seguimos
  8. end;



Pero no entiendo cómo se usarí­a la primera función que mencioné, ¿alguien me podrí­a explicar? :$.

Saludos.
  • 0

#2 enecumene

enecumene

    Webmaster

  • Administrador
  • 7.419 mensajes
  • LocationRepública Dominicana

Escrito 02 junio 2009 - 10:27

¿Nobody here?  *-)  :(
  • 0

#3 Héctor Randolph

Héctor Randolph

    501st Legion

  • Moderadores
  • PipPipPip
  • 664 mensajes
  • LocationMéxico

Escrito 02 junio 2009 - 10:39

Hola Fernando

Yo lo que he entendido es que antes de ejecutar la función GetAllUserID se debe hacer un llamado a la función ReadAllUserID para cargar los datos en memoria.

Es decir, de alguna manera la función ReadAllUserID deja los datos de los usuarios disponibles en un área especí­fica de la memoria para que posteriormente la función GetAllUserID los vaya tomando uno a uno.

Eso creo  8-)

Saludos
  • 0

#4 enecumene

enecumene

    Webmaster

  • Administrador
  • 7.419 mensajes
  • LocationRepública Dominicana

Escrito 02 junio 2009 - 12:44

Ciertamente amigo, ahora lo entiendo, luego de entenderlo resulta que esa no es la función que busco :p, de todos modos muchas gracias Héctor :D.

Saludos.
  • 0




IP.Board spam blocked by CleanTalk.