Garbage-collection safe method for updating the contents of a handle.
void __cdecl GCSetObjectReferenceForHandle(HObject **handle, HObject *phobj);
**handle | The result of calling GCGetPtr for a weak pointer or GCNewHandle for a strong handle. |
*phobj | The new object pointer. |
If handles are not updated using a garbage-collection safe method, the Microsoft VM will fault during the next garbage collection.