This function disconnects event handlers from an object created with the CreateObjectWithEvents function.
DisconnectEvents(objectinstance as object)
None.