public bool RegisterHook(GvHook hook, SWIGTYPE_p_void user) { bool ret = C4dApiPINVOKE.GvWorld_RegisterHook(swigCPtr, GvHook.getCPtr(hook), SWIGTYPE_p_void.getCPtr(user)); if (C4dApiPINVOKE.SWIGPendingException.Pending) { throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GvHook obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }