int __stdcall ShadowSizeFromObj(int obj)

Get size of hardware shadow object, before you allocate the memory for your HW shadow object.
Parameter
int obj:

Result:
int:
Size of shadow object in bytes. Or -1, if there was error.