protected static unsafe int QueryInterfaceImpl(IntPtr thisObject, IntPtr guid, out IntPtr output) { ComObjectShadow comObjectShadow = CppObjectShadow.ToShadow <ComObjectShadow>(thisObject); if (comObjectShadow != null) { return(comObjectShadow.QueryInterfaceImpl(thisObject, ref *(Guid *)(void *)guid, out output)); } output = IntPtr.Zero; return(Result.NoInterface.Code); }
protected static int ReleaseImpl(IntPtr thisObject) { ComObjectShadow comObjectShadow = CppObjectShadow.ToShadow <ComObjectShadow>(thisObject); if (comObjectShadow == null) { return(0); } else { return(comObjectShadow.ReleaseImpl(thisObject)); } }