22 references to LocalAlloc
System (22)
security\system\security\cryptography\cryptoapi.cs (7)
2807
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbDecoded));
2850
pbDecoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbDecoded));
2885
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbEncoded));
2922
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbEncoded));
2968
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(2 * cchCount));
3149
pbFormat = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbFormat));
3199
pbFormat = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbFormat));
security\system\security\cryptography\x509\x500Name.cs (1)
94
using (SafeLocalAllocHandle pwszDecodeName = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(2 * cchDecoded))) {
security\system\security\cryptography\x509\x509certificate2.cs (4)
617
ptr = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))));
659
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbData));
1207
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbData));
1401
ptr = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_KEY_PROV_INFO))));
security\system\security\cryptography\x509\x509certificate2collection.cs (5)
323
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbEncoded));
342
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(DataBlob.cbData));
369
pbEncoded = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(DataBlob.cbData));
903
rghOIDs = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbOIDs));
1033
ptr = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(cbData));
security\system\security\cryptography\x509\x509extension.cs (1)
489
publicKeyInfo = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr(cbPublicKeyInfo));
security\system\security\cryptography\x509\x509utils.cs (4)
271
SafeLocalAllocHandle pb = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(managed.Length));
318
SafeLocalAllocHandle pb = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
329
SafeLocalAllocHandle pb = CAPI.
LocalAlloc
(CAPI.LMEM_FIXED, new IntPtr(arr.Length));
507
safeLocalAllocHandle = CAPI.
LocalAlloc
(CAPI.LPTR, new IntPtr((uint)ptrSize + (uint)oidSize));