11 instantiations of SafeArrayScope
System.Windows.Forms (5)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
642UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId => (VARIANT)new SafeArrayScope<int>(RuntimeId), 945*pRetVal = new SafeArrayScope<int>(RuntimeId); 1046*pRetVal = new SafeArrayScope<int>(RuntimeId); 3029*pRetVal = result is null ? SAFEARRAY.CreateEmpty(VARENUM.VT_I4) : new SafeArrayScope<int>(result);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
415using SafeArrayScope<object> scope = new(1);
System.Windows.Forms.Primitives (6)
System\Windows\Forms\Automation\UiaTextProvider.cs (3)
85return new(SAFEARRAY.CreateEmpty(VARENUM.VT_R8)); 88SafeArrayScope<double> result = new((uint)(rectArray.Count * 4)); 109SafeArrayScope<double> result = new(4);
System\Windows\Forms\Automation\UiaTextRange.cs (1)
345SafeArrayScope<double> ownerBounds = new(result.data.parray);
Windows\Win32\System\Com\ComSafeArrayScope.cs (2)
30_value = new(value); 41_value = new(PInvokeCore.SafeArrayCreate(VARENUM.VT_UNKNOWN, 1, &saBound));
12 references to SafeArrayScope
System.Private.Windows.Core (5)
Windows\Win32\System\Com\SafeArrayScope.cs (5)
249public static explicit operator VARIANT(in SafeArrayScope<T> scope) => new() { vt = VARENUM.VT_ARRAY | scope.Value->VarType, data = new() { parray = (SAFEARRAY*)scope._value } }; 251public static implicit operator SAFEARRAY*(in SafeArrayScope<T> scope) => (SAFEARRAY*)scope._value; 253public static implicit operator nint(in SafeArrayScope<T> scope) => scope._value; 256public static implicit operator SAFEARRAY**(in SafeArrayScope<T> scope) => (SAFEARRAY**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 259public static implicit operator void**(in SafeArrayScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
System.Windows.Forms (1)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
415using SafeArrayScope<object> scope = new(1);
System.Windows.Forms.Primitives (6)
System\Windows\Forms\Automation\UiaTextProvider.cs (4)
81public static SafeArrayScope<double> RectListToDoubleArray(List<Rectangle> rectArray) 88SafeArrayScope<double> result = new((uint)(rectArray.Count * 4)); 107internal static SafeArrayScope<double> BoundingRectangleAsArray(Rectangle bounds) 109SafeArrayScope<double> result = new(4);
System\Windows\Forms\Automation\UiaTextRange.cs (1)
345SafeArrayScope<double> ownerBounds = new(result.data.parray);
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
21private readonly SafeArrayScope<nint> _value;