internal InternalAccessibleObject(AccessibleObject accessibleImplemention) { this.publicIAccessible = accessibleImplemention; this.publicIEnumVariant = accessibleImplemention; this.publicIOleWindow = accessibleImplemention; this.publicIReflect = accessibleImplemention; }
protected void UseStdAccessibleObjects(IntPtr handle, int objid) { Guid refiid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object pAcc = null; System.Windows.Forms.UnsafeNativeMethods.CreateStdAccessibleObject(new HandleRef(this, handle), objid, ref refiid, ref pAcc); Guid guid2 = new Guid("{00020404-0000-0000-C000-000000000046}"); object obj3 = null; System.Windows.Forms.UnsafeNativeMethods.CreateStdAccessibleObject(new HandleRef(this, handle), objid, ref guid2, ref obj3); if ((pAcc != null) || (obj3 != null)) { this.systemIAccessible = (IAccessible) pAcc; this.systemIEnumVariant = (System.Windows.Forms.UnsafeNativeMethods.IEnumVariant) obj3; this.systemIOleWindow = pAcc as System.Windows.Forms.UnsafeNativeMethods.IOleWindow; } }