13 instantiations of UIntPtr
Microsoft.CodeAnalysis.CSharp (1)
Binder\SwitchBinder.cs (1)
298return new System.UIntPtr(constantValue.UInt32Value);
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
ResourceHealthCheckExtensionsTests.cs (1)
501limitInfo.JobMemoryLimit = new UIntPtr(totalMemory);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (1)
Windows\AcceptanceTest.cs (1)
77JobMemoryLimit = new UIntPtr(LimitsMemory)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Windows\WindowsContainerSnapshotProviderTests.cs (2)
67_limitInfo.JobMemoryLimit = new UIntPtr(2000); 169_limitInfo.JobMemoryLimit = new UIntPtr(0);
PresentationCore (1)
src\wpf\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 (2)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\RuntimeExports.cs (1)
298return RhpGetCurrentThreadStackTrace(pOutputBuffer, (uint)((outputBuffer != null) ? outputBuffer.Length : 0), new UIntPtr(&pOutputBuffer));
src\runtime\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);
330 references to UIntPtr
Aspire.Hosting.Browsers (12)
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (12)
75var attributeListSize = UIntPtr.Zero; 101(UIntPtr)(uint)(IntPtr.Size * inheritedHandles.Length), 370private static partial bool InitializeProcThreadAttributeList(IntPtr lpAttributeList, int dwAttributeCount, int dwFlags, ref UIntPtr lpSize); 383UIntPtr cbSize, 416public UIntPtr MinimumWorkingSetSize; 417public UIntPtr MaximumWorkingSetSize; 419public UIntPtr Affinity; 429public UIntPtr ProcessMemoryLimit; 430public UIntPtr JobMemoryLimit; 431public UIntPtr PeakProcessMemoryUsed; 432public UIntPtr PeakJobMemoryUsed;
Aspire.Hosting.Browsers.Tests (12)
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (12)
75var attributeListSize = UIntPtr.Zero; 101(UIntPtr)(uint)(IntPtr.Size * inheritedHandles.Length), 370private static partial bool InitializeProcThreadAttributeList(IntPtr lpAttributeList, int dwAttributeCount, int dwFlags, ref UIntPtr lpSize); 383UIntPtr cbSize, 416public UIntPtr MinimumWorkingSetSize; 417public UIntPtr MaximumWorkingSetSize; 419public UIntPtr Affinity; 429public UIntPtr ProcessMemoryLimit; 430public UIntPtr JobMemoryLimit; 431public UIntPtr PeakProcessMemoryUsed; 432public UIntPtr PeakJobMemoryUsed;
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
ILCompiler.Diagnostics (6)
ISymNGenWriter.cs (4)
120out UIntPtr ppmod); 122void CloseMod(UIntPtr pmod); 124void ModAddSymbols(UIntPtr pmod, [MarshalAs(UnmanagedType.LPArray)] byte[] pbSym, int cb); 127UIntPtr pmod,
PdbWriter.cs (2)
92UIntPtr _pdbMod; 128if (_pdbMod != UIntPtr.Zero)
Microsoft.AspNetCore.Server.HttpSys (5)
_generated\46\Windows.Win32.HTTP_REQUEST_QUEUE_HANDLE.g.cs (1)
59 public static explicit operator HTTP_REQUEST_QUEUE_HANDLE(UIntPtr value) => new HTTP_REQUEST_QUEUE_HANDLE((void*)value.ToPointer());
_generated\8\Windows.Win32.HANDLE.g.cs (1)
59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
_generated\80\Windows.Win32.PSECURITY_DESCRIPTOR.g.cs (1)
59 public static explicit operator PSECURITY_DESCRIPTOR(UIntPtr value) => new PSECURITY_DESCRIPTOR((void*)value.ToPointer());
_generated\81\Windows.Win32.PSID.g.cs (1)
59 public static explicit operator PSID(UIntPtr value) => new PSID((void*)value.ToPointer());
_generated\9\Windows.Win32.HLOCAL.g.cs (1)
59 public static explicit operator HLOCAL(UIntPtr value) => new HLOCAL((void*)value.ToPointer());
Microsoft.AspNetCore.Server.IIS (1)
_generated\7\Windows.Win32.HANDLE.g.cs (1)
59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
Microsoft.Build (4)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
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\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Symbols\INamedTypeSymbol.cs (1)
196/// 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.Analyzers (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.CSharp (1)
Symbols\NamedTypeSymbol.cs (1)
2951/// either <see cref="System.IntPtr"/> or <see cref="System.UIntPtr"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
508/// Returns whether or not <see cref="IntPtr"/> and <see cref="UIntPtr"/> are exactly identical to <see
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
508/// Returns whether or not <see cref="IntPtr"/> and <see cref="UIntPtr"/> are exactly identical to <see
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (1)
265if (argumentType == typeof(UIntPtr))
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
144new PredefinedTypeInfo(PredefinedType.PT_UINTPTR, typeof(UIntPtr), "System.UIntPtr", FUNDTYPE.FT_STRUCT),
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;
Microsoft.ML.Vision (8)
ImageClassificationTrainer.cs (8)
1518public UIntPtr length; 1519public UIntPtr capacity; 1528private static extern unsafe void TF_StringCopy(TF_TString* dst, byte* src, UIntPtr size); 1537public delegate void TF_Deallocator(IntPtr data, UIntPtr length, IntPtr arg); 1540public static void Deallocator(IntPtr data, UIntPtr length, IntPtr arg) 1562TF_StringCopy(tstring, src, (UIntPtr)data.Length); 1572(UIntPtr)sizeOfTString, 1584IntPtr data, UIntPtr len,
Microsoft.Private.Windows.Core (26)
_generated\10\Windows.Win32.BSTR.g.cs (1)
56 public static explicit operator BSTR(UIntPtr value) => new BSTR((char*)value.ToPointer());
_generated\100\Windows.Win32.HBRUSH.g.cs (1)
59 public static explicit operator HBRUSH(UIntPtr value) => new HBRUSH((void*)value.ToPointer());
_generated\101\Windows.Win32.HCURSOR.g.cs (1)
59 public static explicit operator HCURSOR(UIntPtr value) => new HCURSOR((void*)value.ToPointer());
_generated\102\Windows.Win32.HDC.g.cs (1)
59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
_generated\104\Windows.Win32.HDROP.g.cs (1)
59 public static explicit operator HDROP(UIntPtr value) => new HDROP((void*)value.ToPointer());
_generated\105\Windows.Win32.HENHMETAFILE.g.cs (1)
59 public static explicit operator HENHMETAFILE(UIntPtr value) => new HENHMETAFILE((void*)value.ToPointer());
_generated\106\Windows.Win32.HFONT.g.cs (1)
59 public static explicit operator HFONT(UIntPtr value) => new HFONT((void*)value.ToPointer());
_generated\107\Windows.Win32.HGDIOBJ.g.cs (1)
59 public static explicit operator HGDIOBJ(UIntPtr value) => new HGDIOBJ((void*)value.ToPointer());
_generated\108\Windows.Win32.HGLOBAL.g.cs (1)
59 public static explicit operator HGLOBAL(UIntPtr value) => new HGLOBAL((void*)value.ToPointer());
_generated\109\Windows.Win32.HICON.g.cs (1)
59 public static explicit operator HICON(UIntPtr value) => new HICON((void*)value.ToPointer());
_generated\112\Windows.Win32.HINSTANCE.g.cs (1)
59 public static explicit operator HINSTANCE(UIntPtr value) => new HINSTANCE((void*)value.ToPointer());
_generated\113\Windows.Win32.HMETAFILE.g.cs (1)
59 public static explicit operator HMETAFILE(UIntPtr value) => new HMETAFILE((void*)value.ToPointer());
_generated\114\Windows.Win32.HMODULE.g.cs (1)
59 public static explicit operator HMODULE(UIntPtr value) => new HMODULE((void*)value.ToPointer());
_generated\115\Windows.Win32.HMONITOR.g.cs (1)
59 public static explicit operator HMONITOR(UIntPtr value) => new HMONITOR((void*)value.ToPointer());
_generated\116\Windows.Win32.HPALETTE.g.cs (1)
59 public static explicit operator HPALETTE(UIntPtr value) => new HPALETTE((void*)value.ToPointer());
_generated\117\Windows.Win32.HPEN.g.cs (1)
59 public static explicit operator HPEN(UIntPtr value) => new HPEN((void*)value.ToPointer());
_generated\118\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
59 public static explicit operator HPROPSHEETPAGE(UIntPtr value) => new HPROPSHEETPAGE((void*)value.ToPointer());
_generated\120\Windows.Win32.HRGN.g.cs (1)
59 public static explicit operator HRGN(UIntPtr value) => new HRGN((void*)value.ToPointer());
_generated\121\Windows.Win32.HSTRING.g.cs (1)
66 public static explicit operator HSTRING(UIntPtr value) => new HSTRING((void*)value.ToPointer());
_generated\122\Windows.Win32.HWND.g.cs (1)
59 public static explicit operator HWND(UIntPtr value) => new HWND((void*)value.ToPointer());
_generated\97\Windows.Win32.HANDLE.g.cs (1)
59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
_generated\99\Windows.Win32.HBITMAP.g.cs (1)
59 public static explicit operator HBITMAP(UIntPtr value) => new HBITMAP((void*)value.ToPointer());
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeUintExtensions.cs (2)
14public static nuint MinValue => UIntPtr.Size == 4 19public static nuint MaxValue => UIntPtr.Size == 4
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
55{ TypeName.Parse(Types.UIntPtrType), typeof(UIntPtr) }, 123|| type == typeof(UIntPtr)
Mono.Cecil (1)
Mono.Cecil\Import.cs (1)
158 { typeof (UIntPtr), ElementType.U },
mscorlib (1)
src\runtime\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\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
2193UIntPtr hWndUIntPtr = new UIntPtr(hWnd.ToPointer());
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (4)
617if (typeof(T) == typeof(UIntPtr)) 651if (typeof(T) == typeof(UIntPtr)) 1168if (typeof(TKey) == typeof(UIntPtr)) 1202if (typeof(TKey) == typeof(UIntPtr))
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
508/// Returns whether or not <see cref="IntPtr"/> and <see cref="UIntPtr"/> are exactly identical to <see
System.Diagnostics.PerformanceCounter (7)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.MapViewOfFile.cs (1)
19UIntPtr dwNumberOfBytesToMap);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.MEMORY_BASIC_INFO.cs (1)
17internal UIntPtr RegionSize;
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.VirtualQuery.cs (2)
13internal static partial UIntPtr VirtualQuery( 16UIntPtr dwLength);
System\Diagnostics\SharedPerformanceCounter.cs (3)
1751_fileViewAddress = Interop.Kernel32.MapViewOfFile(_fileMappingHandle, Interop.Kernel32.FileMapOptions.FILE_MAP_WRITE, 0, 0, UIntPtr.Zero); 1757if (Interop.Kernel32.VirtualQuery(_fileViewAddress, ref meminfo, (UIntPtr)sizeof(Interop.Kernel32.MEMORY_BASIC_INFORMATION)) == UIntPtr.Zero)
System.Drawing.Common (1)
_generated\22\Windows.Win32.PRINTER_HANDLE.g.cs (1)
59 public static explicit operator PRINTER_HANDLE(UIntPtr value) => new PRINTER_HANDLE((void*)value.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\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.IOVector.cs (1)
15public UIntPtr Count;
System.Net.Sockets (7)
src\runtime\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 (98)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (16)
22internal static UIntPtr MaxSP 26return (UIntPtr)(void*)(-1); 259UIntPtr sp, ref ExInfo exInfo, 507_notifyDebuggerSP = UIntPtr.Zero; 520_notifyDebuggerSP = UIntPtr.Zero; 556internal volatile UIntPtr _notifyDebuggerSP; 767UIntPtr handlingFrameSP = MaxSP; 777UIntPtr prevFramePtr = UIntPtr.Zero; 970private static void DebugScanCallFrame(int passNumber, byte* ip, UIntPtr sp) 976private static void DebugVerifyHandlingFrame(UIntPtr handlingFrameSP) 980Debug.Assert(((UIntPtr*)handlingFrameSP) > &handlingFrameSP, 1001private static void UpdateStackTrace(object exceptionObj, UIntPtr curFramePtr, IntPtr ip, UIntPtr sp, 1002ref bool isFirstRethrowFrame, ref UIntPtr prevFramePtr, ref bool isFirstFrame, ref ExInfo exInfo) 1011if ((prevFramePtr == UIntPtr.Zero) || (curFramePtr != prevFramePtr))
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\RuntimeExports.cs (2)
303private static extern unsafe int RhpGetCurrentThreadStackTrace(IntPtr* pOutputBuffer, uint outputBufferLength, UIntPtr addressInCurrentFrame); 319private static unsafe int RhpCalculateStackTraceWorker(IntPtr* pOutputBuffer, uint outputBufferLength, UIntPtr addressInCurrentFrame)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\StackFrameIterator.cs (4)
16internal UIntPtr SP; 43private UIntPtr _framePointer; 56internal UIntPtr SP { get { return _regDisplay.SP; } } 57internal UIntPtr FramePointer { get { return _framePointer; } }
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.IOVector.cs (1)
15public UIntPtr Count;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2665typeof(T) == typeof(UIntPtr))
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (2)
1237(source == typeof(UIntPtr) && target == typeof(UIntPtr)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (3)
541else if (type == typeof(UIntPtr)) 665if (parameterType == typeof(UIntPtr)) 666return UIntPtr.Size == 4 ? TypeCode.UInt32 : TypeCode.UInt64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (6)
115private PropertyValue(UIntPtr value) : this(new Scalar() { AsUIntPtr = value }, sizeof(UIntPtr)) { } 137if (type == typeof(UIntPtr)) return value => new PropertyValue((UIntPtr)value!); 262if (type == typeof(UIntPtr)) { var f = GetGetMethod<UIntPtr>(property); return container => new PropertyValue(f((TContainer)container.ReferenceValue!)); }
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
467else if (elementType == typeof(UIntPtr)) 549else if (dataType == typeof(UIntPtr))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (5)
989/// <summary>Explicitly converts a half-precision floating-point value to its nearest representable <see cref="UIntPtr" /> value.</summary> 991/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 995/// <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> 997/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 998/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (5)
438/// <summary>Explicitly converts a 128-bit signed integer to a <see cref="UIntPtr" /> value.</summary> 440/// <returns><paramref name="value" /> converted to a <see cref="UIntPtr" />.</returns> 444/// <summary>Explicitly converts a 128-bit signed integer to a <see cref="UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 446/// <returns><paramref name="value" /> converted to a <see cref="UIntPtr" />.</returns> 650/// <summary>Implicitly converts a <see cref="UIntPtr" /> value to a 128-bit signed integer.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (3)
71vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 197vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 254Count = current.Count - (UIntPtr)(bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (5)
799/// <summary>Explicitly converts a <see cref="BFloat16" /> value to its nearest representable <see cref="UIntPtr" /> value.</summary> 801/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 805/// <summary>Explicitly converts a <see cref="BFloat16" /> value to its nearest representable <see cref="UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 807/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 808/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (6)
546/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal128" /> value to its nearest representable <see cref="System.UIntPtr" /> value.</summary> 548/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 552/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal128" /> value to its nearest representable <see cref="System.UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 554/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 555/// <exception cref="System.OverflowException"><paramref name="value" /> is not representable by <see cref="System.UIntPtr" />.</exception> 675/// <summary>Implicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable <see cref="System.Numerics.Decimal128" /> value.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (6)
425/// <summary>Explicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 581/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UIntPtr" /> value.</summary> 583/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 587/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 589/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 590/// <exception cref="System.OverflowException"><paramref name="value" /> is not representable by <see cref="System.UIntPtr" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (6)
417/// <summary>Explicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable <see cref="System.Numerics.Decimal64" /> value.</summary> 568/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal64" /> value to its nearest representable <see cref="System.UIntPtr" /> value.</summary> 570/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 574/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal64" /> value to its nearest representable <see cref="System.UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 576/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.UIntPtr" /> value.</returns> 577/// <exception cref="System.OverflowException"><paramref name="value" /> is not representable by <see cref="System.UIntPtr" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeFeature.cs (1)
48/// Indicates that this version of runtime supports <see cref="System.IntPtr" /> and <see cref="System.UIntPtr" /> as numeric types.
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (6)
435/// <summary>Explicitly converts a native-sized floating-point value to its nearest representable <see cref="UIntPtr" /> value.</summary> 437/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 442/// <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> 444/// <returns><paramref name="value" /> converted to its nearest representable <see cref="UIntPtr" /> value.</returns> 445/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception> 551/// <summary>Implicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable native-sized floating-point value.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
236UIntPtr numBytes = new UIntPtr(segmentSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.Unix.cs (1)
35private static void GrowPageFileIfNecessaryAndPossible(UIntPtr numBytes)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
636if (UIntPtr.Size == sizeof(ulong)) 1192if (UIntPtr.Size == sizeof(ulong))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (5)
461/// <summary>Explicitly converts a 128-bit unsigned integer to a <see cref="UIntPtr" /> value.</summary> 463/// <returns><paramref name="value" /> converted to a <see cref="UIntPtr" />.</returns> 467/// <summary>Explicitly converts a 128-bit unsigned integer to a <see cref="UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 469/// <returns><paramref name="value" /> converted to a <see cref="UIntPtr" />.</returns> 725/// <summary>Implicitly converts a <see cref="UIntPtr" /> value to a 128-bit unsigned integer.</summary>
System\InvokeUtils.cs (1)
395if (srcObject is IntPtr or UIntPtr)
System\Reflection\Runtime\General\Assignability.cs (1)
272if (t == typeof(UIntPtr) || t == typeof(IntPtr))
System\TypedReference.cs (1)
56handle = typeof(UIntPtr).TypeHandle;
System.Private.Reflection.Execution (4)
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForInstanceFields.cs (2)
30Debug.Assert(value.GetType() == typeof(UIntPtr) || value.GetType() == typeof(IntPtr)); 36Debug.Assert(value.GetType() == typeof(UIntPtr) || value.GetType() == typeof(IntPtr));
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForStaticFields.cs (1)
39Debug.Assert(value.GetType() == typeof(UIntPtr) || value.GetType() == typeof(IntPtr));
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
331if (typeof(UIntPtr) == normalizedType || typeof(IntPtr) == normalizedType)
System.Private.TypeLoader (3)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
92return (DefType)ResolveRuntimeTypeHandle(typeof(UIntPtr).TypeHandle);
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\MethodTable.cs (2)
1307(fHasDispatchMap ? sizeof(UIntPtr) : 0) + 1308(fHasFinalizer ? sizeof(UIntPtr) : 0) +
System.Private.Windows.Core (24)
_generated\10\Windows.Win32.BSTR.g.cs (1)
56 public static explicit operator BSTR(UIntPtr value) => new BSTR((char*)value.ToPointer());
_generated\100\Windows.Win32.HBITMAP.g.cs (1)
59 public static explicit operator HBITMAP(UIntPtr value) => new HBITMAP((void*)value.ToPointer());
_generated\101\Windows.Win32.HBRUSH.g.cs (1)
59 public static explicit operator HBRUSH(UIntPtr value) => new HBRUSH((void*)value.ToPointer());
_generated\102\Windows.Win32.HCURSOR.g.cs (1)
59 public static explicit operator HCURSOR(UIntPtr value) => new HCURSOR((void*)value.ToPointer());
_generated\103\Windows.Win32.HDC.g.cs (1)
59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
_generated\105\Windows.Win32.HDROP.g.cs (1)
59 public static explicit operator HDROP(UIntPtr value) => new HDROP((void*)value.ToPointer());
_generated\106\Windows.Win32.HENHMETAFILE.g.cs (1)
59 public static explicit operator HENHMETAFILE(UIntPtr value) => new HENHMETAFILE((void*)value.ToPointer());
_generated\107\Windows.Win32.HFONT.g.cs (1)
59 public static explicit operator HFONT(UIntPtr value) => new HFONT((void*)value.ToPointer());
_generated\108\Windows.Win32.HGDIOBJ.g.cs (1)
59 public static explicit operator HGDIOBJ(UIntPtr value) => new HGDIOBJ((void*)value.ToPointer());
_generated\109\Windows.Win32.HGLOBAL.g.cs (1)
59 public static explicit operator HGLOBAL(UIntPtr value) => new HGLOBAL((void*)value.ToPointer());
_generated\110\Windows.Win32.HICON.g.cs (1)
59 public static explicit operator HICON(UIntPtr value) => new HICON((void*)value.ToPointer());
_generated\113\Windows.Win32.HINSTANCE.g.cs (1)
59 public static explicit operator HINSTANCE(UIntPtr value) => new HINSTANCE((void*)value.ToPointer());
_generated\114\Windows.Win32.HMETAFILE.g.cs (1)
59 public static explicit operator HMETAFILE(UIntPtr value) => new HMETAFILE((void*)value.ToPointer());
_generated\115\Windows.Win32.HMODULE.g.cs (1)
59 public static explicit operator HMODULE(UIntPtr value) => new HMODULE((void*)value.ToPointer());
_generated\116\Windows.Win32.HMONITOR.g.cs (1)
59 public static explicit operator HMONITOR(UIntPtr value) => new HMONITOR((void*)value.ToPointer());
_generated\117\Windows.Win32.HPALETTE.g.cs (1)
59 public static explicit operator HPALETTE(UIntPtr value) => new HPALETTE((void*)value.ToPointer());
_generated\118\Windows.Win32.HPEN.g.cs (1)
59 public static explicit operator HPEN(UIntPtr value) => new HPEN((void*)value.ToPointer());
_generated\119\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
59 public static explicit operator HPROPSHEETPAGE(UIntPtr value) => new HPROPSHEETPAGE((void*)value.ToPointer());
_generated\121\Windows.Win32.HRGN.g.cs (1)
59 public static explicit operator HRGN(UIntPtr value) => new HRGN((void*)value.ToPointer());
_generated\122\Windows.Win32.HSTRING.g.cs (1)
66 public static explicit operator HSTRING(UIntPtr value) => new HSTRING((void*)value.ToPointer());
_generated\123\Windows.Win32.HWND.g.cs (1)
59 public static explicit operator HWND(UIntPtr value) => new HWND((void*)value.ToPointer());
_generated\98\Windows.Win32.HANDLE.g.cs (1)
59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
55{ TypeName.Parse(Types.UIntPtrType), typeof(UIntPtr) }, 123|| type == typeof(UIntPtr)
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
982/// Encodes <see cref="System.UIntPtr"/>.
System\Reflection\Metadata\Signatures\SignatureTypeCode.cs (1)
130/// Represents a <see cref="System.UIntPtr"/> in signatures.
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
893[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UIntPtr))]
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (3)
2475/// <summary>Explicitly converts a big integer to a <see cref="UIntPtr" /> value.</summary> 2477/// <returns><paramref name="value" /> converted to <see cref="UIntPtr" /> value.</returns> 2668/// <summary>Implicitly converts a <see cref="UIntPtr" /> value to a big integer.</summary>
System\Numerics\Complex.cs (1)
472/// <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)
307public 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)
2992es.dwCookie = (UIntPtr)cookieVal; 3096es.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.Primitives (17)
_generated\100\Windows.Win32.HMENU.g.cs (1)
59 public static explicit operator HMENU(UIntPtr value) => new HMENU((void*)value.ToPointer());
_generated\101\Windows.Win32.HTASK.g.cs (1)
59 public static explicit operator HTASK(UIntPtr value) => new HTASK((void*)value.ToPointer());
_generated\105\Windows.Win32.HWINEVENTHOOK.g.cs (1)
61 public static explicit operator HWINEVENTHOOK(UIntPtr value) => new HWINEVENTHOOK((void*)value.ToPointer());
_generated\106\Windows.Win32.HWINSTA.g.cs (1)
59 public static explicit operator HWINSTA(UIntPtr value) => new HWINSTA((void*)value.ToPointer());
_generated\432\Windows.Win32.PRINTER_HANDLE.g.cs (1)
59 public static explicit operator PRINTER_HANDLE(UIntPtr value) => new PRINTER_HANDLE((void*)value.ToPointer());
_generated\44\Windows.Win32.DPI_AWARENESS_CONTEXT.g.cs (1)
59 public static explicit operator DPI_AWARENESS_CONTEXT(UIntPtr value) => new DPI_AWARENESS_CONTEXT((void*)value.ToPointer());
_generated\76\Windows.Win32.HACCEL.g.cs (1)
59 public static explicit operator HACCEL(UIntPtr value) => new HACCEL((void*)value.ToPointer());
_generated\78\Windows.Win32.HDESK.g.cs (1)
59 public static explicit operator HDESK(UIntPtr value) => new HDESK((void*)value.ToPointer());
_generated\83\Windows.Win32.HDWP.g.cs (1)
59 public static explicit operator HDWP(UIntPtr value) => new HDWP((void*)value.ToPointer());
_generated\91\Windows.Win32.HHOOK.g.cs (1)
59 public static explicit operator HHOOK(UIntPtr value) => new HHOOK((void*)value.ToPointer());
_generated\96\Windows.Win32.HIMC.g.cs (1)
59 public static explicit operator HIMC(UIntPtr value) => new HIMC((void*)value.ToPointer());
_generated\98\Windows.Win32.HKEY.g.cs (1)
59 public static explicit operator HKEY(UIntPtr value) => new HKEY((void*)value.ToPointer());
_generated\99\Windows.Win32.HKL.g.cs (1)
59 public static explicit operator HKL(UIntPtr value) => new HKL((void*)value.ToPointer());
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);
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);