2 writes to msaaMenuInfoPtr
System.Windows.Forms (2)
winforms\Managed\System\WinForms\MenuItem.cs (2)
1049
msaaMenuInfoPtr
= Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MsaaMenuInfoWithId)));
1069
msaaMenuInfoPtr
= IntPtr.Zero;
7 references to msaaMenuInfoPtr
System.Windows.Forms (7)
winforms\Managed\System\WinForms\MenuItem.cs (7)
1054
Debug.Assert(((uint) (ulong)
msaaMenuInfoPtr
) < firstUniqueID); // ...check for incursion into menu item ID range (unlikely!)
1058
Marshal.StructureToPtr(msaaMenuInfoStruct,
msaaMenuInfoPtr
, false);
1059
Debug.Assert(
msaaMenuInfoPtr
!= IntPtr.Zero);
1060
return
msaaMenuInfoPtr
;
1066
if (
msaaMenuInfoPtr
!= IntPtr.Zero) {
1067
Marshal.DestroyStructure(
msaaMenuInfoPtr
, typeof(MsaaMenuInfoWithId));
1068
Marshal.FreeHGlobal(
msaaMenuInfoPtr
);