Creates a strong pointer to an object.
HObject** __cdecl GCNewHandle(HObject *phobj);
Returns an address to the object pointer.
*phobj | The object that is to be referenced. |
Using this function is similar to placing an object in a GCFrame; however, strong pointers can be stored statically across calls. A strong pointer prevents the object from being collected as garbage, whereas a weak pointer only tracks the object's movement.