200 references to FreeHGlobal
mscorlib (4)
system\runtime\interopservices\marshal.cs (2)
2737
FreeHGlobal
(s);
2743
FreeHGlobal
(s);
system\security\securestring.cs (2)
573
Marshal.
FreeHGlobal
(ptr);
636
Marshal.
FreeHGlobal
(ptr);
PresentationCore (2)
Core\CSharp\System\Windows\Media\ColorTransform.cs (2)
178
Marshal.
FreeHGlobal
(paInputColors);
179
Marshal.
FreeHGlobal
(paOutputColors);
PresentationFramework (2)
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
781
Marshal.
FreeHGlobal
(unmanagedBuffer);
src\Framework\System\Windows\Documents\NLGSpellerInterop.cs (1)
287
Marshal.
FreeHGlobal
(inputArray);
System (14)
compmod\microsoft\win32\SystemEvents.cs (1)
1480
Marshal.
FreeHGlobal
(lParam);
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
702
Marshal.
FreeHGlobal
(pSocketAddressList);
net\System\Net\_SafeNetHandles.cs (1)
993
Marshal.
FreeHGlobal
(ptr);
net\System\Net\_SSPIWrapper.cs (1)
346
Marshal.
FreeHGlobal
(p);
net\System\Net\_WinHttpWebProxyDataBuilder.cs (3)
61
Marshal.
FreeHGlobal
(ieProxyConfig.Proxy);
62
Marshal.
FreeHGlobal
(ieProxyConfig.ProxyBypass);
63
Marshal.
FreeHGlobal
(ieProxyConfig.AutoConfigUrl);
net\System\Net\WinHttpWebProxyFinder.cs (2)
235
Marshal.
FreeHGlobal
(proxyInfo.Proxy);
236
Marshal.
FreeHGlobal
(proxyInfo.ProxyBypass);
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
571
Marshal.
FreeHGlobal
((IntPtr)zStreamPtr);
services\monitoring\system\diagnosticts\Process.cs (4)
2271
if (shellExecuteInfo.lpFile != (IntPtr)0) Marshal.
FreeHGlobal
(shellExecuteInfo.lpFile);
2272
if (shellExecuteInfo.lpVerb != (IntPtr)0) Marshal.
FreeHGlobal
(shellExecuteInfo.lpVerb);
2273
if (shellExecuteInfo.lpParameters != (IntPtr)0) Marshal.
FreeHGlobal
(shellExecuteInfo.lpParameters);
2274
if (shellExecuteInfo.lpDirectory != (IntPtr)0) Marshal.
FreeHGlobal
(shellExecuteInfo.lpDirectory);
System.Configuration (2)
Microsoft\Win32\SafeNativeMemoryHandle.cs (1)
43
Marshal.
FreeHGlobal
(handle);
System\Configuration\DATA_BLOB.cs (1)
29
Marshal.
FreeHGlobal
(pbData);
System.Core (13)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (12)
433
Marshal.
FreeHGlobal
(buffer);
458
if (buffer != IntPtr.Zero) Marshal.
FreeHGlobal
(buffer);
486
if (buffer != IntPtr.Zero) Marshal.
FreeHGlobal
(buffer);
519
if (buffer != IntPtr.Zero) Marshal.
FreeHGlobal
(buffer);
598
if (buffer != IntPtr.Zero) Marshal.
FreeHGlobal
(buffer);
625
Marshal.
FreeHGlobal
(buffer);
662
Marshal.
FreeHGlobal
(buffer);
814
Marshal.
FreeHGlobal
(buffer);
909
Marshal.
FreeHGlobal
(buffer);
952
Marshal.
FreeHGlobal
(buffer);
1064
Marshal.
FreeHGlobal
(buffer);
1093
Marshal.
FreeHGlobal
(buffer);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
176
Marshal.
FreeHGlobal
((System.IntPtr)m_dataBlock);
System.Data (7)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (5)
2417
Marshal.
FreeHGlobal
(pNtAuthority);
2427
Marshal.
FreeHGlobal
(pSecurityDescriptor);
2532
Marshal.
FreeHGlobal
(pSecurityAttributes);
2534
Marshal.
FreeHGlobal
(pSecurityDescriptor);
2536
Marshal.
FreeHGlobal
(pDacl);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
872
Marshal.
FreeHGlobal
(base.handle);
1021
Marshal.
FreeHGlobal
(base.handle);
System.Drawing (116)
commonui\System\Drawing\Advanced\EncoderParameter.cs (1)
89
Marshal.
FreeHGlobal
(parameterValue);
commonui\System\Drawing\Advanced\GPStream.cs (1)
90
Marshal.
FreeHGlobal
(buffer);
commonui\System\Drawing\Advanced\GraphicsPath.cs (26)
115
Marshal.
FreeHGlobal
(ptbuf);
116
Marshal.
FreeHGlobal
(typebuf);
166
Marshal.
FreeHGlobal
(ptbuf);
167
Marshal.
FreeHGlobal
(typebuf);
332
Marshal.
FreeHGlobal
(memoryPathData);
333
Marshal.
FreeHGlobal
(memoryPoints);
717
Marshal.
FreeHGlobal
(buf);
761
Marshal.
FreeHGlobal
(buf);
868
Marshal.
FreeHGlobal
(buf);
915
Marshal.
FreeHGlobal
(buf);
940
Marshal.
FreeHGlobal
(buf);
958
Marshal.
FreeHGlobal
(buf);
980
Marshal.
FreeHGlobal
(buf);
1001
Marshal.
FreeHGlobal
(buf);
1021
Marshal.
FreeHGlobal
(buf);
1043
Marshal.
FreeHGlobal
(buf);
1064
Marshal.
FreeHGlobal
(buf);
1084
Marshal.
FreeHGlobal
(buf);
1105
Marshal.
FreeHGlobal
(buf);
1125
Marshal.
FreeHGlobal
(buf);
1157
Marshal.
FreeHGlobal
(buf);
1191
Marshal.
FreeHGlobal
(buf);
1310
Marshal.
FreeHGlobal
(buf);
1328
Marshal.
FreeHGlobal
(buf);
1663
Marshal.
FreeHGlobal
(buf);
1734
Marshal.
FreeHGlobal
(buf);
commonui\System\Drawing\Advanced\GraphicsPathIterator.cs (2)
290
Marshal.
FreeHGlobal
(memoryPts);
332
Marshal.
FreeHGlobal
(memoryPts);
commonui\System\Drawing\Advanced\ImageAttributes.cs (2)
641
Marshal.
FreeHGlobal
(memory);
741
Marshal.
FreeHGlobal
(memory);
commonui\System\Drawing\Advanced\ImageCodecInfo.cs (2)
173
Marshal.
FreeHGlobal
(memory);
206
Marshal.
FreeHGlobal
(memory);
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (8)
443
Marshal.
FreeHGlobal
(factors);
446
Marshal.
FreeHGlobal
(positions);
480
Marshal.
FreeHGlobal
(factors);
483
Marshal.
FreeHGlobal
(positions);
608
Marshal.
FreeHGlobal
(colors);
611
Marshal.
FreeHGlobal
(positions);
679
Marshal.
FreeHGlobal
(colors);
682
Marshal.
FreeHGlobal
(positions);
commonui\System\Drawing\Advanced\Matrix.cs (7)
103
Marshal.
FreeHGlobal
(buf);
138
Marshal.
FreeHGlobal
(buf);
208
Marshal.
FreeHGlobal
(buf);
456
Marshal.
FreeHGlobal
(buf);
489
Marshal.
FreeHGlobal
(buf);
521
Marshal.
FreeHGlobal
(buf);
562
Marshal.
FreeHGlobal
(buf);
commonui\System\Drawing\Advanced\Metafile.cs (3)
845
Marshal.
FreeHGlobal
(memory);
892
Marshal.
FreeHGlobal
(memory);
939
Marshal.
FreeHGlobal
(memory);
commonui\System\Drawing\Advanced\PathGradientBrush.cs (10)
84
Marshal.
FreeHGlobal
(pointsBuf);
144
Marshal.
FreeHGlobal
(pointsBuf);
400
Marshal.
FreeHGlobal
(factors);
403
Marshal.
FreeHGlobal
(positions);
437
Marshal.
FreeHGlobal
(factors);
440
Marshal.
FreeHGlobal
(positions);
571
Marshal.
FreeHGlobal
(colors);
574
Marshal.
FreeHGlobal
(positions);
613
Marshal.
FreeHGlobal
(colors);
616
Marshal.
FreeHGlobal
(positions);
commonui\System\Drawing\Bitmap.cs (1)
382
Marshal.
FreeHGlobal
(name);
commonui\System\Drawing\Graphics.cs (37)
1082
Marshal.
FreeHGlobal
(buf);
1114
Marshal.
FreeHGlobal
(buf);
1191
Marshal.
FreeHGlobal
(buf);
1247
Marshal.
FreeHGlobal
(buf);
1363
Marshal.
FreeHGlobal
(buf);
1399
Marshal.
FreeHGlobal
(buf);
1476
Marshal.
FreeHGlobal
(buf);
1503
Marshal.
FreeHGlobal
(buf);
1651
Marshal.
FreeHGlobal
(buf);
1676
Marshal.
FreeHGlobal
(buf);
1723
Marshal.
FreeHGlobal
(buf);
1749
Marshal.
FreeHGlobal
(buf);
1785
Marshal.
FreeHGlobal
(buf);
1811
Marshal.
FreeHGlobal
(buf);
1836
Marshal.
FreeHGlobal
(buf);
1863
Marshal.
FreeHGlobal
(buf);
1890
Marshal.
FreeHGlobal
(buf);
1916
Marshal.
FreeHGlobal
(buf);
1942
Marshal.
FreeHGlobal
(buf);
1967
Marshal.
FreeHGlobal
(buf);
2066
Marshal.
FreeHGlobal
(buf);
2093
Marshal.
FreeHGlobal
(buf);
2130
Marshal.
FreeHGlobal
(buf);
2166
Marshal.
FreeHGlobal
(buf);
2325
Marshal.
FreeHGlobal
(buf);
2360
Marshal.
FreeHGlobal
(buf);
2386
Marshal.
FreeHGlobal
(buf);
2418
Marshal.
FreeHGlobal
(buf);
2943
Marshal.
FreeHGlobal
(buf);
2976
Marshal.
FreeHGlobal
(buf);
3146
Marshal.
FreeHGlobal
(buf);
3204
Marshal.
FreeHGlobal
(buf);
3270
Marshal.
FreeHGlobal
(buf);
3567
Marshal.
FreeHGlobal
(points);
3613
Marshal.
FreeHGlobal
(points);
3849
Marshal.
FreeHGlobal
(buffer);
3911
Marshal.
FreeHGlobal
(buffer);
commonui\System\Drawing\Image.cs (11)
556
Marshal.
FreeHGlobal
(buffer);
636
Marshal.
FreeHGlobal
(encoderParamsMemory);
724
Marshal.
FreeHGlobal
(encoderParamsMemory);
751
Marshal.
FreeHGlobal
(encoder);
780
Marshal.
FreeHGlobal
(encoder);
1005
Marshal.
FreeHGlobal
(memory);
1017
Marshal.
FreeHGlobal
(memory);
1094
Marshal.
FreeHGlobal
(buffer);
1106
Marshal.
FreeHGlobal
(buffer);
1228
Marshal.
FreeHGlobal
(propdata);
1300
Marshal.
FreeHGlobal
(propdata);
commonui\System\Drawing\Pen.cs (2)
1018
Marshal.
FreeHGlobal
(buf);
1048
Marshal.
FreeHGlobal
(buf);
commonui\System\Drawing\PropertyItemInternal.cs (1)
38
Marshal.
FreeHGlobal
(value);
commonui\System\Drawing\Region.cs (1)
1024
Marshal.
FreeHGlobal
(memoryRects);
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
271
Marshal.
FreeHGlobal
(buffer);
System.IdentityModel (1)
System\IdentityModel\SspiSafeHandles.cs (1)
1403
Marshal.
FreeHGlobal
(handle);
System.IdentityModel.Selectors (1)
infocard\common\managed\HGlobalSafeHandle.cs (1)
83
Marshal.
FreeHGlobal
(base.handle);
System.Management (3)
InteropClasses\WMIInterop.cs (1)
103
Marshal.
FreeHGlobal
(hGlobal);
managementobject.cs (2)
1543
Marshal.
FreeHGlobal
(ppwbemCallResult);
1846
Marshal.
FreeHGlobal
(ppwbemCallResult);
System.Messaging (5)
System\Messaging\AccessControlList.cs (1)
176
Marshal.
FreeHGlobal
(entries[i].data);
System\Messaging\ActiveXMessageFormatter.cs (1)
471
Marshal.
FreeHGlobal
(buffer);
System\Messaging\Interop\Columns.cs (1)
59
Marshal.
FreeHGlobal
(this.columnIdentifiers);
System\Messaging\Interop\Restrictions.cs (2)
105
Marshal.
FreeHGlobal
(data);
109
Marshal.
FreeHGlobal
(this.restrinctions);
System.Net (3)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (1)
145
Marshal.
FreeHGlobal
(handle);
net\PeerToPeer\PeerNameRegistration.cs (2)
419
Marshal.
FreeHGlobal
(pSocketAddrList);
600
Marshal.
FreeHGlobal
(pSocketAddrList);
System.ServiceModel (2)
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
271
Marshal.
FreeHGlobal
(this.handle);
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
335
Marshal.
FreeHGlobal
(handle);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (1)
35
Marshal.
FreeHGlobal
(handle);
System.Web (1)
AspNetEventSource.cs (1)
233
Marshal.
FreeHGlobal
(PtrToNullChar);
System.Windows.Forms (22)
winforms\Managed\System\WinForms\Control.cs (1)
16941
Marshal.
FreeHGlobal
(accelBlob);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (3)
313
Marshal.
FreeHGlobal
(pszSelectedPath);
317
Marshal.
FreeHGlobal
(pszDisplayName);
352
Marshal.
FreeHGlobal
(pszSelectedPath);
winforms\Managed\System\WinForms\ListView.cs (6)
2906
Marshal.
FreeHGlobal
(lvgroup.pszHeader);
3912
Marshal.
FreeHGlobal
(hGlobalColumns);
3974
Marshal.
FreeHGlobal
(hGlobalColumns);
4611
Marshal.
FreeHGlobal
(prc);
4614
Marshal.
FreeHGlobal
(pwpos);
4897
Marshal.
FreeHGlobal
(lvColumn.pszText);
winforms\Managed\System\WinForms\MenuItem.cs (1)
1068
Marshal.
FreeHGlobal
(msaaMenuInfoPtr);
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
1388
Marshal.
FreeHGlobal
(mdsBuffer);
1930
Marshal.
FreeHGlobal
(mdsBuffer);
winforms\Managed\System\WinForms\ToolBar.cs (2)
1240
Marshal.
FreeHGlobal
(tbbi.pszText);
1407
Marshal.
FreeHGlobal
(ptbbuttons);
winforms\Managed\System\WinForms\ToolTip.cs (4)
989
Marshal.
FreeHGlobal
(tool.lpszText);
1482
Marshal.
FreeHGlobal
(toolInfo.lpszText);
2044
Marshal.
FreeHGlobal
(ti.lpszText);
2079
Marshal.
FreeHGlobal
(toolInfo.lpszText);
winforms\Managed\System\WinForms\TreeNode.cs (2)
1725
Marshal.
FreeHGlobal
(tvis.item_pszText);
1946
Marshal.
FreeHGlobal
(item.pszText);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
6674
Marshal.
FreeHGlobal
(buffer);
WindowsBase (1)
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
571
Marshal.
FreeHGlobal
((IntPtr)zStreamPtr);