250 references to IntPtr
mscorlib (16)
microsoft\win32\registrykey.cs (3)
1526
currentPtr = new
IntPtr
((long)currentPtr + (checked(dataStrings[i].Length*2)));
1528
currentPtr = new
IntPtr
((long)currentPtr + 2);
1532
currentPtr = new
IntPtr
((long)currentPtr + 2);
system\deployment\isolationinterop.cs (3)
1609
new
IntPtr
((long)((i * iSlotSize) + (ulong)rgItems.ToInt64())),
1630
new
IntPtr
((i * iSlotSize) + retval.ToInt64()),
1823
new
IntPtr
((Int64)cDeployments),
system\intptr.cs (1)
173
return new
IntPtr
(value);
system\io\unmanagedmemorystream.cs (1)
372
if (new
IntPtr
(value - _mem).ToInt64() > UnmanagedMemStreamMaxLength)
system\security\claims\ClaimsPrincipal.cs (1)
412
claimsIdentity = new WindowsIdentity(claimsIdentity, new
IntPtr
(handle));
system\security\principal\ntaccount.cs (1)
403
Win32Native.LSA_TRUST_INFORMATION ti = ( Win32Native.LSA_TRUST_INFORMATION )Marshal.PtrToStructure( new
IntPtr
(( long )rdl.Domains + i * Marshal.SizeOf( typeof( Win32Native.LSA_TRUST_INFORMATION ))), typeof( Win32Native.LSA_TRUST_INFORMATION ));
system\security\principal\sid.cs (1)
1023
Win32Native.LSA_TRUST_INFORMATION ti = ( Win32Native.LSA_TRUST_INFORMATION )Marshal.PtrToStructure( new
IntPtr
(( long )rdl.Domains + i * Marshal.SizeOf( typeof( Win32Native.LSA_TRUST_INFORMATION ))), typeof( Win32Native.LSA_TRUST_INFORMATION ));
system\security\principal\windowsidentity.cs (5)
1334
IntPtr pSidAndAttributes = new
IntPtr
((long)safeAllocHandle.DangerousGetHandle() + (long)Marshal.OffsetOf(typeof(Win32Native.TOKEN_GROUPS), "Groups"));
1357
pSidAndAttributes = new
IntPtr
((long)pSidAndAttributes + Win32Native.SID_AND_ATTRIBUTES.SizeOf);
1392
IntPtr pSidAndAttributes = new
IntPtr
((long)safeAllocHandle.DangerousGetHandle() + (long)Marshal.OffsetOf(typeof(Win32Native.TOKEN_GROUPS), "Groups"));
1420
pSidAndAttributes = new
IntPtr
((long)pSidAndAttributes + Win32Native.SID_AND_ATTRIBUTES.SizeOf);
1488
IntPtr pAttribute = new
IntPtr
(claimAttributes.Attribute.pAttributeV1.ToInt64() + offset);
PresentationCore (3)
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
168
result = new
IntPtr
(flags);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
2005
Marshal.Copy(managedArray, y * rectRowSize, new
IntPtr
(rowPtr), rectRowSize);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
628
buffer = new
IntPtr
(((long) buffer) + (long) offsetInBytes);
PresentationFramework (1)
src\Framework\System\Windows\SystemCommands.cs (1)
127
NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new
IntPtr
(cmd), IntPtr.Zero);
System (55)
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
236
return new
IntPtr
(m_PinnedSendBufferStartAddress + offset - m_PinnedSendBuffer.Offset);
621
return new
IntPtr
(m_StartAddress + offset - m_InternalBuffer.Offset);
security\system\security\cryptography\cryptoapi.cs (9)
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));
3790
if (lpszStoreProvider != new
IntPtr
(CERT_STORE_PROV_MEMORY) && lpszStoreProvider != new
IntPtr
(CERT_STORE_PROV_SYSTEM))
security\system\security\cryptography\x509\x500Name.cs (2)
94
using (SafeLocalAllocHandle pwszDecodeName = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(2 * cchDecoded))) {
122
new
IntPtr
(CAPI.X509_NAME),
security\system\security\cryptography\x509\x509certificate2.cs (8)
143
pszStructType = new
IntPtr
(CAPI.X509_DSS_PUBLICKEY);
148
pszStructType = new
IntPtr
(CAPI.RSA_CSP_PUBLICKEYBLOB);
178
result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_DSS_PARAMETERS),
659
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbData));
995
IntPtr pAltInfoPtr = new
IntPtr
((long) altNameInfo.rgAltEntry + index * Marshal.SizeOf(typeof(CAPI.CERT_ALT_NAME_ENTRY)));
1005
result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_UNICODE_ANY_STRING),
1144
new
IntPtr
(CAPI.CERT_CHAIN_POLICY_BASE),
1207
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbData));
security\system\security\cryptography\x509\x509certificate2collection.cs (12)
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));
592
SafeCertStoreHandle safeTargetStoreHandle = CAPI.CertOpenStore(new
IntPtr
(CAPI.CERT_STORE_PROV_MEMORY),
662
new
IntPtr
(CAPI.CERT_CHAIN_POLICY_BASE),
846
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_UNICODE_ANY_STRING),
866
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_CERTIFICATE_TEMPLATE),
903
rghOIDs = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbOIDs));
912
IntPtr pszOid = Marshal.ReadIntPtr(new
IntPtr
((long) rghOIDs.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))));
949
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_CERT_POLICIES),
956
IntPtr pPolicyInfoPtr = new
IntPtr
((long) pInfo.rgPolicyInfo + index * Marshal.SizeOf(typeof(CAPI.CERT_POLICY_INFO)));
1033
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbData));
security\system\security\cryptography\x509\x509chain.cs (3)
207
int hr = BuildChain(m_useMachineContext ? new
IntPtr
(CAPI.HCCE_LOCAL_MACHINE) : new
IntPtr
(CAPI.HCCE_CURRENT_USER),
230
if (!CAPI.CertVerifyCertificateChainPolicy(new
IntPtr
(CAPI.CERT_CHAIN_POLICY_BASE),
security\system\security\cryptography\x509\x509chainelement.cs (1)
82
m_elements[index] = new X509ChainElement(Marshal.ReadIntPtr(new
IntPtr
((long) simpleChain.rgpElement + index * Marshal.SizeOf(typeof(IntPtr)))));
security\system\security\cryptography\x509\x509extension.cs (10)
128
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_KEY_USAGE),
217
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_BASIC_CONSTRAINTS),
235
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_BASIC_CONSTRAINTS2),
317
bool result = CAPI.DecodeObject(new
IntPtr
(CAPI.X509_ENHANCED_KEY_USAGE),
328
IntPtr pszOid = Marshal.ReadIntPtr(new
IntPtr
((long) pEnhKeyUsage.rgpszUsageIdentifier + index * Marshal.SizeOf(typeof(IntPtr))));
489
publicKeyInfo = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbPublicKeyInfo));
491
IntPtr pszObjId = new
IntPtr
((long) pPublicKeyInfo + Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO2)));
492
IntPtr pbParameters = new
IntPtr
((long) pszObjId + X509Utils.AlignedLength(((uint) (objId.Length + 1))));
493
IntPtr pbPublicKey = new
IntPtr
((long) pbParameters + X509Utils.AlignedLength((uint) encodedParameters.Length));
611
X509Extension extension = new X509Extension(new
IntPtr
((long)rgExtensions + (index * Marshal.SizeOf(typeof(CAPI.CERT_EXTENSION)))));
security\system\security\cryptography\x509\x509store.cs (1)
156
m_safeCertStoreHandle = CAPI.CertOpenStore(new
IntPtr
(CAPI.CERT_STORE_PROV_SYSTEM),
security\system\security\cryptography\x509\x509utils.cs (7)
287
*(byte*) ((long)dest + index) = Marshal.ReadByte(new
IntPtr
((long)source + index));
354
safeCertStoreHandle = CAPI.CertOpenStore(new
IntPtr
(CAPI.CERT_STORE_PROV_MEMORY),
507
safeLocalAllocHandle = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
((uint)ptrSize + (uint)oidSize));
508
pOid = new
IntPtr
((long)safeLocalAllocHandle.DangerousGetHandle() + ptrSize);
511
Marshal.WriteIntPtr(new
IntPtr
((long) safeLocalAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid);
514
pOid = new
IntPtr
((long)pOid + oidStrs[index].Length + 1);
561
int hr = X509Chain.BuildChain(new
IntPtr
(CAPI.HCCE_CURRENT_USER),
System.Activities.Presentation (4)
Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (1)
63
windowStyle = new
IntPtr
(windowStyle.ToInt64() | ((long)Win32Interop.WS_CLIPSIBLINGS) | ((long)Win32Interop.WS_CLIPCHILDREN));
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
24
exStyle = new
IntPtr
(exStyle.ToInt64() | ((long)Win32Interop.WS_EX_CONTEXTHELP));
45
style = new
IntPtr
(longValue);
74
exStyle = new
IntPtr
(exStyle.ToInt64() | ((long)Win32Interop.WS_EX_DLGMODALFRAME));
System.Core (12)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (7)
904
pointer = new
IntPtr
(((Int64)pointer + Marshal.SizeOf(varVal)));
945
pointer = new
IntPtr
(((Int64)pointer + Marshal.SizeOf(varVal)));
1057
pointer = new
IntPtr
((Int64)pointer + (s.Length * 2) + 2);
1315
ptr = new
IntPtr
((Int64)ptr + size);
1334
ptr = new
IntPtr
((Int64)ptr + 4);
1350
ptr = new
IntPtr
((Int64)ptr + 8*sizeof(byte)); // FILETIME values are 8 bytes
1368
ptr = new
IntPtr
((Int64)ptr + 16*sizeof(byte)); // SystemTime values are 16 bytes
System\Security\Cryptography\CapiNative.cs (2)
846
ptr = LocalAlloc(LMEM_FIXED, new
IntPtr
(cbDecoded));
895
pbDecoded = LocalAlloc(LMEM_FIXED, new
IntPtr
(cbDecoded));
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (2)
46
IntPtr pSubjectPublicKeyInfo = new
IntPtr
((long)pCertContext.pCertInfo +
120
IntPtr pSubjectPublicKeyInfo = new
IntPtr
((long)pCertContext.pCertInfo +
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
34
IntPtr structType = new
IntPtr
(CapiNative.CNG_RSA_PUBLIC_KEY_BLOB);
System.Data (6)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (1)
63
windowStyle = new
IntPtr
(windowStyle.ToInt64() | ((long)Win32Interop.WS_CLIPSIBLINGS) | ((long)Win32Interop.WS_CLIPCHILDREN));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
24
exStyle = new
IntPtr
(exStyle.ToInt64() | ((long)Win32Interop.WS_EX_CONTEXTHELP));
45
style = new
IntPtr
(longValue);
74
exStyle = new
IntPtr
(exStyle.ToInt64() | ((long)Win32Interop.WS_EX_DLGMODALFRAME));
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
1360
_rowHandleFetchCount = new
IntPtr
((long) maxRows);
2072
info.propid = new
IntPtr
(binding.Value_UI4());
System.Drawing (2)
commonui\System\Drawing\Icon.cs (2)
909
srcPtr = new
IntPtr
(sourceData.Scan0.ToInt64() + offsetSrc);
910
destPtr = new
IntPtr
(targetData.Scan0.ToInt64() + offsetDest);
System.IdentityModel (12)
System\IdentityModel\Claims\WindowsClaimSet.cs (2)
284
IntPtr pSidAndAttributes = new
IntPtr
((long)safeAllocHandle.DangerousGetHandle() + (long)Marshal.OffsetOf(typeof(TOKEN_GROUPS), "Groups"));
297
pSidAndAttributes = new
IntPtr
((long)pSidAndAttributes + SID_AND_ATTRIBUTES.SizeOf);
System\IdentityModel\Selectors\X509CertificateChain.cs (8)
101
BuildChain(this.useMachineContext ? new
IntPtr
(CAPI.HCCE_LOCAL_MACHINE) : new
IntPtr
(CAPI.HCCE_CURRENT_USER),
120
if (!CAPI.CertVerifyCertificateChainPolicy(new
IntPtr
(this.chainPolicyOID),
225
new
IntPtr
(CAPI.CERT_STORE_PROV_MEMORY),
341
pOid = new
IntPtr
((long)safeAllocHandle.DangerousGetHandle() + ptrSize);
345
Marshal.WriteIntPtr(new
IntPtr
((long) safeAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid);
354
pNullTerminator = new
IntPtr
((long) pOid + ansiOid.Length);
357
pOid = new
IntPtr
((long)pOid + oidStrs[index].Length + 1);
System\IdentityModel\Selectors\X509CertificateStore.cs (1)
89
SafeCertStoreHandle certStoreHandle = CAPI.CertOpenStore(new
IntPtr
(CAPI.CERT_STORE_PROV_SYSTEM),
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
236
pInfo->Certificate = new
IntPtr
(pLogonInfo.DangerousGetHandle().ToInt64() + KERB_CERTIFICATE_S4U_LOGON.Size);
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (1)
66
pos = new
IntPtr
((long)(((ulong)pos.ToPointer()) + (ulong)elementSize));
System.IO.Log (1)
System\IO\Log\LogExtentCollection.cs (1)
187
Marshal.PtrToStructure(new
IntPtr
(containerPointer),
System.Security (120)
system\security\cryptography\cryptoapi.cs (6)
2336
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbDecoded));
2376
pbDecoded = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbDecoded));
2411
pbEncoded = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbEncoded));
2445
pbEncoded = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbEncoded));
2777
if (lpszStoreProvider != new
IntPtr
(CERT_STORE_PROV_MEMORY) && lpszStoreProvider != new
IntPtr
(CERT_STORE_PROV_SYSTEM))
system\security\cryptography\cryptographicattribute.cs (1)
97
IntPtr pCryptAttribute = new
IntPtr
((long)cryptAttributes.rgAttr + (index * Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE))));
system\security\cryptography\pkcs\envelopedpkcs7.cs (64)
470
if (!CAPI.EncodeObject(new
IntPtr
(CAPI.X509_OCTET_STRING), new IntPtr(&dataBlob), out encodedContent))
670
CAPI.CRYPTOAPI_BLOB * pBlob = (CAPI.CRYPTOAPI_BLOB *) new
IntPtr
((long) encryptParam.rgCertEncoded.DangerousGetHandle() +
684
IntPtr pKeyInfo = new
IntPtr
((long) encryptParam.rgpRecipients.DangerousGetHandle() + reiSize);
691
CAPI.CMSG_RECIPIENT_ENCODE_INFO * pEncodeInfo = (CAPI.CMSG_RECIPIENT_ENCODE_INFO *) new
IntPtr
((long) encryptParam.rgpRecipients.DangerousGetHandle() +
703
IntPtr pcbSize = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO), "cbSize"));
707
IntPtr pKeyEncryptionAlgorithm = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO), "KeyEncryptionAlgorithm"));
714
IntPtr pszObjId = new
IntPtr
((long) pKeyEncryptionAlgorithm + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "pszObjId"));
718
IntPtr pParameters = new
IntPtr
((long) pKeyEncryptionAlgorithm + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "Parameters"));
721
IntPtr pcbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
725
IntPtr ppbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
732
IntPtr pRecipientPublicKey = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO), "RecipientPublicKey"));
735
pcbData = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "cbData"));
739
ppbData = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "pbData"));
743
IntPtr pcUnusedBIts = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "cUnusedBits"));
747
IntPtr pRecipientId = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO), "RecipientId"));
757
pbData = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbData));
768
IntPtr pdwIdChoice = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "dwIdChoice"));
772
IntPtr pKeyId = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "Value"));
775
pcbData = new
IntPtr
((long) pKeyId + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
779
ppbData = new
IntPtr
((long) pKeyId + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
784
IntPtr pdwIdChoice = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "dwIdChoice"));
788
IntPtr pIssuerSerialNumber = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "Value"));
791
IntPtr pIssuer = new
IntPtr
((long) pIssuerSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ISSUER_SERIAL_NUMBER), "Issuer"));
794
pcbData = new
IntPtr
((long) pIssuer + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
798
ppbData = new
IntPtr
((long) pIssuer + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
802
IntPtr pSerialNumber = new
IntPtr
((long) pIssuerSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ISSUER_SERIAL_NUMBER), "SerialNumber"));
805
pcbData = new
IntPtr
((long) pSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
809
ppbData = new
IntPtr
((long) pSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
812
pKeyInfo = new
IntPtr
((long) pKeyInfo + Marshal.SizeOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO)));
818
IntPtr pcbSize = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "cbSize"));
822
IntPtr pKeyEncryptionAlgorithm = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "KeyEncryptionAlgorithm"));
829
IntPtr pszObjId = new
IntPtr
((long) pKeyEncryptionAlgorithm + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "pszObjId"));
836
IntPtr pKeyWrapAlgorithm = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "KeyWrapAlgorithm"));
849
pszObjId = new
IntPtr
((long) pKeyWrapAlgorithm + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "pszObjId"));
856
IntPtr pKeyWrapAuxInfo = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "pvKeyWrapAuxInfo"));
864
IntPtr pdwKeyChoice = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "dwKeyChoice"));
868
IntPtr pEphemeralAlgorithm = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "pEphemeralAlgorithmOrSenderId"));
877
pszObjId = new
IntPtr
((long) encryptParam.rgEphemeralIdentifier[cKeyAgree].DangerousGetHandle() + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "pszObjId"));
881
IntPtr pParameters = new
IntPtr
((long) encryptParam.rgEphemeralIdentifier[cKeyAgree].DangerousGetHandle() + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "Parameters"));
884
IntPtr pcbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
888
IntPtr ppbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
894
IntPtr pcRecipientEncryptedKeys = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "cRecipientEncryptedKeys"));
899
IntPtr prgpRecipientEncryptedKeys = new
IntPtr
((long) pKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO), "rgpRecipientEncryptedKeys"));
905
pcbSize = new
IntPtr
((long) encryptParam.rgpEncryptedKey[cKeyAgree].DangerousGetHandle() + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO), "cbSize"));
909
IntPtr pRecipientPublicKey = new
IntPtr
((long) encryptParam.rgpEncryptedKey[cKeyAgree].DangerousGetHandle() + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO), "RecipientPublicKey"));
912
pcbData = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "cbData"));
916
ppbData = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "pbData"));
920
IntPtr pcUnusedBits = new
IntPtr
((long) pRecipientPublicKey + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_BIT_BLOB), "cUnusedBits"));
924
IntPtr pRecipientId = new
IntPtr
((long) encryptParam.rgpEncryptedKey[cKeyAgree].DangerousGetHandle() + (long) Marshal.OffsetOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO), "RecipientId"));
927
IntPtr pdwIdChoice = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "dwIdChoice"));
933
IntPtr pKeyId = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "Value"));
943
pbKeyId = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbKeyId));
953
pcbData = new
IntPtr
((long) pKeyId + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
957
ppbData = new
IntPtr
((long) pKeyId + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
964
IntPtr pIssuerSerial = new
IntPtr
((long) pRecipientId + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ID), "Value"));
967
IntPtr pIssuer = new
IntPtr
((long) pIssuerSerial + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ISSUER_SERIAL_NUMBER), "Issuer"));
970
pcbData = new
IntPtr
((long) pIssuer + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
974
ppbData = new
IntPtr
((long) pIssuer + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
978
IntPtr pSerialNumber = new
IntPtr
((long) pIssuerSerial + (long) Marshal.OffsetOf(typeof(CAPI.CERT_ISSUER_SERIAL_NUMBER), "SerialNumber"));
981
pcbData = new
IntPtr
((long) pSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
985
ppbData = new
IntPtr
((long) pSerialNumber + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
991
pKeyInfo = new
IntPtr
((long) pKeyInfo + Marshal.SizeOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO)));
1023
encryptParam.rgpRecipients = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(totalSize));
1034
pCertInfo = new
IntPtr
((long) pCertInfo + Marshal.SizeOf(typeof(IntPtr)));
system\security\cryptography\pkcs\pkcs9attribute.cs (1)
110
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.PKCS_UTC_TIME),
system\security\cryptography\pkcs\pkcsmisc.cs (5)
82
if (CAPI.DecodeObject(new
IntPtr
(CAPI.X509_NAME),
91
CAPI.CERT_RDN certRdn = (CAPI.CERT_RDN) Marshal.PtrToStructure(new
IntPtr
((long) certNameInfo.rgRDN + (long) (i * Marshal.SizeOf(typeof(CAPI.CERT_RDN)))), typeof(CAPI.CERT_RDN));
95
CAPI.CERT_RDN_ATTR certRdnAttr = (CAPI.CERT_RDN_ATTR)Marshal.PtrToStructure(new
IntPtr
((long)certRdn.rgRDNAttr + (long)(j * Marshal.SizeOf(typeof(CAPI.CERT_RDN_ATTR)))), typeof(CAPI.CERT_RDN_ATTR));
344
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.PKCS_RC2_CBC_PARAMETERS),
374
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.X509_OCTET_STRING),
system\security\cryptography\pkcs\pkcsutils.cs (18)
134
SafeLocalAllocHandle pbAlgorithm = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbAlgorithm));
168
pvData = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbData));
301
SafeLocalAllocHandle pbCmsgSignerInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbCmsgSignerInfo));
348
using (pbUnprotectedAttr = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbUnprotectedAttr))) {
373
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(checked(2 * cbSize)));
397
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.X509_OCTET_STRING),
420
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.X509_OCTET_STRING),
450
if (!CAPI.EncodeObject(new
IntPtr
((long) CAPI.X509_OCTET_STRING),
451
new
IntPtr
((long) &octetsBlob),
573
IntPtr pAttributeBlob = new
IntPtr
((long)cryptAttribute.rgValue + (index * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))));
646
SafeLocalAllocHandle pCryptAttributes = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(totalLength));
650
IntPtr pAttrData = new
IntPtr
((long) pCryptAttributes.DangerousGetHandle() + (cryptAttrSize * attributes.Count));
671
IntPtr pbEncodedData = new
IntPtr
((long) pDataBlob + (attribute.Values.Count * cryptBlobSize));
685
pbEncodedData = new
IntPtr
((long) pbEncodedData + AlignedLength((uint) encodedData.Length));
765
new
IntPtr
(cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.Issuer.cbData));
774
new
IntPtr
(cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.SerialNumber.cbData));
808
pbData = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbData));
994
new
IntPtr
((long) &certBlob)))
system\security\cryptography\pkcs\recipientinfo.cs (2)
222
IntPtr pEncryptedKeyInfo = Marshal.ReadIntPtr(new
IntPtr
((long) certIdRecipient.rgpRecipientEncryptedKeys + (long) (subIndex * Marshal.SizeOf(typeof(IntPtr)))));
231
IntPtr pEncryptedKeyInfo = Marshal.ReadIntPtr(new
IntPtr
((long) publicKeyRecipient.rgpRecipientEncryptedKeys + (long) (subIndex * Marshal.SizeOf(typeof(IntPtr)))));
system\security\cryptography\pkcs\signerinfo.cs (16)
67
if (!CAPI.DecodeObject(new
IntPtr
(CAPI.PKCS7_SIGNER_INFO),
352
IntPtr pSubjectPublicKeyInfo = new
IntPtr
((long) pCertContext.pCertInfo + (long) Marshal.OffsetOf(typeof(CAPI.CERT_INFO), "SubjectPublicKeyInfo"));
355
IntPtr pAlgorithm = new
IntPtr
((long) pSubjectPublicKeyInfo + (long) Marshal.OffsetOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO), "Algorithm"));
358
IntPtr pParameters = new
IntPtr
((long) pAlgorithm + (long) Marshal.OffsetOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER), "Parameters"));
371
IntPtr pcbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "cbData"));
372
IntPtr ppbData = new
IntPtr
((long) pParameters + (long) Marshal.OffsetOf(typeof(CAPI.CRYPTOAPI_BLOB), "pbData"));
394
X509Utils.BuildChain(new
IntPtr
(CAPI.HCCE_CURRENT_USER),
417
pbParameters = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbParameters));
542
pAttr = new
IntPtr
((long) cmsgCmsSignerInfo.UnauthAttrs.rgAttr);
553
pAttr = new
IntPtr
((long) cmsgSignerInfo.UnauthAttrs.rgAttr);
589
SafeLocalAllocHandle pbCounterSignatureValue = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
(cbCounterSignatureValue));
612
if (!CAPI.EncodeObject(new
IntPtr
(CAPI.PKCS_ATTRIBUTE),
642
if (CAPI.EncodeObject(new
IntPtr
(CAPI.PKCS_ATTRIBUTE),
664
pAttr = new
IntPtr
((long) pAttr + (long) Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE)));
695
new
IntPtr
(CAPI.CERT_CHAIN_POLICY_BASE),
748
SafeLocalAllocHandle pbCmsgSignerInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbCmsgSignerInfo));
system\security\cryptography\x509\x509utils.cs (7)
157
ptr = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new
IntPtr
(cbData));
197
safeCertStoreHandle = CAPI.CertOpenStore(new
IntPtr
(CAPI.CERT_STORE_PROV_MEMORY),
264
safeLocalAllocHandle = CAPI.LocalAlloc(CAPI.LPTR, new
IntPtr
((uint) ptrSize + (uint) oidSize));
265
IntPtr pOid = new
IntPtr
((long)safeLocalAllocHandle.DangerousGetHandle() + ptrSize);
267
Marshal.WriteIntPtr(new
IntPtr
((long) safeLocalAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid);
270
pOid = new
IntPtr
((long) pOid + oids[index].Value.Length + 1);
382
int hr = X509Utils.BuildChain(new
IntPtr
(CAPI.HCCE_CURRENT_USER),
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\MetabaseReader.cs (1)
200
list.Add(Marshal.PtrToStringUni(new
IntPtr
(record.pbMDData.ToInt64() + startPos),
System.Web (6)
Hosting\ISAPIWorkerRequest.cs (2)
2182
current = new
IntPtr
((long)current + 2L * (1L + serverVarLengths[i]));
2226
current = new
IntPtr
((long)current + 2L * (1L + serverVarLengths[i]));
HttpWriter.cs (1)
394
wr.SendResponseFromMemory(new
IntPtr
(_data.ToInt64()+_offset), _size, isBufferFromUnmanagedPool: false);
Util\altserialization.cs (1)
255
value = new
IntPtr
(reader.ReadInt64());
Util\Misc.cs (2)
92
System.Runtime.InteropServices.Marshal.Copy(new
IntPtr
(src.ToInt64()+srcOffset), dest, destOffset, size);
97
System.Runtime.InteropServices.Marshal.Copy(src, srcOffset, new
IntPtr
(dest.ToInt64()+destOffset), size);
System.Windows.Forms (5)
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (3)
1624
new
IntPtr
((long)((i * iSlotSize) + (ulong)rgItems.ToInt64())),
1645
new
IntPtr
((i * iSlotSize) + retval.ToInt64()),
1839
new
IntPtr
((Int64)cDeployments),
winforms\Managed\System\WinForms\ImageList.cs (2)
651
srcPtr = new
IntPtr
(sourceData.Scan0.ToInt64() + offsetSrc);
652
destPtr = new
IntPtr
(targetData.Scan0.ToInt64() + offsetDest);
UIAutomationClientsideProviders (5)
MS\Internal\AutomationProxies\Accessible.cs (1)
174
wParam = new
IntPtr
(UnsafeNativeMethods.GetCurrentProcessId());
MS\Internal\AutomationProxies\CommonXSendMessage.cs (3)
1019
hitTestItem = new
IntPtr
(hitTestInfo64.hItem);
1471
if (Misc.ReadProcessMemory(hProcess, new
IntPtr
(group.pszHeader), copyTo, new IntPtr(NativeMethods.MAX_PATH), out count))
2501
nativeHitTestInfo.hItem = new
IntPtr
(hitTestInfo64.hItem);
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1612
IntPtr pAddress = new
IntPtr
((long)address + (image * readSize));