51 references to PtrToStructure
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.cs (1)
333
return Marshal.
PtrToStructure
<HTTP_REQUEST_PROPERTY_SNI>((IntPtr)pBuffer);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
218
tlsCopy = Marshal.
PtrToStructure
<HTTP_SSL_PROTOCOL_INFO>((IntPtr)handle.Pointer);
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.cs (1)
433
return statusCode == NativeMethods.HR_OK ? Marshal.
PtrToStructure
<HTTP_REQUEST_PROPERTY_SNI>((IntPtr)pBuffer) : default;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Windows\Network\WindowsTcpStateInfo.cs (4)
155
var rawTcpTable = Marshal.
PtrToStructure
<MIB_TCPTABLE>(tcpTable);
162
var row = Marshal.
PtrToStructure
<MIB_TCPROW>(rowPtr);
180
var rawtcpTable = Marshal.
PtrToStructure
<MIB_TCP6TABLE>(tcpTable);
187
var row = Marshal.
PtrToStructure
<MIB_TCP6ROW>(rowPtr);
PresentationCore (7)
System\Windows\DpiChangedEventArgs.cs (1)
48
NativeMethods.RECT suggestedRect = Marshal.
PtrToStructure
<NativeMethods.RECT>(lParam);
System\Windows\Input\InputProcessorProfiles.cs (1)
156
short langid = Marshal.
PtrToStructure
<short>((IntPtr)((Int64)langids + sizeof(short) * i));
System\Windows\InterOp\HwndSource.cs (1)
1347
NativeMethods.WINDOWPOS windowPos = Marshal.
PtrToStructure
<NativeMethods.WINDOWPOS>(lParam);
System\Windows\InterOp\HwndTarget.cs (2)
877
Marshal.
PtrToStructure
<NativeMethods.RECT>(lParam);
1865
NativeMethods.WINDOWPOS windowPos = Marshal.
PtrToStructure
<NativeMethods.WINDOWPOS>(lParam);
System\Windows\Media\ImageSourceConverter.cs (1)
239
OBJECTHEADER pHeader = Marshal.
PtrToStructure
<OBJECTHEADER>(addr);
System\Windows\Media\Imaging\BitmapSource.cs (1)
1791
rc = Marshal.
PtrToStructure
<Int32Rect>(prc);
PresentationFramework (25)
MS\Internal\Printing\PrintDlgExMarshaler.cs (9)
235
NativeMethods.PRINTDLGEX32 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
243
NativeMethods.PRINTDLGEX64 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
257
NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.
PtrToStructure
<NativeMethods.PRINTPAGERANGE>(pageRangePtr);
276
NativeMethods.DEVNAMES devNames = Marshal.
PtrToStructure
<NativeMethods.DEVNAMES>(pDevNames);
369
NativeMethods.DEVMODE devMode = Marshal.
PtrToStructure
<NativeMethods.DEVMODE>(pDevMode);
415
NativeMethods.PRINTDLGEX32 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
420
NativeMethods.PRINTDLGEX64 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
655
NativeMethods.PRINTDLGEX32 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
662
NativeMethods.PRINTDLGEX64 pdex = Marshal.
PtrToStructure
<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (5)
130
releaseDelegate = Marshal.
PtrToStructure
<IUnknownVftbl>(Marshal.
PtrToStructure
<VftblPtr>(ThisPtr).Vftbl).Release;
206
var vftblPtr = Marshal.
PtrToStructure
<VftblPtr>(thisPtr);
207
var vftblIUnknown = Marshal.
PtrToStructure
<IUnknownVftbl>(vftblPtr.Vftbl);
215
vftblT = Marshal.
PtrToStructure
<T>(vftblPtr.Vftbl);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (4)
102
var vftblPtr = Marshal.
PtrToStructure
<VftblPtr>(thisPtr);
104
IInspectableVftbl = Marshal.
PtrToStructure
<IInspectable.Vftbl>(vftblPtr.Vftbl);
428
var vftblPtr = Marshal.
PtrToStructure
<VftblPtr>(thisPtr);
430
IInspectableVftbl = Marshal.
PtrToStructure
<IInspectable.Vftbl>(vftblPtr.Vftbl);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
218
var vftblPtr = Marshal.
PtrToStructure
<VftblPtr>(thisPtr);
220
IInspectableVftbl = Marshal.
PtrToStructure
<IInspectable.Vftbl>(vftblPtr.Vftbl);
System\Windows\Documents\ImmComposition.cs (2)
1339
NativeMethods.RECONVERTSTRING reconv = Marshal.
PtrToStructure
<NativeMethods.RECONVERTSTRING>(lParam);
1501
NativeMethods.RECONVERTSTRING reconv = Marshal.
PtrToStructure
<NativeMethods.RECONVERTSTRING>(lParam);
System\Windows\Shell\WindowChromeWorker.cs (2)
413
var rcClientArea = Marshal.
PtrToStructure
<RECT>(lParam);
576
var wp = Marshal.
PtrToStructure
<WINDOWPOS>(lParam);
System\Windows\Standard\MessageWindow.cs (1)
148
var createStruct = Marshal.
PtrToStructure
<CREATESTRUCT>(lParam);
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
333
_dsObjectNames = Marshal.
PtrToStructure
<UnsafeNativeMethods.DsObjectNames>(_ptrToDsObjectNames);
455
UnsafeNativeMethods.DsObject dsObject = Marshal.
PtrToStructure
<UnsafeNativeMethods.DsObject>(offset);
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreApi.cs (7)
638
UiaEventArgs args = Marshal.
PtrToStructure
<UiaEventArgs>(argsAddr);
656
UiaPropertyChangedEventArgs pcargs = Marshal.
PtrToStructure
<UiaPropertyChangedEventArgs>(argsAddr);
670
UiaStructureChangedEventArgs scargs = Marshal.
PtrToStructure
<UiaStructureChangedEventArgs>(argsAddr);
677
UiaAsyncContentLoadedEventArgs aclargs = Marshal.
PtrToStructure
<UiaAsyncContentLoadedEventArgs>(argsAddr);
683
UiaWindowClosedEventArgs wcargs = Marshal.
PtrToStructure
<UiaWindowClosedEventArgs>(argsAddr);
690
UiaNotificationEventArgs nargs = Marshal.
PtrToStructure
<UiaNotificationEventArgs>(argsAddr);
697
UiaActiveTextPositionChangedEventArgs atpcargs = Marshal.
PtrToStructure
<UiaActiveTextPositionChangedEventArgs>(argsAddr);
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (2)
2145
VARIANT varStruct = Marshal.
PtrToStructure
<VARIANT>(val);
2149
Guid guid = Marshal.
PtrToStructure
<Guid>(val);
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
84
RECT suggestedRect = Marshal.
PtrToStructure
<RECT>(m.LParam);