Category : C Source Code
Archive   : TIFTOOL.ZIP
Filename : GETITLOC.C
*/
#include "Aldtypes.h"
#include "ALDMEM.H"
#include "imtypes.h"
#include "immem.h"
#include "ImErr.h"
RC GetItLockIt (dwbytes, ph, plp)
DWORD dwbytes;
HANDLE *ph;
BYTE FAR **plp;
{
RC err = SUCCESS;
if (!(*ph = MMAlloc (dwbytes))) {
DBMSG(("GetItLockIt: MMAlloc fail\n"));
err = IM_MEM_FULL;
goto cu0;
}
if (!(*plp = (BYTE FAR *) MMLock (*ph))) {
DBMSG(("GetItLockIt: MMLock fail\n"));
MMFree (*ph);
*ph = HNULL;
err = IM_MEM_FAIL;
goto cu0;
}
cu0: return err;
}
void UnlockItFreeIt (h)
HANDLE h;
{
MMUnlock (h);
MMFree (h);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/