Greetings,
The Datebook example code used to call MemDeref to get the pointer from a previously locked handle (in a different function). From looking at the code that came with the 3.5 sdk, it doesn't use MemDeref anymore. Instead, it just locks the (already locked) handle to get the pointer and then when it is done using the pointer, unlocks the handle twice.
I believe the pointer can also be obtained from the locked handle by using
MemLocalIDToPtr(MemHandleToLocalID(h), 0);
Other than the obvious card number assumption, are there any other disadvantages to using the LocalID functions over locking/unlocking the handle again? Is performance an issue?
Thanks,
- Sudeep
