int IShellPropSheetExt.AddPages(IntPtr lpfnAddPage, IntPtr x130fbcecf32fe781)
        {
            try
            {
                CreatePropertySheetPage();

                if (hPropertySheetPage.Equals(0))
                {
                    _extensionReferences.Remove(this);
                    return(1);
                }

                var func = CFunctionPointer.Create(lpfnAddPage, typeof(bool), typeof(IntPtr), typeof(IntPtr));
                if ((bool)func.Invoke(new object[] { hPropertySheetPage, x130fbcecf32fe781 }))
                {
                    return(0);
                }


                _extensionReferences.Remove(this);
                Comctl32.DestroyPropertySheetPage(hPropertySheetPage);
                return(1);
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.ToString());
                return(1);
            }
        }
示例#2
0
 public virtual void SortUsingFunction(CFunctionPointer <Func <AnyObject, AnyObject, UnsafeMutablePointer, int> > compare, UnsafeMutablePointer context)
 {
 }
示例#3
0
 public virtual AnyObject[] SortedArrayUsingFunction(CFunctionPointer <Func <AnyObject, AnyObject, UnsafeMutablePointer, int> > comparator, UnsafeMutablePointer context, [Optional] NSData hint)
 {
     return(default(AnyObject[]));
 }