279 references to IntPtr
ILCompiler.MetadataTransform (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
253return new IntPtr(_base + offset);
Microsoft.AspNetCore.Server.HttpSys (13)
_generated\46\Windows.Win32.HTTP_REQUEST_QUEUE_HANDLE.g.cs (1)
55 public static implicit operator IntPtr(HTTP_REQUEST_QUEUE_HANDLE value) => new IntPtr(value.Value);
_generated\8\Windows.Win32.HANDLE.g.cs (1)
55 public static implicit operator IntPtr(HANDLE value) => new IntPtr(value.Value);
_generated\80\Windows.Win32.PSECURITY_DESCRIPTOR.g.cs (1)
55 public static implicit operator IntPtr(PSECURITY_DESCRIPTOR value) => new IntPtr(value.Value);
_generated\81\Windows.Win32.PSID.g.cs (1)
55 public static implicit operator IntPtr(PSID value) => new IntPtr(value.Value);
_generated\9\Windows.Win32.HLOCAL.g.cs (1)
55 public static implicit operator IntPtr(HLOCAL value) => new IntPtr(value.Value);
AuthenticationManager.cs (1)
137IntPtr infoptr = new IntPtr(&authInfo);
NativeInterop\UrlGroup.cs (6)
71new IntPtr(&info), 92SetProperty(HTTP_SERVER_PROPERTY.HttpServerQosProperty, new IntPtr(&qosSettings), (uint)QosInfoSize); 103SetProperty(HTTP_SERVER_PROPERTY.HttpServerDelegationProperty, new IntPtr(&propertyInfo), (uint)RequestPropertyInfoSize); 113SetProperty(HTTP_SERVER_PROPERTY.HttpServerDelegationProperty, new IntPtr(&propertyInfo), (uint)RequestPropertyInfoSize, throwOnError); 146var infoptr = new IntPtr(&info); 162var infoptr = new IntPtr(&info);
TimeoutManager.cs (1)
222var infoptr = new IntPtr(&timeoutinfo);
Microsoft.AspNetCore.Server.IIS (1)
_generated\7\Windows.Win32.HANDLE.g.cs (1)
55 public static implicit operator IntPtr(HANDLE value) => new IntPtr(value.Value);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (2)
551publicKeyBlob.pbData = new IntPtr(pbPublicKeyBlob); 897IntPtr pvLicense = new IntPtr(pbLicense);
Microsoft.CodeAnalysis (1)
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
370Marshal.GetNativeVariantForObject(value, new IntPtr(&variant));
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
282Marshal.Copy(new IntPtr(contentPtr), content, 0, length);
Microsoft.ML.Data (14)
DataLoadSave\Binary\BinarySaver.cs (1)
557Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.SizeOf(typeof(Header)));
DataLoadSave\Binary\UnsafeTypeOps.cs (12)
58func(new IntPtr(pArray)); 70func(new IntPtr(pArray)); 82func(new IntPtr(pArray)); 94func(new IntPtr(pArray)); 106func(new IntPtr(pArray)); 118func(new IntPtr(pArray)); 130func(new IntPtr(pArray)); 142func(new IntPtr(pArray)); 154func(new IntPtr(pArray)); 166func(new IntPtr(pArray)); 178func(new IntPtr(pArray)); 195func(new IntPtr(pArray));
DataLoadSave\Transpose\TransposeSaver.cs (1)
179Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.SizeOf(typeof(Header)));
Microsoft.Private.Windows.Core (22)
_generated\10\Windows.Win32.BSTR.g.cs (2)
50 public override string ToString() => this.Value != null ? Marshal.PtrToStringBSTR(new IntPtr(this.Value)) : null; 52 public static implicit operator IntPtr(BSTR value) => new IntPtr(value.Value);
_generated\100\Windows.Win32.HBRUSH.g.cs (1)
55 public static implicit operator IntPtr(HBRUSH value) => new IntPtr(value.Value);
_generated\101\Windows.Win32.HCURSOR.g.cs (1)
55 public static implicit operator IntPtr(HCURSOR value) => new IntPtr(value.Value);
_generated\102\Windows.Win32.HDC.g.cs (1)
55 public static implicit operator IntPtr(HDC value) => new IntPtr(value.Value);
_generated\104\Windows.Win32.HDROP.g.cs (1)
55 public static implicit operator IntPtr(HDROP value) => new IntPtr(value.Value);
_generated\105\Windows.Win32.HENHMETAFILE.g.cs (1)
55 public static implicit operator IntPtr(HENHMETAFILE value) => new IntPtr(value.Value);
_generated\106\Windows.Win32.HFONT.g.cs (1)
55 public static implicit operator IntPtr(HFONT value) => new IntPtr(value.Value);
_generated\107\Windows.Win32.HGDIOBJ.g.cs (1)
55 public static implicit operator IntPtr(HGDIOBJ value) => new IntPtr(value.Value);
_generated\108\Windows.Win32.HGLOBAL.g.cs (1)
55 public static implicit operator IntPtr(HGLOBAL value) => new IntPtr(value.Value);
_generated\109\Windows.Win32.HICON.g.cs (1)
55 public static implicit operator IntPtr(HICON value) => new IntPtr(value.Value);
_generated\112\Windows.Win32.HINSTANCE.g.cs (1)
55 public static implicit operator IntPtr(HINSTANCE value) => new IntPtr(value.Value);
_generated\113\Windows.Win32.HMETAFILE.g.cs (1)
55 public static implicit operator IntPtr(HMETAFILE value) => new IntPtr(value.Value);
_generated\114\Windows.Win32.HMODULE.g.cs (1)
55 public static implicit operator IntPtr(HMODULE value) => new IntPtr(value.Value);
_generated\115\Windows.Win32.HMONITOR.g.cs (1)
55 public static implicit operator IntPtr(HMONITOR value) => new IntPtr(value.Value);
_generated\116\Windows.Win32.HPALETTE.g.cs (1)
55 public static implicit operator IntPtr(HPALETTE value) => new IntPtr(value.Value);
_generated\117\Windows.Win32.HPEN.g.cs (1)
55 public static implicit operator IntPtr(HPEN value) => new IntPtr(value.Value);
_generated\118\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
55 public static implicit operator IntPtr(HPROPSHEETPAGE value) => new IntPtr(value.Value);
_generated\120\Windows.Win32.HRGN.g.cs (1)
55 public static implicit operator IntPtr(HRGN value) => new IntPtr(value.Value);
_generated\121\Windows.Win32.HWND.g.cs (1)
55 public static implicit operator IntPtr(HWND value) => new IntPtr(value.Value);
_generated\97\Windows.Win32.HANDLE.g.cs (1)
55 public static implicit operator IntPtr(HANDLE value) => new IntPtr(value.Value);
_generated\99\Windows.Win32.HBITMAP.g.cs (1)
55 public static implicit operator IntPtr(HBITMAP value) => new IntPtr(value.Value);
NuGet.Packaging (4)
Signing\Cms\NativeCms.cs (3)
138pcbStructInfo: new IntPtr(&cbSignerInfo))); 149pcbStructInfo: new IntPtr(&cbSignerInfo))); 341rgAttr = new IntPtr(attributesArray)
Signing\Cms\NativeUtility.cs (1)
198signerInfo.rgAuthAttr = new IntPtr(attributesArray);
PresentationCore (6)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
527Marshal.StructureToPtr(packetProperties[i], new IntPtr(pElement), false); 559Marshal.DestroyStructure(new IntPtr(pElement), typeof(MS.Win32.Recognizer.PACKET_PROPERTY));
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (3)
221return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset); 320return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset); 429return new IntPtr(_unsafeString + offset);
System\Windows\Media\GlyphTypeface.cs (1)
1280Marshal.Copy(new IntPtr(pMilPathGeometry), data, 0, checked((int)size));
PresentationFramework (7)
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (3)
94IntPtr pBytesRead = new IntPtr(&bytesRead); 104_oleStream.Read(new IntPtr(bufferPointer), count, pBytesRead); 135IntPtr positionAddress = new IntPtr(&position);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
516____return_value__ = FindAdapter(new IntPtr(thisPtr))._Current;
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
264____return_value__ = FindAdapter(new IntPtr(thisPtr)).GetAt(index); 285____return_value__ = FindAdapter(new IntPtr(thisPtr)).IndexOf(Marshaler<T>.FromAbi(value), out __index);
System\Windows\Documents\ImmComposition.cs (1)
1369Marshal.Copy(surrounding.ToCharArray(), 0, new IntPtr((void*)p), surrounding.Length);
ReachFramework (6)
PrintConfig\PTProvider.cs (6)
627stream.Seek(0, 1 /* STREAM_SEEK_CUR */, new IntPtr(&iStreamPosition)); 657dst.Write(src, (int)byteCount, new IntPtr(&totalBytesWritten)); 678dst.Write(data, bytesToWrite, new IntPtr(&bytesWritten)); 711src.Read(dst, (int)byteCount, new IntPtr(&totalBytesRead)); 732src.Read(data, bytesToRead, new IntPtr(&bytesRead)); 756stream.Seek(0, 1 /* STREAM_SEEK_CUR */, new IntPtr(&iStreamPosition));
System.Diagnostics.PerformanceCounter (1)
misc\EnvironmentHelpers.cs (1)
45if (!Interop.Advapi32.GetTokenInformation(wi.Token, (uint)Interop.Advapi32.TOKEN_INFORMATION_CLASS.TokenIsAppContainer, new IntPtr(dwIsAppContainerPtr), sizeof(int), out dwLength))
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
76module.BaseAddress = new IntPtr((void*)parsedLine.StartAddress);
System.Drawing.Common (3)
_generated\22\Windows.Win32.PRINTER_HANDLE.g.cs (1)
55 public static implicit operator IntPtr(PRINTER_HANDLE value) => new IntPtr(value.Value);
System\Drawing\Font.cs (2)
289Marshal.PtrToStructure(new IntPtr(&nativeLogFont), logFont); 644Marshal.StructureToPtr(lf, new IntPtr(&logFont), fDeleteOld: false);
System.Net.Http.WinHttpHandler (2)
src\runtime\src\libraries\Common\src\Interop\Windows\SChannel\UnmanagedCertificateContext.IntPtr.cs (1)
38var cert = new X509Certificate2(new IntPtr(next));
System\Net\Http\WinHttpResponseParser.cs (1)
252new IntPtr(buffer),
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
467Marshal.Copy(new IntPtr(&icmpHeader), result, offset, icmpHeaderSize);
System.Private.CoreLib (6)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\RuntimeExports.cs (1)
336pOutputBuffer[nFrames] = new IntPtr(frameIter.ControlPC);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
253return new IntPtr(_base + offset);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (1)
84regionPtr = new IntPtr(regionInAscii);
System\CrashInfo.cs (1)
50public IntPtr TriageBufferAddress => new IntPtr(_bufferAddress);
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
486Marshal.FreeCoTaskMem(new IntPtr(nativeArray));
System\RuntimeExceptionHelpers.cs (1)
370RuntimeImports.RhCreateCrashDumpIfEnabled(new IntPtr(&exceptionRecord));
System.Private.Reflection.Execution (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
253return new IntPtr(_base + offset);
System.Private.StackTraceMetadata (2)
Internal\StackTraceMetadata\StackTraceMetadata.cs (1)
414Reader = new MetadataReader(new IntPtr(metadataBlob), (int)metadataBlobSize);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
253return new IntPtr(_base + offset);
System.Private.TypeLoader (10)
Internal\Runtime\TypeLoader\ModuleList.cs (6)
62return RuntimeAugments.FindBlob(Handle, (int)blobId, new IntPtr(ppBlob), new IntPtr(pcbBlob)); 75return RuntimeAugments.FindBlob(Handle, (int)blobId, new IntPtr(ppBlob), new IntPtr(pcbBlob)); 271if (RuntimeAugments.FindBlob(loadedModuleHandles[newModuleIndex], (int)ReflectionMapBlob.EmbeddedMetadata, new IntPtr(&pBlob), new IntPtr(&cbBlob)))
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
1088offset = checked((uint)new IntPtr(lazySignature[1]).ToInt32());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
209if (RuntimeAugments.FindBlob(moduleHandle, (int)ReflectionMapBlob.NativeLayoutInfo, new IntPtr(&pBlob), new IntPtr(&cbBlob)))
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.cs (1)
253return new IntPtr(_base + offset);
System.Private.Windows.Core (22)
_generated\10\Windows.Win32.BSTR.g.cs (2)
50 public override string ToString() => this.Value != null ? Marshal.PtrToStringBSTR(new IntPtr(this.Value)) : null; 52 public static implicit operator IntPtr(BSTR value) => new IntPtr(value.Value);
_generated\100\Windows.Win32.HBITMAP.g.cs (1)
55 public static implicit operator IntPtr(HBITMAP value) => new IntPtr(value.Value);
_generated\101\Windows.Win32.HBRUSH.g.cs (1)
55 public static implicit operator IntPtr(HBRUSH value) => new IntPtr(value.Value);
_generated\102\Windows.Win32.HCURSOR.g.cs (1)
55 public static implicit operator IntPtr(HCURSOR value) => new IntPtr(value.Value);
_generated\103\Windows.Win32.HDC.g.cs (1)
55 public static implicit operator IntPtr(HDC value) => new IntPtr(value.Value);
_generated\105\Windows.Win32.HDROP.g.cs (1)
55 public static implicit operator IntPtr(HDROP value) => new IntPtr(value.Value);
_generated\106\Windows.Win32.HENHMETAFILE.g.cs (1)
55 public static implicit operator IntPtr(HENHMETAFILE value) => new IntPtr(value.Value);
_generated\107\Windows.Win32.HFONT.g.cs (1)
55 public static implicit operator IntPtr(HFONT value) => new IntPtr(value.Value);
_generated\108\Windows.Win32.HGDIOBJ.g.cs (1)
55 public static implicit operator IntPtr(HGDIOBJ value) => new IntPtr(value.Value);
_generated\109\Windows.Win32.HGLOBAL.g.cs (1)
55 public static implicit operator IntPtr(HGLOBAL value) => new IntPtr(value.Value);
_generated\110\Windows.Win32.HICON.g.cs (1)
55 public static implicit operator IntPtr(HICON value) => new IntPtr(value.Value);
_generated\113\Windows.Win32.HINSTANCE.g.cs (1)
55 public static implicit operator IntPtr(HINSTANCE value) => new IntPtr(value.Value);
_generated\114\Windows.Win32.HMETAFILE.g.cs (1)
55 public static implicit operator IntPtr(HMETAFILE value) => new IntPtr(value.Value);
_generated\115\Windows.Win32.HMODULE.g.cs (1)
55 public static implicit operator IntPtr(HMODULE value) => new IntPtr(value.Value);
_generated\116\Windows.Win32.HMONITOR.g.cs (1)
55 public static implicit operator IntPtr(HMONITOR value) => new IntPtr(value.Value);
_generated\117\Windows.Win32.HPALETTE.g.cs (1)
55 public static implicit operator IntPtr(HPALETTE value) => new IntPtr(value.Value);
_generated\118\Windows.Win32.HPEN.g.cs (1)
55 public static implicit operator IntPtr(HPEN value) => new IntPtr(value.Value);
_generated\119\Windows.Win32.HPROPSHEETPAGE.g.cs (1)
55 public static implicit operator IntPtr(HPROPSHEETPAGE value) => new IntPtr(value.Value);
_generated\121\Windows.Win32.HRGN.g.cs (1)
55 public static implicit operator IntPtr(HRGN value) => new IntPtr(value.Value);
_generated\122\Windows.Win32.HWND.g.cs (1)
55 public static implicit operator IntPtr(HWND value) => new IntPtr(value.Value);
_generated\98\Windows.Win32.HANDLE.g.cs (1)
55 public static implicit operator IntPtr(HANDLE value) => new IntPtr(value.Value);
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Interop\JavaScriptExports.CoreCLR.cs (1)
159jsExport(new IntPtr(argumentsBuffer));
System.Security.Cryptography (18)
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (6)
84hmacKeyBuffer.pvBuffer = new IntPtr(pHmacKey); 95secretPrependBuffer.pvBuffer = new IntPtr(pSecretPrepend); 106secretAppendBuffer.pvBuffer = new IntPtr(pSecretAppend); 143parameterDesc.pBuffers = new IntPtr(pParameters); 238labelBuffer.pvBuffer = new IntPtr(pLabel); 243seedBuffer.pvBuffer = new IntPtr(pSeed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AeadCommon.Windows.cs (2)
40new IntPtr(&authInfo), 85new IntPtr(&authInfo),
System\Security\Cryptography\CngKey.Create.cs (3)
144pszCreationTitle = new IntPtr(pinnedCreationTitle), 145pszFriendlyName = new IntPtr(pinnedFriendlyName), 146pszDescription = new IntPtr(pinnedDescription),
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
44Interop.Crypt32.DATA_BLOB certBlob = new Interop.Crypt32.DATA_BLOB(new IntPtr(pRawData), (uint)(loadFromFile ? 0 : rawData.Length));
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (1)
47Interop.Crypt32.DATA_BLOB blob = new Interop.Crypt32.DATA_BLOB(new IntPtr(pThumbPrint), (uint)thumbPrint.Length);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (2)
152dataBlob.pbData = new IntPtr(ppbEncoded); 262blob.pbData = new IntPtr(pExportedData);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (1)
35Interop.Crypt32.DATA_BLOB blob = new Interop.Crypt32.DATA_BLOB(new IntPtr(pRawData), (uint)(fromFile ? 0 : rawData!.Length));
System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs (1)
23Interop.Crypt32.DATA_BLOB certBlob = new Interop.Crypt32.DATA_BLOB(new IntPtr(pRawData), (uint)rawData.Length);
System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs (1)
25nameBlob.pbData = new IntPtr(pbEncoded);
System.Windows.Extensions (1)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (1)
144csc.rghDisplayStores = new IntPtr(&hSourceCertStore);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6888nint destPtr = new(infoTip->pszText);
System.Windows.Forms.Primitives (12)
_generated\100\Windows.Win32.HTASK.g.cs (1)
55 public static implicit operator IntPtr(HTASK value) => new IntPtr(value.Value);
_generated\104\Windows.Win32.HWINEVENTHOOK.g.cs (1)
57 public static implicit operator IntPtr(HWINEVENTHOOK value) => new IntPtr(value.Value);
_generated\105\Windows.Win32.HWINSTA.g.cs (1)
55 public static implicit operator IntPtr(HWINSTA value) => new IntPtr(value.Value);
_generated\429\Windows.Win32.PRINTER_HANDLE.g.cs (1)
55 public static implicit operator IntPtr(PRINTER_HANDLE value) => new IntPtr(value.Value);
_generated\44\Windows.Win32.DPI_AWARENESS_CONTEXT.g.cs (1)
55 public static implicit operator IntPtr(DPI_AWARENESS_CONTEXT value) => new IntPtr(value.Value);
_generated\76\Windows.Win32.HACCEL.g.cs (1)
55 public static implicit operator IntPtr(HACCEL value) => new IntPtr(value.Value);
_generated\78\Windows.Win32.HDESK.g.cs (1)
55 public static implicit operator IntPtr(HDESK value) => new IntPtr(value.Value);
_generated\90\Windows.Win32.HHOOK.g.cs (1)
55 public static implicit operator IntPtr(HHOOK value) => new IntPtr(value.Value);
_generated\95\Windows.Win32.HIMC.g.cs (1)
55 public static implicit operator IntPtr(HIMC value) => new IntPtr(value.Value);
_generated\97\Windows.Win32.HKEY.g.cs (1)
55 public static implicit operator IntPtr(HKEY value) => new IntPtr(value.Value);
_generated\98\Windows.Win32.HKL.g.cs (1)
55 public static implicit operator IntPtr(HKL value) => new IntPtr(value.Value);
_generated\99\Windows.Win32.HMENU.g.cs (1)
55 public static implicit operator IntPtr(HMENU value) => new IntPtr(value.Value);
UIAutomationClientSideProviders (119)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (85)
88IntPtr remoteTextArea = new IntPtr((byte*)rmem.Address.ToPointer() + cbSize); 122rmem.ReadFrom(new IntPtr((byte*)rmem.Address.ToPointer() + cbSize), new IntPtr(pchRes), new IntPtr(maxLength * sizeof(char))); 408return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 415new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 423return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 437return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType())); 443return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 449return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 465return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 472bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 484bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 505new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType())); 512new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 519new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 538new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 549new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 560new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 583new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 594new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 605new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 630return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader); 642return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader); 654return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader); 680textAddress = new IntPtr(&item.pszHeader); 685textAddress = new IntPtr(&item.pszSubsetTitle); 689return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true); 698textAddress = new IntPtr(&item32.pszHeader); 703textAddress = new IntPtr(&item32.pszSubsetTitle); 707return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true); 716textAddress = new IntPtr(&item64.pszHeader); 721textAddress = new IntPtr(&item64.pszSubsetTitle); 725return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true); 751return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 758bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 771bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 792return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 799new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 807return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 833return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 840bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 853bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 874return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 881hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), 882Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 889return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 915return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 922bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 935bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 956return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType())); 962return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 968return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 989if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo), 998if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo32), 1007if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo64), 1027return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 1034hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), 1035Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 1042return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 1068return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero); 1075bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero); 1088bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero); 1125hwnd, NativeMethods.TTM_GETTEXT, wParam, new IntPtr(&item), 1126Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true); 1133hwnd, NativeMethods.TTM_GETTEXT, wParam, new IntPtr(&item32), 1134Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength, 1142hwnd, NativeMethods.TTM_GETTEXT, wParam, new IntPtr(&item64), 1143Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true); 1183IntPtr localRectStart = new IntPtr(&rectW32.left); 1351XSend(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(group.iGroupID), new IntPtr(&group), group.cbSize, ErrorValue.NoCheck); 1399XSend(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(group.iGroupID), new IntPtr(&group), group.cbSize, ErrorValue.NoCheck); 1447XSend(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(group.iGroupID), new IntPtr(&group), group.cbSize, ErrorValue.NoCheck);
MS\Internal\AutomationProxies\Misc.cs (1)
581VirtualAlloc(new IntPtr((byte *)memAddr.ToPointer() + cbSize - pageSize), new UIntPtr(pageSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_NOACCESS);
MS\Internal\AutomationProxies\WindowsHyperlink.cs (4)
211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 276return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (5)
1269if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1420result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1429result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1493if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1792if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (3)
306XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 337bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 495bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (4)
386while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 393bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 466XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 703new IntPtr(_groupID), new IntPtr(&rect), Marshal.SizeOf(rect.GetType()));
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
77XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType()));
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
133if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType())))
MS\Internal\AutomationProxies\WindowsMenu.cs (2)
2596if (!Misc.ReadProcessMemory(hProcess, dwItemData, new IntPtr(&msaaMenuInfo), new IntPtr(readSize), out count)) 2619if (Misc.ReadProcessMemory(hProcess, msaaMenuInfo.pszWText, new IntPtr(text), new IntPtr(readSize), out count))
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 399if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 435if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
460XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 472XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
161index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 568result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 653result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 1272if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsTreeView.cs (2)
552IntPtr rectangle = new IntPtr (&(rc.left)); 1600if (!Misc.ReadProcessMemory(hProcess, pAddress, new IntPtr(&ent), new IntPtr(readSize), out count))