View Single Post
  #3  
Old 01-11-2005, 04:11
CrackZ CrackZ is offline
VIP
 
Join Date: Sep 2004
Posts: 51
Rept. Given: 2
Rept. Rcvd 66 Times in 8 Posts
Thanks Given: 0
Thanks Rcvd at 21 Times in 9 Posts
CrackZ Reputation: 67
Hiya suddenLy,

The returns depend on the version of HASP API, but it sounds like you've got a slightly older ver. So/

HaspStatus():

Par3=ECX port address, 0x66/0x67 (102, 103) for LPT devices & 201-255 for USB devices. Never saw an app that was really concerned to check them though ;-).

ReadBlock():

Returns :
Par1 = EAX (offset of read, value of EDI before hasp())
Par2 = EBX (number of words read)
Par3 = ECX (status of operation, should be 0)
Par4 = EDX (pointer to returned data, value of EAX before hasp())

In several HASP API versions these returns aren't necessarily correct, all you must do for ReadBlock() is clear the status and return memory data.

Regards

CrackZ.
Reply With Quote