Can someone explain this code to me. Its taken from the MailLookup.c
CallAddressApp function.
/* some code */
params.title = MemHandleLock (DmGetResource (strRsc, titleStrID));
params.pasteButtonText = MemHandleLock (DmGetResource (strRsc,
mailLookupAddStrID));
params.formatStringP = MemHandleLock (DmGetResource (strRsc,
mailLookupFormatStrID));
/* some code */
MemPtrUnlock (params.title);
MemPtrUnlock (params.pasteButtonText);
MemPtrUnlock (params.formatStringP);
Why do they lock the handle, but unlock the pointer. Why not call
MemHandleUnlock?
Thanks,
Ronnen