14 references to PtrToStructure
System.Windows.Forms (14)
winforms\Managed\System\WinForms\Control.cs (1)
16565
NativeMethods.MSG msg = (NativeMethods.MSG)UnsafeNativeMethods.
PtrToStructure
(lpmsg, typeof(NativeMethods.MSG));
winforms\Managed\System\WinForms\FileDialog.cs (3)
618
NativeMethods.OPENFILENAME_I ofn = (NativeMethods.OPENFILENAME_I)UnsafeNativeMethods.
PtrToStructure
(lpOFN, typeof(NativeMethods.OPENFILENAME_I));
751
UnsafeNativeMethods.OFNOTIFY notify = (UnsafeNativeMethods.OFNOTIFY)UnsafeNativeMethods.
PtrToStructure
(lparam, typeof(UnsafeNativeMethods.OFNOTIFY));
758
NativeMethods.OPENFILENAME_I ofn = (NativeMethods.OPENFILENAME_I)UnsafeNativeMethods.
PtrToStructure
(notify.lpOFN, typeof(NativeMethods.OPENFILENAME_I));
winforms\Managed\System\WinForms\FontDialog.cs (1)
614
lfReturned = (NativeMethods.LOGFONT)UnsafeNativeMethods.
PtrToStructure
(logFontPtr, typeof(NativeMethods.LOGFONT));
winforms\Managed\System\WinForms\ListView.cs (2)
5552
NativeMethods.HDITEM2 hdItem = (NativeMethods.HDITEM2) UnsafeNativeMethods.
PtrToStructure
((IntPtr) nmheader.pItem, typeof(NativeMethods.HDITEM2));
5656
NativeMethods.HDITEM2 hdItem = (NativeMethods.HDITEM2) UnsafeNativeMethods.
PtrToStructure
((IntPtr) header.pItem, typeof(NativeMethods.HDITEM2));
winforms\Managed\System\WinForms\Message.cs (1)
90
return UnsafeNativeMethods.
PtrToStructure
(lparam, cls);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
4514
VARIANT varStruct = (VARIANT)UnsafeNativeMethods.
PtrToStructure
(val, typeof(VARIANT));
4518
Guid guid =(Guid)UnsafeNativeMethods.
PtrToStructure
(val, typeof(Guid));
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4804
NativeMethods.COPYDATASTRUCT cds = (NativeMethods.COPYDATASTRUCT)UnsafeNativeMethods.
PtrToStructure
(lparam, typeof(NativeMethods.COPYDATASTRUCT));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
7173
NativeMethods.MOUSEHOOKSTRUCT mhs = (NativeMethods.MOUSEHOOKSTRUCT)UnsafeNativeMethods.
PtrToStructure
(lparam, typeof(NativeMethods.MOUSEHOOKSTRUCT));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3501
NativeMethods.CHARFORMATA charFormat = (NativeMethods.CHARFORMATA)UnsafeNativeMethods.
PtrToStructure
(enprotected.lParam, typeof(NativeMethods.CHARFORMATA));
winforms\Managed\System\WinForms\SendKeys.cs (1)
1061
NativeMethods.EVENTMSG eventmsg = (NativeMethods.EVENTMSG)UnsafeNativeMethods.
PtrToStructure
(lparam, typeof(NativeMethods.EVENTMSG));