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