63 references to IntPtr
ILCompiler.ReadyToRun (1)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
3205pSchema[iSchema].Offset = new IntPtr((byte*)&blockCounts[iSchema].ExecutionCount - (byte*)blockCounts);
Microsoft.AspNetCore.Server.HttpSys (2)
_generated\12\Windows.Win32.HttpCloseRequestQueueSafeHandle.g.cs (1)
27 private static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(0L);
_generated\72\Windows.Win32.LocalFreeSafeHandle.g.cs (1)
27 private static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1L);
Microsoft.Private.Windows.Core (1)
_generated\179\Windows.Win32.OLE_HANDLE.g.cs (1)
47 public static implicit operator IntPtr(OLE_HANDLE value) => new IntPtr(value.Value);
NuGet.Packaging (12)
Signing\Cms\NativeCms.cs (11)
115var attributePointer = new IntPtr( 126var attributeValuePointer = new IntPtr( 133new IntPtr(NativeMethods.PKCS7_SIGNER_INFO), 144new IntPtr(NativeMethods.PKCS7_SIGNER_INFO), 174var signedAttributePointer = new IntPtr( 193var attributeValuePointer = new IntPtr( 324var existingAttributePointer = new IntPtr( 351lpszStructType: new IntPtr(NativeMethods.PKCS7_SIGNER_INFO), 368lpszStructType: new IntPtr(NativeMethods.PKCS7_SIGNER_INFO), 467lpszStructType: new IntPtr(NativeMethods.PKCS_ATTRIBUTE), 484lpszStructType: new IntPtr(NativeMethods.PKCS_ATTRIBUTE),
Signing\Cms\NativeUtility.cs (1)
61Marshal.StructureToPtr(certificateBlobs[i], new IntPtr(certificatesHandle.DangerousGetHandle().ToInt64() + Marshal.SizeOf(certificateBlobs[i]) * i), fDeleteOld: false);
PresentationCore (3)
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
129result = new IntPtr(flags);
System\Windows\Media\Imaging\BitmapSource.cs (1)
1833Marshal.Copy(managedArray, y * rectRowSize, new IntPtr(rowPtr), rectRowSize);
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
527adjustedBuffer = new IntPtr(((long)buffer) + (long)offsetInBytes);
PresentationFramework (1)
System\Windows\SystemCommands.cs (1)
90NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr(cmd), IntPtr.Zero);
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
419IntPtr nameOffset = new IntPtr(_ptrToDsObjectNames.ToInt64() + dsObject.offsetName); 450IntPtr offset = new IntPtr(_ptrToDsObjectNames.ToInt64() +
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
554IntPtr strAddr = new IntPtr(baseAddr.ToInt64() + offset);
System.Data.Odbc (1)
System\Data\Odbc\OdbcStatementHandle.cs (1)
20_value = new IntPtr(value);
System.Data.OleDb (1)
OleDbDataReader.cs (1)
2302info.propid = new IntPtr(binding.Value_UI4());
System.Diagnostics.EventLog (3)
System\Diagnostics\Reader\NativeWrapper.cs (3)
878pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal))); 922pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal))); 1029pointer = new IntPtr((long)pointer + (s.Length * 2) + 2);
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassWithIdRecord.cs (1)
67MemberPrimitiveTypedRecord<IntPtr> => Create(new IntPtr(reader.ReadInt64())),
System\Formats\Nrbf\SystemClassWithMembersAndTypesRecord.cs (1)
66(PrimitiveType.Int64, "System.IntPtr", "value") => Create(new IntPtr(reader.ReadInt64())),
System.Private.CoreLib (3)
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\CompilerHelpers\StartupCodeHelpers.cs (1)
211new IntPtr(blockAddr & ~GCStaticRegionConstants.Mask),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
183private static IntPtr GetHandleValue(IntPtr handle) => new IntPtr(handle & ~1); // Remove Pin flag
System\Runtime\InteropServices\Marshal.NativeAot.cs (1)
50return new IntPtr(RuntimeInteropData.GetStructFieldOffset(t.TypeHandle, fieldName));
System.Private.Windows.Core (1)
_generated\181\Windows.Win32.OLE_HANDLE.g.cs (1)
47 public static implicit operator IntPtr(OLE_HANDLE value) => new IntPtr(value.Value);
System.Speech (24)
AudioFormat\AudioFormatConverter.cs (1)
20IntPtr extraDataPtr = new(waveFormatPtr.ToInt64() + Marshal.SizeOf<WaveFormatEx>());
Internal\SapiInterop\SapiRecoInterop.cs (1)
499Marshal.StructureToPtr<SPPHRASEELEMENT>(elements[i], new IntPtr((long)coMem + size * i), false);
Internal\SapiInterop\SpStreamWrapper.cs (1)
67Marshal.WriteIntPtr(plibNewPosition, new IntPtr(_stream.Position));
Recognition\RecognizerBase.cs (2)
421SapiContext.Bookmark(SPBOOKMARKOPTIONS.SPBO_PAUSE, 0, new IntPtr(bookmarkId)); 439(ulong)audioPositionAheadToRaiseUpdate.Ticks, new IntPtr(bookmarkId));
Result\RecognitionResult.cs (5)
163IntPtr rawDataBuffer = new((long)audioBuffer + audioHeader.cbUsed); 170IntPtr codecDataBuffer = new((long)audioBuffer + 38); // 38 is sizeof(SPWAVEFORMATEX) without padding. 319IntPtr phraseBuffer = new((long)buffer + (int)_header.ulPhraseOffset); 366IntPtr altBuffer = new((long)buffer + offset); 380IntPtr phraseBuffer = new((long)buffer + offset);
Result\RecognizedPhrase.cs (14)
172IntPtr elementBuffer = new((long)buffer + elementsOffset + i * sizeofPhraseElement); 178IntPtr displayFormBuffer = new((long)buffer + (int)element.pszDisplayTextOffset); 183IntPtr lexicalFormBuffer = new((long)buffer + (int)element.pszLexicalFormOffset); 189IntPtr pronunciationBuffer = new((long)buffer + (int)element.pszPronunciationOffset); 296IntPtr itnBuffer = new((long)buffer + _serializedPhrase.ReplacementsOffset); 300string text = Marshal.PtrToStringUni(new IntPtr((long)buffer + replacement.pszReplacementText))!; 545IntPtr propertyBuffer = new((long)phraseBuffer + semanticsOffset); 577IntPtr propertyBuffer = new((long)phraseBuffer + semanticsOffset); 667IntPtr nameBuffer = new((long)phraseBuffer + (int)property.pszNameOffset); 678IntPtr valueStringBuffer = new((long)phraseBuffer + (int)property.pszValueOffset); 691IntPtr valueBuffer = new((long)phraseBuffer + +semanticsOffset + SpVariantSubsetOffset); 742IntPtr nameBuffer = new((long)phraseBuffer + (int)rule.pszNameOffset); 758IntPtr elementBuffer = new((long)phraseBuffer + rule.NextSiblingOffset); 766IntPtr elementBuffer = new((long)phraseBuffer + rule.FirstChildOffset);
System.Windows.Extensions (1)
System\Security\Cryptography\X509Certificates\X509Utils.cs (1)
28new IntPtr(Interop.Crypt32.CERT_STORE_PROV_MEMORY),
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (3)
1010hitTestItem = new IntPtr(hitTestInfo64.hItem); 1462if (Misc.ReadProcessMemory(hProcess, new IntPtr(group.pszHeader), copyTo, new IntPtr(NativeMethods.MAX_PATH), out count)) 2511hItem = new IntPtr(hitTestInfo64.hItem)
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1596IntPtr pAddress = new IntPtr((long)address + (image * readSize));