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