示例#1
0
            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);
            }
示例#2
0
            protected static int ReleaseImpl(IntPtr thisObject)
            {
                ComObjectShadow comObjectShadow = CppObjectShadow.ToShadow <ComObjectShadow>(thisObject);

                if (comObjectShadow == null)
                {
                    return(0);
                }
                else
                {
                    return(comObjectShadow.ReleaseImpl(thisObject));
                }
            }