67 references to ToPointer
mscorlib (24)
microsoft\win32\registrykey.cs (2)
1527*(char*)(currentPtr.ToPointer()) = '\0'; 1531*(char*)(currentPtr.ToPointer()) = '\0';
system\reflection\fieldinfo.cs (1)
947m_fieldType = new Signature(fieldMarshal.Signature.ToPointer(),
system\reflection\mdimport.cs (1)
188return ((byte*)m_constArray.ToPointer())[index];
system\reflection\module.cs (3)
716if (*(MdSigCallingConvention*)sig.Signature.ToPointer() == MdSigCallingConvention.Field) 801if (*(MdSigCallingConvention*)sig.Signature.ToPointer() != MdSigCallingConvention.Field) 893if (*(MdSigCallingConvention*)sig.Signature.ToPointer() == MdSigCallingConvention.Field)
system\reflection\pointer.cs (1)
35_ptr = ((IntPtr)(info.GetValue("_ptr", typeof(IntPtr)))).ToPointer();
system\reflection\propertyinfo.cs (1)
264m_signature = new Signature(sig.Signature.ToPointer(), (int)sig.Length, m_declaringType);
system\reflection\strongnamekeypair.cs (1)
165Buffer.Memcpy(publicKey, 0, (byte*)(pbPublicKey.ToPointer()), 0, cbPublicKey);
system\runtimehandles.cs (1)
69int* arModifiers = (int*)pModifiers.ToPointer();
system\security\securestring.cs (4)
502Buffer.Memcpy((byte*) ptr.ToPointer(), bufferPtr, length *2); 556Buffer.Memcpy((byte*) ptr.ToPointer(), bufferPtr, length *2); 557char * endptr = (char *) ptr.ToPointer(); 622GetAnsiBytes((byte *)ptr.ToPointer(), byteCount);
system\stubhelpers.cs (8)
277*((uint *)pNativeBuffer.ToPointer()) = lengthInBytes; 279ptrToFirstChar = (byte *)pNativeBuffer.ToPointer() + 4; 285ptrToFirstChar = (byte *)Win32Native.SysAllocStringByteLen(null, lengthInBytes).ToPointer(); 346ret.SetTrailByte(((byte *)bstr.ToPointer())[length - 1]); 1224StubHelpers.FmtClassUpdateNativeInternal(pManagedHome, (byte *)pNativeHome.ToPointer(), ref cleanupWorkList); 1299StubHelpers.FmtClassUpdateCLRInternal(pManagedHome, (byte *)pNativeHome.ToPointer()); 1305sbyte* ptr = (sbyte*)pNativeHome.ToPointer(); 1312char* ptr = (char*)pNativeHome.ToPointer();
system\text\stringbuilder.cs (1)
1890byte* dstPtr = (byte*) dest.ToPointer();
PresentationCore (12)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
635(MS.Win32.Recognizer.PACKET_PROPERTY*)(packetDescription.pPacketProperties.ToPointer()); 670(MS.Win32.Recognizer.PACKET_PROPERTY*)( pd.pPacketProperties.ToPointer( ) );
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (1)
127(ushort*)ptext.ToPointer(),
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
786data.hEvent = (ulong)hDuplicate.ToPointer(); 876data.pInteropDeviceBitmap = (ulong)_pInteropDeviceBitmap.DangerousGetHandle().ToPointer(); 893data.pSoftwareBitmap = (ulong)_softwareCopy.WicSourceHandle.DangerousGetHandle().ToPointer();
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
1093byte* pDest = (byte*)_backBuffer.ToPointer(); 1097byte* pSource = (byte*)sourceBuffer.ToPointer(); 1442command.SwDoubleBufferedBitmap = (UInt64) _pDoubleBufferedBitmap.DangerousGetHandle().ToPointer();
Graphics\include\exports.cs (1)
2484UIntPtr hWndUIntPtr = new UIntPtr(hWnd.ToPointer());
Shared\MS\Internal\CharacterBuffer.cs (2)
241return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset); 356return new IntPtr(((char*)gcHandle.AddrOfPinnedObject().ToPointer()) + offset);
PresentationFramework (1)
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
1542byte* p = (byte*)reconv.ToPointer();
System (5)
compmod\microsoft\win32\SafeNativeMethods.cs (1)
176return Interlocked.CompareExchange(ref *(int *)pDestination.ToPointer(), exchange, compare);
compmod\System\Runtime\InteropServices\StandardOleMarshalObject.cs (4)
82IntPtr vtable = *(IntPtr*)pStandardMarshal.ToPointer(); 83IntPtr method = *((IntPtr*)vtable.ToPointer() + 4); // GetMarshalSizeMax is 4th slot 105IntPtr vtable = *(IntPtr *)pStandardMarshal.ToPointer(); 106IntPtr method = *((IntPtr *)vtable.ToPointer() + 5); // GetMarshalSizeMax is 5th slot
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
990IntPtr pBase = new IntPtr((byte*)handle.ToPointer() + offset);
System.Data (2)
fx\src\data\System\Data\Common\SafeNativeMethods.cs (2)
59IntPtr actualPtr = *(IntPtr *)lpAddress.ToPointer(); 63actualPtr = Interlocked.CompareExchange(ref *(IntPtr *)lpAddress.ToPointer(), lpValue, previousPtr);
System.Drawing (2)
commonui\System\Drawing\Icon.cs (2)
928byte* candidate = unchecked(((byte*)bmpData.Scan0.ToPointer()) + (i * bmpData.Stride) + j); 976uint * pixelPtr = (uint*)bmpdata.Scan0.ToPointer();
System.IdentityModel (1)
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
230KERB_CERTIFICATE_S4U_LOGON* pInfo = (KERB_CERTIFICATE_S4U_LOGON*)pLogonInfo.DangerousGetHandle().ToPointer();
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (1)
66pos = new IntPtr((long)(((ulong)pos.ToPointer()) + (ulong)elementSize));
System.ServiceModel (2)
System\ServiceModel\Channels\ChannelBindingUtility.cs (2)
243byte* sourceBuffer = (byte*)source.DangerousGetHandle().ToPointer(); 244byte* destinationBuffer = (byte*)this.handle.ToPointer();
System.Web (9)
Hosting\IIS7WorkerRequest.cs (8)
2097int * indices = (int*) diffIndices.ToPointer(); 2098IntPtr * snapshotNames = (IntPtr *) names.ToPointer(); 2099IntPtr * snapshotValues = (IntPtr *) values.ToPointer(); 2139int * knownIndices = (int*) diffKnownIndices.ToPointer(); 2140IntPtr * snapshot = (IntPtr *) knownHeaderSnapshot.ToPointer(); 2201int * unknownIndices = (int*) diffUnknownIndices.ToPointer(); 2202IntPtr * snapshotNames = (IntPtr *) unknownHeaderSnapshotNames.ToPointer(); 2203IntPtr * snapshotValues = (IntPtr *) unknownHeaderSnapshotValues.ToPointer();
HttpWriter.cs (1)
341byte * p = (byte*) _data.ToPointer();
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ImageList.cs (1)
671byte* candidate = ((byte*)bmpData.Scan0.ToPointer()) + offsetRow + j;
UIAutomationClientsideProviders (6)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (4)
97IntPtr remoteTextArea = new IntPtr((byte*)rmem.Address.ToPointer() + cbSize); 104*(int*)((byte*)pszText.ToPointer()) = rmem.Address.ToInt32() + cbSize; 108*(IntPtr*)((byte*)pszText.ToPointer()) = remoteTextArea; 131rmem.ReadFrom(new IntPtr((byte*)rmem.Address.ToPointer() + cbSize), new IntPtr(pchRes), new IntPtr(maxLength * sizeof(char)));
MS\Internal\AutomationProxies\Misc.cs (2)
598VirtualAlloc(new IntPtr((byte *)memAddr.ToPointer() + cbSize - pageSize), new UIntPtr(pageSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_NOACCESS); 606String str = new string((char*)memAddr.ToPointer(), 0, maxLength);