70 references to AllocCoTaskMem
mscorlib (15)
system\deployment\isolationinterop.cs (5)
1302IntPtr Reference = Marshal.AllocCoTaskMem(Marshal.SizeOf(this)); 1624IntPtr retval = Marshal.AllocCoTaskMem(iSlotSize * Props.Length); 2513txnList[i].Data.DataPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(o)); 2743IntPtr p = Marshal.AllocCoTaskMem(Marshal.SizeOf(this)); 2789IntPtr p = Marshal.AllocCoTaskMem(Marshal.SizeOf(this));
system\security\securestring.cs (2)
546ptr = Marshal.AllocCoTaskMem((length + 1) * 2); 614ptr = Marshal.AllocCoTaskMem(byteCount);
system\stubhelpers.cs (8)
87pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(nb + 1); 102pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(nb + 2); 163pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(nb + 1); 383pNative = (byte*)Marshal.AllocCoTaskMem(nbytes); 1117pNativeHome = Marshal.AllocCoTaskMem(allocSize); 1151pNativeHome = Marshal.AllocCoTaskMem(allocSize); 1187pNativeHome = Marshal.AllocCoTaskMem(allocSize); 1219IntPtr pNativeHome = Marshal.AllocCoTaskMem(allocSize);
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
633packetDescription.pPacketProperties = Marshal.AllocCoTaskMem(allocationSize); 650packets = Marshal.AllocCoTaskMem(countOfBytes);
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (3)
177destPtr = Marshal.AllocCoTaskMem((int) size); 233destPtr = Marshal.AllocCoTaskMem((int)size); 439pclsidVal = Marshal.AllocCoTaskMem(guid.Length);
PresentationFramework (4)
src\Framework\MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
246pNative = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(PROPVARIANT)));
src\Framework\System\Windows\Documents\InputScopeAttribute.cs (3)
78ppinputscopes = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(Int32)) * count); 93ppinputscopes = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(Int32)) * 1); 111ppbstrPhrases = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(IntPtr))*count);
System.Core (2)
System\Security\Cryptography\BCryptHashAlgorithm.cs (1)
135hashObjectBuffer = Marshal.AllocCoTaskMem(hashObjectSize);
System\Security\Cryptography\CapiNative.cs (1)
678buffer = Marshal.AllocCoTaskMem(bufferSize);
System.Drawing (7)
commonui\System\Drawing\Printing\PrinterSettings.cs (7)
243IntPtr buffer = Marshal.AllocCoTaskMem(bufferSize); 1188IntPtr namesBuffer = Marshal.AllocCoTaskMem(checked(stringSize * count)); 1193IntPtr kindsBuffer = Marshal.AllocCoTaskMem(2 * count); 1198IntPtr dimensionsBuffer = Marshal.AllocCoTaskMem(8 * count); 1234IntPtr namesBuffer = Marshal.AllocCoTaskMem(checked(stringSize * count)); 1239IntPtr kindsBuffer = Marshal.AllocCoTaskMem(2 * count); 1283IntPtr buffer = Marshal.AllocCoTaskMem(checked(8 * count));
System.Web (6)
Configuration\RemoteWebConfigurationHost.cs (6)
508guidbuf = Marshal.AllocCoTaskMem(16); 513ciptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(ci)); 517captr = Marshal.AllocCoTaskMem(Marshal.SizeOf(ca)); 568guidbuf = Marshal.AllocCoTaskMem(16); 573ciptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(ci)); 577captr = Marshal.AllocCoTaskMem(Marshal.SizeOf(ca));
System.Windows.Forms (16)
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (6)
1317IntPtr Reference = Marshal.AllocCoTaskMem(Marshal.SizeOf(this)); 1639IntPtr retval = Marshal.AllocCoTaskMem(iSlotSize * Props.Length); 2529txnList[i].Data.DataPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(o)); 2759IntPtr p = Marshal.AllocCoTaskMem(Marshal.SizeOf(this)); 2782IntPtr p = Marshal.AllocCoTaskMem(Marshal.SizeOf(this)); 2805IntPtr p = Marshal.AllocCoTaskMem(Marshal.SizeOf(this));
winforms\Managed\System\WinForms\ColorDialog.cs (1)
282IntPtr custColorPtr = Marshal.AllocCoTaskMem(64);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
1242IntPtr mem = Marshal.AllocCoTaskMem( 16 /*Marshal.SizeOf(typeof(VARIANT)) */);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
177IntPtr address = Marshal.AllocCoTaskMem(Marshal.SizeOf(header) + entryCount*4);
winforms\Managed\System\WinForms\FontDialog.cs (1)
577logFontPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(NativeMethods.LOGFONT)));
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
816IntPtr mem = Marshal.AllocCoTaskMem(len * VariantSize);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4394IntPtr mem = Marshal.AllocCoTaskMem(16);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
738IntPtr allocatedStringBuffer = Marshal.AllocCoTaskMem(info.cch * Marshal.SystemDefaultCharSize);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (3)
1670pBytes = Marshal.AllocCoTaskMem(regionDataSize); 6544IntPtr result = Marshal.AllocCoTaskMem(buffer.Length); 6590IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2);
System.Workflow.ComponentModel (3)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
855typeRefNamePtr = Marshal.AllocCoTaskMem((int)(2 * (typeRefNameLength + 1))); 886assemblyName = Marshal.AllocCoTaskMem((int)(2 * (assemblyNameSize + 1))); 889assemblyMetadata.locale = Marshal.AllocCoTaskMem((int)(2 * (assemblyMetadata.localeSize + 1)));
System.Workflow.Runtime (3)
DebugEngine\DebugController.cs (3)
144securityDescriptorPtr = Marshal.AllocCoTaskMem((int)returnLength); 188securityDescriptorPtr = Marshal.AllocCoTaskMem((int)returnLength); 202securityDescriptorPtr = Marshal.AllocCoTaskMem(rawSecurityDescriptor.BinaryLength);
UIAutomationClient (3)
MS\Internal\Automation\UiaCoreAPI.cs (1)
153IntPtr dataStart = Marshal.AllocCoTaskMem((properties.Length + patterns.Length) * sizeof(int));
System\Windows\Automation\Condition.cs (2)
60IntPtr mem = Marshal.AllocCoTaskMem(size); 80IntPtr mem = Marshal.AllocCoTaskMem(conditions.Length * intPtrSize);
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (1)
32SetHandle(Marshal.AllocCoTaskMem(length * sizeof (char)));
WindowsBase (5)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
742pszVal = Marshal.AllocCoTaskMem(checked(nLen + 1)); //The extra one byte is for the string terminator null.
Shared\MS\Win32\NativeMethodsCLR.cs (3)
4702IntPtr mem = Marshal.AllocCoTaskMem(16); 6184IntPtr result = Marshal.AllocCoTaskMem(buffer.Length); 6248IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2);
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
4053mem = Marshal.AllocCoTaskMem(len * VariantSize);