9 instantiations of UIntPtr
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Windows\WindowsContainerSnapshotProviderTests.cs (2)
66_limitInfo.JobMemoryLimit = new UIntPtr(2000); 168_limitInfo.JobMemoryLimit = new UIntPtr(0);
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
2193UIntPtr hWndUIntPtr = new UIntPtr(hWnd.ToPointer());
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassWithIdRecord.cs (1)
68MemberPrimitiveTypedRecord<UIntPtr> => Create(new UIntPtr(reader.ReadUInt64())),
System\Formats\Nrbf\SystemClassWithMembersAndTypesRecord.cs (1)
69(PrimitiveType.UInt64, "System.UIntPtr", "value") => Create(new UIntPtr(reader.ReadUInt64())),
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
236UIntPtr numBytes = new UIntPtr(segmentSize);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
42SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE));
MS\Internal\AutomationProxies\Misc.cs (2)
578memAddr = VirtualAlloc(IntPtr.Zero, new UIntPtr(cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE); 581VirtualAlloc(new IntPtr((byte *)memAddr.ToPointer() + cbSize - pageSize), new UIntPtr(pageSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_NOACCESS);
239 references to UIntPtr
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (6)
ProcessTracker.cs (6)
95public UIntPtr MinimumWorkingSetSize; 96public UIntPtr MaximumWorkingSetSize; 125public UIntPtr ProcessMemoryLimit; 126public UIntPtr JobMemoryLimit; 127public UIntPtr PeakProcessMemoryUsed; 128public UIntPtr PeakJobMemoryUsed;
Microsoft.Build.Framework (7)
ArraySortHelper.cs (4)
613if (typeof(T) == typeof(UIntPtr)) 647if (typeof(T) == typeof(UIntPtr)) 1170if (typeof(TKey) == typeof(UIntPtr)) 1204if (typeof(TKey) == typeof(UIntPtr))
NativeMethods.cs (3)
356public UIntPtr AffinityMask; 358public UIntPtr UniqueProcessId; 359public UIntPtr InheritedFromUniqueProcessId;
Microsoft.CodeAnalysis (8)
CodeGen\MetadataConstant.cs (1)
34Debug.Assert(value == null || value is string || value is DateTime || value is decimal || value.GetType().GetTypeInfo().IsEnum || (value.GetType().GetTypeInfo().IsPrimitive && !(value is IntPtr) && !(value is UIntPtr)));
SpecialType.cs (1)
136/// Indicates that the type is <see cref="UIntPtr"/>.
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Symbols\INamedTypeSymbol.cs (1)
195/// either <see cref="System.IntPtr"/> or <see cref="System.UIntPtr"/>.
Symbols\TypedConstantValue.cs (1)
25Debug.Assert(value == null || value is string || value.GetType().GetTypeInfo().IsEnum || (value.GetType().GetTypeInfo().IsPrimitive && !(value is System.IntPtr) && !(value is System.UIntPtr)) || value is ITypeSymbol);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.Collections.Package (4)
Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.CSharp (1)
Symbols\NamedTypeSymbol.cs (1)
1700/// either <see cref="System.IntPtr"/> or <see cref="System.UIntPtr"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
509/// Returns whether or not <see cref="IntPtr"/> and <see cref="UIntPtr"/> are exactly identical to <see
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
509/// Returns whether or not <see cref="IntPtr"/> and <see cref="UIntPtr"/> are exactly identical to <see
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
136/// Indicates that the type is <see cref="UIntPtr"/>.
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (3)
140if (UIntPtr.Size == 8) 142var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt64(); 147var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt32();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (3)
140if (UIntPtr.Size == 8) 142var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt64(); 147var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt32();
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
615if (typeof(T) == typeof(UIntPtr)) 649if (typeof(T) == typeof(UIntPtr)) 1166if (typeof(TKey) == typeof(UIntPtr)) 1200if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
144new PredefinedTypeInfo(PredefinedType.PT_UINTPTR, typeof(UIntPtr), "System.UIntPtr", FUNDTYPE.FT_STRUCT),
Microsoft.DotNet.XUnitAssert.Tests (1)
Sdk\ArgumentFormatterTests.cs (1)
220 { typeof(UIntPtr), "typeof(nuint)" },
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Windows\Interop\JobObjectInfo.cs (7)
86public UIntPtr MinimumWorkingSetSize; 89public UIntPtr MaximumWorkingSetSize; 95public UIntPtr Affinity; 117public UIntPtr ProcessMemoryLimit; 120public UIntPtr JobMemoryLimit; 123public UIntPtr PeakProcessMemoryUsed; 126public UIntPtr PeakJobMemoryUsed;
Windows\Interop\SYSTEM_INFO.cs (3)
18public UIntPtr MinimumApplicationAddress; 19public UIntPtr MaximumApplicationAddress; 20public UIntPtr ActiveProcessorMask;
MSBuildTaskHost (3)
NativeMethods.cs (3)
356public UIntPtr AffinityMask; 358public UIntPtr UniqueProcessId; 359public UIntPtr InheritedFromUniqueProcessId;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1218[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UIntPtr))]
netstandard (1)
netstandard.cs (1)
2219[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UIntPtr))]
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
2193UIntPtr hWndUIntPtr = new UIntPtr(hWnd.ToPointer());
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassWithIdRecord.cs (1)
68MemberPrimitiveTypedRecord<UIntPtr> => Create(new UIntPtr(reader.ReadUInt64())),
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (1)
104else if (typeof(T) == typeof(UIntPtr))
System.IO.MemoryMappedFiles (4)
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (2)
130public unsafe void Flush(UIntPtr capacity) 132if (capacity == UIntPtr.Zero)
System\IO\MemoryMappedFiles\MemoryMappedViewAccessor.cs (1)
67_view.Flush((UIntPtr)Capacity);
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
67_view.Flush((UIntPtr)Capacity);
System.Net.Ping (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IOVector.cs (1)
15public UIntPtr Count;
System.Net.Sockets (7)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IOVector.cs (1)
15public UIntPtr Count;
System\Net\Sockets\SocketPal.Unix.cs (6)
155Count = (UIntPtr)buffer.Length 254Count = (UIntPtr)count 314iovecs[i].Count = (UIntPtr)(buffer.Count - startOffset); 428iovecs[i].Count = (UIntPtr)bufferCount; 498Count = (UIntPtr)buffer.Length 567iovecs[i].Count = (UIntPtr)buffer.Count;
System.Private.CoreLib (99)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (17)
22internal static UIntPtr MaxSP 26return (UIntPtr)(void*)(-1); 257UIntPtr sp, ref ExInfo exInfo, 466internal UIntPtr FP; 503_notifyDebuggerSP = UIntPtr.Zero; 516_notifyDebuggerSP = UIntPtr.Zero; 552internal volatile UIntPtr _notifyDebuggerSP; 669public static void RhUnwindAndIntercept(ref ExInfo exInfo, UIntPtr interceptStackFrameSP) 759UIntPtr handlingFrameSP = MaxSP; 769UIntPtr prevFramePtr = UIntPtr.Zero; 958private static void DebugScanCallFrame(int passNumber, byte* ip, UIntPtr sp) 964private static void DebugVerifyHandlingFrame(UIntPtr handlingFrameSP) 967Debug.Assert(((UIntPtr*)handlingFrameSP) > &handlingFrameSP, 985private static void UpdateStackTrace(object exceptionObj, UIntPtr curFramePtr, IntPtr ip, UIntPtr sp, 986ref bool isFirstRethrowFrame, ref UIntPtr prevFramePtr, ref bool isFirstFrame, ref ExInfo exInfo)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\StackFrameIterator.cs (3)
15internal UIntPtr SP; 35internal UIntPtr SP { get { return _pRegDisplay->SP; } } 36internal UIntPtr FramePointer { get { return _pRegDisplay->m_pCurrentContext->FP; } }
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IOVector.cs (1)
15public UIntPtr Count;
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (2)
1235(source == typeof(UIntPtr) && target == typeof(UIntPtr)))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (3)
540else if (type == typeof(UIntPtr)) 664if (parameterType == typeof(UIntPtr)) 665return UIntPtr.Size == 4 ? TypeCode.UInt32 : TypeCode.UInt64;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (7)
47public UIntPtr AsUIntPtr; 94private PropertyValue(UIntPtr value) : this(new Scalar() { AsUIntPtr = value }, sizeof(UIntPtr)) { } 116if (type == typeof(UIntPtr)) return value => new PropertyValue((UIntPtr)value!); 241if (type == typeof(UIntPtr)) { var f = GetGetMethod<UIntPtr>(property); return container => new PropertyValue(f((TContainer)container.ReferenceValue!)); }
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (2)
92public static TraceLoggingTypeInfo UIntPtr() => s_uintptr ??= new ScalarTypeInfo(typeof(UIntPtr), Statics.UIntPtrType); 153public static TraceLoggingTypeInfo UIntPtr() => s_uintptr ??= new ScalarArrayTypeInfo(typeof(UIntPtr[]), Statics.UIntPtrType, System.IntPtr.Size);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
470else if (elementType == typeof(UIntPtr)) 552else if (dataType == typeof(UIntPtr))
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
1181CorElementType.ELEMENT_TYPE_U => Unsafe.As<byte, UIntPtr>(ref data), 1271CorElementType.ELEMENT_TYPE_U => Unsafe.As<byte, UIntPtr>(ref data).GetHashCode(),
src\libraries\System.Private.CoreLib\src\System\Half.cs (5)
958/// <summary>Explicitly converts a half-precision floating-point value to its nearest representable <see cref="UIntPtr" /> value.</summary> 960/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 964/// <summary>Explicitly converts a half-precision floating-point value to its nearest representable <see cref="UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 966/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 967/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (3)
74vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 183vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 227Count = current.Count - (UIntPtr)(bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (2)
418fieldType == typeof(UIntPtr)) 445fieldType == typeof(UIntPtr))
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (1)
114if (srcObject is IntPtr or UIntPtr)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeFeature.cs (1)
46/// Indicates that this version of runtime supports <see cref="System.IntPtr" /> and <see cref="System.UIntPtr" /> as numeric types.
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CULong.cs (4)
11using NativeType = System.UIntPtr; 27private readonly NativeType _value; 35_value = (NativeType)value; 45_value = checked((NativeType)value);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (6)
436/// <summary>Explicitly converts a native-sized floating-point value to its nearest representable <see cref="UIntPtr" /> value.</summary> 438/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 443/// <summary>Explicitly converts a native-sized floating-point value to its nearest representable <see cref="UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 445/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 446/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception> 552/// <summary>Implicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable native-sized floating-point value.</summary>
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
236UIntPtr numBytes = new UIntPtr(segmentSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.Unix.cs (1)
35private static void GrowPageFileIfNecessaryAndPossible(UIntPtr numBytes)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
632if (UIntPtr.Size == sizeof(ulong)) 1188if (UIntPtr.Size == sizeof(ulong))
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (14)
221public static UIntPtr Exchange(ref UIntPtr location1, UIntPtr value) 224return (UIntPtr)Interlocked.Exchange(ref Unsafe.As<UIntPtr, long>(ref location1), (long)value); 464/// <param name="location1">The destination <see cref="UIntPtr"/>, whose value is compared with the value of <paramref name="comparand"/> and possibly replaced by <paramref name="value"/>.</param> 465/// <param name="value">The <see cref="UIntPtr"/> that replaces the destination value if the comparison results in equality.</param> 466/// <param name="comparand">The <see cref="UIntPtr"/> that is compared to the value at <paramref name="location1"/>.</param> 472public static UIntPtr CompareExchange(ref UIntPtr location1, UIntPtr value, UIntPtr comparand) 475return (UIntPtr)Interlocked.CompareExchange(ref Unsafe.As<UIntPtr, long>(ref location1), (long)value, (long)comparand);
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (4)
606public static UIntPtr VolatileRead(ref UIntPtr address) => Volatile.Read(ref address); 650public static void VolatileWrite(ref UIntPtr address, UIntPtr value) => Volatile.Write(ref address, value);
src\libraries\System.Private.CoreLib\src\System\Threading\Volatile.cs (7)
200private struct VolatileUIntPtr { public volatile UIntPtr Value; } 205public static UIntPtr Read(ref readonly UIntPtr location) => 206Unsafe.As<UIntPtr, VolatileUIntPtr>(ref Unsafe.AsRef(in location)).Value; 211public static void Write(ref UIntPtr location, UIntPtr value) => 212Unsafe.As<UIntPtr, VolatileUIntPtr>(ref location).Value = value;
src\System\Exception.CoreCLR.cs (4)
95_ipForWatsonBuckets = UIntPtr.Zero; 164private UIntPtr _ipForWatsonBuckets; // Used to persist the IP for Watson Bucketing 210public readonly UIntPtr IpForWatsonBuckets; 216UIntPtr ipForWatsonBuckets,
src\System\Reflection\Emit\CustomAttributeBuilder.cs (2)
246return t != typeof(IntPtr) && t != typeof(UIntPtr); 273if (passedType == typeof(IntPtr) || passedType == typeof(UIntPtr))
src\System\Runtime\ExceptionServices\InternalCalls.cs (1)
39internal static unsafe partial void RhpAppendExceptionStackFrame(ObjectHandleOnStack exceptionObj, IntPtr ip, UIntPtr sp, int flags, EH.ExInfo* exInfo);
src\System\StubHelpers.cs (1)
938else if (elementType == typeof(UIntPtr))
src\System\TypedReference.CoreCLR.cs (1)
56? TypeHandle.TypeHandleOf<UIntPtr>().AsMethodTable()
System.Private.Windows.Core (2)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
53{ TypeName.Parse(Types.UIntPtrType), typeof(UIntPtr) }, 121|| type == typeof(UIntPtr)
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
978/// Encodes <see cref="System.UIntPtr"/>.
System\Reflection\Metadata\Signatures\SignatureTypeCode.cs (1)
130/// Represents a <see cref="System.UIntPtr"/> in signatures.
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
869[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UIntPtr))]
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (3)
2083/// <summary>Explicitly converts a big integer to a <see cref="UIntPtr" /> value.</summary> 2085/// <returns><paramref name="value" /> converted to <see cref="UIntPtr" /> value.</returns> 2315/// <summary>Implicitly converts a <see cref="UIntPtr" /> value to a big integer.</summary>
System\Numerics\Complex.cs (1)
887/// <summary>Implicitly converts a <see cref="UIntPtr" /> value to a double-precision complex number.</summary>
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverterFactory.cs (1)
28type == typeof(UIntPtr) ||
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
256public INamedTypeSymbol? UIntPtrType => GetOrResolveType(typeof(UIntPtr), ref _UIntPtrType);
System.Windows.Forms (9)
System\Windows\Forms\Application.ComponentManager.cs (2)
32private UIntPtr _cookieCounter = UIntPtr.Zero;
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
139UIntPtr id;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
133mouseInput.Anonymous.mi.dwExtraInfo = UIntPtr.Zero;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
299cchName = (UIntPtr)name.Length - 1
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2908es.dwCookie = (UIntPtr)cookieVal; 3012es.dwCookie = (UIntPtr)cookieVal;
System\Windows\Forms\SendKeys\SendKeys.cs (2)
647currentInput[0].Anonymous.ki.dwExtraInfo = UIntPtr.Zero; 649currentInput[1].Anonymous.ki.dwExtraInfo = UIntPtr.Zero;
System.Windows.Forms.Interop.Tests (1)
RichTextBoxTests.cs (1)
73Assert.Equal((UIntPtr)109, value.dwCookie);
System.Windows.Forms.Primitives (4)
Interop\Richedit\Interop.EDITSTREAM.cs (1)
13public UIntPtr dwCookie;
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
144keyboardInput.Anonymous.ki.dwExtraInfo = UIntPtr.Zero;
Windows\Win32\PInvoke.SetTimer.cs (2)
8public static unsafe UIntPtr SetTimer<T>(T hWnd, nuint nIDEvent, uint uElapse) 11UIntPtr result = SetTimer(hWnd.Handle, nIDEvent, uElapse, lpTimerFunc: null);
System.Windows.Forms.Tests (17)
System\Windows\Forms\Application.ComponentManagerTests.cs (17)
47UIntPtr id = default; 51Assert.Equal(UIntPtr.Zero, id); 61UIntPtr id = default; 64Assert.Equal(UIntPtr.Zero, id); 75UIntPtr id = default; 78Assert.NotEqual(UIntPtr.Zero, id); 80UIntPtr newId = default; 82Assert.NotEqual(UIntPtr.Zero, newId); 95UIntPtr id = default; 97Assert.False(manager.FRevokeComponent(UIntPtr.Zero)); 111UIntPtr id = default; 125UIntPtr id = default; 156UIntPtr id = default; 189UIntPtr id = default; 220UIntPtr id = default; 309UIntPtr firstId = default; 312UIntPtr secondId = default;
UIAutomationClientSideProviders (10)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
54return Misc.VirtualFreeEx(_processHandle, handle, UIntPtr.Zero, UnsafeNativeMethods.MEM_RELEASE);
MS\Internal\AutomationProxies\Misc.cs (5)
607VirtualFree(memAddr, UIntPtr.Zero, UnsafeNativeMethods.MEM_RELEASE); 1742internal static IntPtr VirtualAlloc(IntPtr address, UIntPtr size, int allocationType, int protect) 1755internal static IntPtr VirtualAllocEx(MS.Internal.AutomationProxies.SafeProcessHandle hProcess, IntPtr address, UIntPtr size, int allocationType, int protect) 1768internal static bool VirtualFree(IntPtr address, UIntPtr size, int freeType) 1781internal static bool VirtualFreeEx(MS.Internal.AutomationProxies.SafeProcessHandle hProcess, IntPtr address, UIntPtr size, int freeType)
MS\Win32\UnsafeNativeMethods.cs (4)
46internal static extern IntPtr VirtualAlloc(IntPtr address, UIntPtr size, int allocationType, int protect); 48internal static extern IntPtr VirtualAllocEx(MS.Internal.AutomationProxies.SafeProcessHandle hProcess, IntPtr address, UIntPtr size, int allocationType, int protect); 50internal static extern bool VirtualFree(IntPtr address, UIntPtr size, int freeType); 52internal static extern bool VirtualFreeEx(MS.Internal.AutomationProxies.SafeProcessHandle hProcess, IntPtr address, UIntPtr size, int freeType);
xunit.assert (1)
Sdk\ArgumentFormatter.cs (1)
116 { typeof(UIntPtr).GetTypeInfo(), "nuint" },