This is the C++ code
====================
ImageBuff = (uint8*)malloc(ATGetImageBufferSize());
memset (&sEnrollResults, 0, sizeof(tsAT_ENROLL_RESULTS));
sEnrollResults.uiStructureSize = sizeof( tsAT_ENROLL_RESULTS);
Delphi Code
==========
Reallocmem(pImageBuff,ATGetImageBufferSize);
//e.g ATGetImageBufferSize returns 18090 so pImageBuff is sized to 18090.
If I send sizeof(pImageBuff) I get 4. I want to measure the size of the
allocated memory so that I can get 18090. Please assist am stuck!