284 references to PtrToStructure
mscorlib (13)
system\runtime\interopservices\marshal.cs (1)
998
return (T)
PtrToStructure
(ptr, typeof(T));
system\runtime\interopservices\typelibconverter.cs (1)
456
Attr = (_TYPELIBATTR)Marshal.
PtrToStructure
(pAttr, typeof(_TYPELIBATTR));
system\security\cryptography\x509certificates\x509utils.cs (3)
149
return (CRYPT_OID_INFO)Marshal.
PtrToStructure
(localOidInfo, typeof(CRYPT_OID_INFO));
156
return (CRYPT_OID_INFO)Marshal.
PtrToStructure
(fullOidInfo, typeof(CRYPT_OID_INFO));
164
return (CRYPT_OID_INFO)Marshal.
PtrToStructure
(allGroupOidInfo, typeof(CRYPT_OID_INFO));
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 (6)
1339
Win32Native.SID_AND_ATTRIBUTES group = (Win32Native.SID_AND_ATTRIBUTES)Marshal.
PtrToStructure
(pSidAndAttributes, typeof(Win32Native.SID_AND_ATTRIBUTES));
1383
Win32Native.TOKEN_PRIMARY_GROUP primaryGroup = (Win32Native.TOKEN_PRIMARY_GROUP)Marshal.
PtrToStructure
(safeAllocHandlePrimaryGroup.DangerousGetHandle(), typeof(Win32Native.TOKEN_PRIMARY_GROUP));
1395
Win32Native.SID_AND_ATTRIBUTES group = (Win32Native.SID_AND_ATTRIBUTES)Marshal.
PtrToStructure
(pSidAndAttributes, typeof(Win32Native.SID_AND_ATTRIBUTES));
1445
Win32Native.SID_AND_ATTRIBUTES user = (Win32Native.SID_AND_ATTRIBUTES)Marshal.
PtrToStructure
(safeAllocHandle.DangerousGetHandle(), typeof(Win32Native.SID_AND_ATTRIBUTES));
1479
Win32Native.CLAIM_SECURITY_ATTRIBUTES_INFORMATION claimAttributes = (Win32Native.CLAIM_SECURITY_ATTRIBUTES_INFORMATION)Marshal.
PtrToStructure
(safeAllocHandle.DangerousGetHandle(), typeof(Win32Native.CLAIM_SECURITY_ATTRIBUTES_INFORMATION));
1489
Win32Native.CLAIM_SECURITY_ATTRIBUTE_V1 windowsClaim = (Win32Native.CLAIM_SECURITY_ATTRIBUTE_V1)Marshal.
PtrToStructure
(pAttribute, typeof(Win32Native.CLAIM_SECURITY_ATTRIBUTE_V1));
PresentationCore (3)
Core\CSharp\System\Windows\Input\InputProcessorProfiles.cs (1)
194
short langid = (short)Marshal.
PtrToStructure
((IntPtr)((Int64)langids + sizeOfShort * i), typeof(short));
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
275
OBJECTHEADER pHeader = (OBJECTHEADER)Marshal.
PtrToStructure
(addr, typeof(OBJECTHEADER));
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
1963
rc = (Int32Rect)Marshal.
PtrToStructure
(prc, typeof(Int32Rect));
PresentationFramework (14)
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (9)
276
NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.
PtrToStructure
(
286
NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.
PtrToStructure
(
302
NativeMethods.PRINTPAGERANGE pageRangeStruct = (NativeMethods.PRINTPAGERANGE)Marshal.
PtrToStructure
(
323
NativeMethods.DEVNAMES devNames = (NativeMethods.DEVNAMES)Marshal.
PtrToStructure
(
440
NativeMethods.DEVMODE devMode = (NativeMethods.DEVMODE)Marshal.
PtrToStructure
(
500
NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.
PtrToStructure
(
507
NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.
PtrToStructure
(
749
NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.
PtrToStructure
(
758
NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.
PtrToStructure
(
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1502
NativeMethods.RECONVERTSTRING reconv = (NativeMethods.RECONVERTSTRING)Marshal.
PtrToStructure
(lParam, typeof(NativeMethods.RECONVERTSTRING));
1674
NativeMethods.RECONVERTSTRING reconv = (NativeMethods.RECONVERTSTRING)Marshal.
PtrToStructure
(lParam, typeof(NativeMethods.RECONVERTSTRING));
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
696
var rcClientArea = (RECT)Marshal.
PtrToStructure
(lParam, typeof(RECT));
875
var wp = (WINDOWPOS)Marshal.
PtrToStructure
(lParam, typeof(WINDOWPOS));
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
201
var createStruct = (CREATESTRUCT)Marshal.
PtrToStructure
(lParam, typeof(CREATESTRUCT));
System (62)
net\System\Net\_SecureChannel.cs (1)
165
_CERT_CONTEXT context = (_CERT_CONTEXT)Marshal.
PtrToStructure
(certContext.DangerousGetHandle(), typeof(_CERT_CONTEXT));
net\System\Net\DNS.cs (1)
68
hostent Host = (hostent)Marshal.
PtrToStructure
(nativePointer, typeof(hostent));
net\System\Net\Internal.cs (1)
230
IpAdapterAddresses adapterAddresses = (IpAdapterAddresses)Marshal.
PtrToStructure
(
net\System\Net\NetworkInformation\ping.cs (4)
230
Icmp6EchoReply icmp6Reply = (Icmp6EchoReply)Marshal.
PtrToStructure
(buffer.DangerousGetHandle (), typeof(Icmp6EchoReply));
234
IcmpEchoReply icmpReply = (IcmpEchoReply)Marshal.
PtrToStructure
(buffer.DangerousGetHandle (), typeof(IcmpEchoReply));
728
Icmp6EchoReply icmp6Reply = (Icmp6EchoReply)Marshal.
PtrToStructure
(replyBuffer.DangerousGetHandle(), typeof(Icmp6EchoReply));
732
IcmpEchoReply icmpReply = (IcmpEchoReply)Marshal.
PtrToStructure
(replyBuffer.DangerousGetHandle(), typeof(IcmpEchoReply));
net\System\Net\NetworkInformation\SystemIPGlobalProperties.cs (9)
39
fixedInfo = new FixedInfo( (FIXED_INFO)Marshal.
PtrToStructure
(buffer.DangerousGetHandle(),typeof(FIXED_INFO)));
172
MibTcpTable tcpTableInfo = (MibTcpTable)Marshal.
PtrToStructure
(newPtr, typeof(MibTcpTable));
179
MibTcpRow tcpRow = (MibTcpRow)Marshal.
PtrToStructure
(newPtr, typeof(MibTcpRow));
221
= (MibTcp6TableOwnerPid)Marshal.
PtrToStructure
(newPtr, typeof(MibTcp6TableOwnerPid));
229
= (MibTcp6RowOwnerPid)Marshal.
PtrToStructure
(newPtr,
277
MibUdpTable udpTableInfo = (MibUdpTable)Marshal.
PtrToStructure
(newPtr, typeof(MibUdpTable));
283
MibUdpRow udpRow = (MibUdpRow)Marshal.
PtrToStructure
(newPtr, typeof(MibUdpRow));
324
= (MibUdp6TableOwnerPid)Marshal.
PtrToStructure
(newPtr, typeof(MibUdp6TableOwnerPid));
331
= (MibUdp6RowOwnerPid)Marshal.
PtrToStructure
(newPtr,
net\System\Net\NetworkInformation\SystemIPv4InterfaceProperties.cs (1)
90
IpPerAdapterInfo ipPerAdapterInfo = (IpPerAdapterInfo)Marshal.
PtrToStructure
(buffer.DangerousGetHandle(),typeof(IpPerAdapterInfo));
net\System\Net\NetworkInformation\SystemNetworkInterface.cs (1)
106
(IpAdapterAddresses)Marshal.
PtrToStructure
(ptr, typeof(IpAdapterAddresses));
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (1)
139
(IpAdapterUnicastAddress)Marshal.
PtrToStructure
(ptr, typeof(IpAdapterUnicastAddress));
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (2)
143
(IpAdapterAddress)Marshal.
PtrToStructure
(ptr, typeof(IpAdapterAddress));
157
(IpAdapterAddress)Marshal.
PtrToStructure
(ptr, typeof(IpAdapterAddress));
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (2)
143
UnsafeNclNativeMethods.OSSOCK.ControlData controlData = (UnsafeNclNativeMethods.OSSOCK.ControlData)Marshal.
PtrToStructure
(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlData));
152
UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)Marshal.
PtrToStructure
(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6));
net\System\Net\Sockets\Socket.cs (3)
185
UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO protocolInfo = (UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO)Marshal.
PtrToStructure
((IntPtr)pinnedBuffer, typeof(UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO));
9952
UnsafeNclNativeMethods.OSSOCK.ControlData controlData = (UnsafeNclNativeMethods.OSSOCK.ControlData)Marshal.
PtrToStructure
(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlData));
9960
UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)Marshal.
PtrToStructure
(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6));
security\system\security\cryptography\cryptoapi.cs (3)
2766
CAPI.CRYPTOAPI_BLOB blob = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(pBlob, typeof(CAPI.CRYPTOAPI_BLOB));
3087
pOIDInfo = (CRYPT_OID_INFO) Marshal.
PtrToStructure
(pv, typeof(CAPI.CRYPT_OID_INFO));
3112
pOIDInfo = (CRYPT_OID_INFO) Marshal.
PtrToStructure
(pv, typeof(CAPI.CRYPT_OID_INFO));
security\system\security\cryptography\x509\x509certificate2.cs (15)
206
CAPI.CRYPTOAPI_BLOB pDssPubKey = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(decodedKeyValue.DangerousGetHandle(), typeof(CAPI.CRYPTOAPI_BLOB));
207
CAPI.CERT_DSS_PARAMETERS pDssParameters = (CAPI.CERT_DSS_PARAMETERS) Marshal.
PtrToStructure
(decodedParameters.DangerousGetHandle(), typeof(CAPI.CERT_DSS_PARAMETERS));
695
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
715
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
736
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
904
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
967
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
978
CAPI.CERT_EXTENSION extension = (CAPI.CERT_EXTENSION) Marshal.
PtrToStructure
(pAltName[i], typeof(CAPI.CERT_EXTENSION));
992
CAPI.CERT_ALT_NAME_INFO altNameInfo = (CAPI.CERT_ALT_NAME_INFO) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CERT_ALT_NAME_INFO));
996
CAPI.CERT_ALT_NAME_ENTRY altNameEntry = (CAPI.CERT_ALT_NAME_ENTRY) Marshal.
PtrToStructure
(pAltInfoPtr, typeof(CAPI.CERT_ALT_NAME_ENTRY));
1001
CAPI.CERT_OTHER_NAME otherName = (CAPI.CERT_OTHER_NAME) Marshal.
PtrToStructure
(altNameEntry.Value.pOtherName, typeof(CAPI.CERT_OTHER_NAME));
1010
CAPI.CERT_NAME_VALUE nameValue = (CAPI.CERT_NAME_VALUE) Marshal.
PtrToStructure
(pUpnName.DangerousGetHandle(), typeof(CAPI.CERT_NAME_VALUE));
1219
CAPI.CRYPT_KEY_PROV_INFO pKeyProvInfo = (CAPI.CRYPT_KEY_PROV_INFO) Marshal.
PtrToStructure
(ptr.DangerousGetHandle(), typeof(CAPI.CRYPT_KEY_PROV_INFO));
1305
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
1314
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
security\system\security\cryptography\x509\x509certificate2collection.cs (11)
742
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
826
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
839
CAPI.CERT_EXTENSION extension = (CAPI.CERT_EXTENSION) Marshal.
PtrToStructure
(pV1Template, typeof(CAPI.CERT_EXTENSION));
851
CAPI.CERT_NAME_VALUE pNameValue = (CAPI.CERT_NAME_VALUE) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CERT_NAME_VALUE));
859
CAPI.CERT_EXTENSION extension = (CAPI.CERT_EXTENSION) Marshal.
PtrToStructure
(pV2Template, typeof(CAPI.CERT_EXTENSION));
871
CAPI.CERT_TEMPLATE_EXT pTemplate = (CAPI.CERT_TEMPLATE_EXT) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CERT_TEMPLATE_EXT));
934
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
942
CAPI.CERT_EXTENSION extension = (CAPI.CERT_EXTENSION) Marshal.
PtrToStructure
(pExtension, typeof(CAPI.CERT_EXTENSION));
954
CAPI.CERT_POLICIES_INFO pInfo = (CAPI.CERT_POLICIES_INFO) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CERT_POLICIES_INFO));
957
CAPI.CERT_POLICY_INFO pPolicyInfo = (CAPI.CERT_POLICY_INFO) Marshal.
PtrToStructure
(pPolicyInfoPtr, typeof(CAPI.CERT_POLICY_INFO));
976
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
security\system\security\cryptography\x509\x509extension.cs (7)
27
CAPI.CERT_EXTENSION extension = (CAPI.CERT_EXTENSION) Marshal.
PtrToStructure
(pExtension, typeof(CAPI.CERT_EXTENSION));
135
CAPI.CRYPTOAPI_BLOB pKeyUsage = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CRYPTOAPI_BLOB));
224
CAPI.CERT_BASIC_CONSTRAINTS_INFO pBasicConstraints = (CAPI.CERT_BASIC_CONSTRAINTS_INFO) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(),
242
CAPI.CERT_BASIC_CONSTRAINTS2_INFO pBasicConstraints2 = (CAPI.CERT_BASIC_CONSTRAINTS2_INFO) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(),
324
CAPI.CERT_ENHKEY_USAGE pEnhKeyUsage = (CAPI.CERT_ENHKEY_USAGE) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CERT_ENHKEY_USAGE));
435
CAPI.CRYPTOAPI_BLOB pSubjectKeyIdentifier = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(decoded.DangerousGetHandle(), typeof(CAPI.CRYPTOAPI_BLOB));
606
CAPI.CERT_INFO pCertInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
System.Core (24)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (14)
427
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
454
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
482
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
515
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
594
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
620
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
657
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
809
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(buffer, typeof(UnsafeNativeMethods.EvtVariant));
847
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(pointer, typeof(UnsafeNativeMethods.EvtVariant));
943
UnsafeNativeMethods.EvtVariant varVal = (UnsafeNativeMethods.EvtVariant)Marshal.
PtrToStructure
(pointer, typeof(UnsafeNativeMethods.EvtVariant));
1195
return (val.GuidReference == IntPtr.Zero) ? Guid.Empty : Marshal.
PtrToStructure
(val.GuidReference, typeof(Guid));
1201
UnsafeNativeMethods.SystemTime sysTime = (UnsafeNativeMethods.SystemTime)Marshal.
PtrToStructure
(val.SystemTime, typeof(UnsafeNativeMethods.SystemTime));
1314
array.SetValue(Marshal.
PtrToStructure
(ptr, objType), i);
1366
UnsafeNativeMethods.SystemTime sysTime = (UnsafeNativeMethods.SystemTime)Marshal.
PtrToStructure
(ptr, typeof(UnsafeNativeMethods.SystemTime));
System\Security\Cryptography\CapiNative.cs (4)
685
return (T)Marshal.
PtrToStructure
(buffer, typeof(T));
934
pOIDInfo = (CRYPT_OID_INFO)Marshal.
PtrToStructure
(pv, typeof(CRYPT_OID_INFO));
964
pOIDInfo = (CRYPT_OID_INFO)Marshal.
PtrToStructure
(pv, typeof(CRYPT_OID_INFO));
991
return (T)Marshal.
PtrToStructure
(pBase, typeof(T));
System\Security\Cryptography\NCryptNative.cs (1)
1520
return (T)Marshal.
PtrToStructure
(new IntPtr(pValue), typeof(T));
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (4)
44
X509Native.CERT_CONTEXT pCertContext = (X509Native.CERT_CONTEXT)Marshal.
PtrToStructure
(certHandle, typeof(X509Native.CERT_CONTEXT));
50
(X509Native.CERT_PUBLIC_KEY_INFO)Marshal.
PtrToStructure
(pSubjectPublicKeyInfo, typeof(X509Native.CERT_PUBLIC_KEY_INFO));
118
X509Native.CERT_CONTEXT pCertContext = (X509Native.CERT_CONTEXT)Marshal.
PtrToStructure
(certHandle, typeof(X509Native.CERT_CONTEXT));
123
X509Native.CERT_PUBLIC_KEY_INFO certPublicKeyInfo = (X509Native.CERT_PUBLIC_KEY_INFO)Marshal.
PtrToStructure
(pSubjectPublicKeyInfo,
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
160
return (T)Marshal.
PtrToStructure
(new IntPtr(pRawProperty), typeof(T));
System.Data (2)
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
554
supportedSchemas[i]._schemaRowset = (Guid) Marshal.
PtrToStructure
(ptr, typeof(Guid));
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2152
MEMMAP memMap = (MEMMAP)Marshal.
PtrToStructure
(sdc.pMemMap, typeof(MEMMAP));
System.Drawing (2)
commonui\System\Drawing\ImageConverter.cs (1)
208
SafeNativeMethods.OBJECTHEADER pHeader = (SafeNativeMethods.OBJECTHEADER)Marshal.
PtrToStructure
(addr, typeof(SafeNativeMethods.OBJECTHEADER));
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
135
return Marshal.
PtrToStructure
(lparam, cls);
System.IdentityModel (5)
System\IdentityModel\Claims\WindowsClaimSet.cs (2)
287
SID_AND_ATTRIBUTES group = (SID_AND_ATTRIBUTES)Marshal.
PtrToStructure
(pSidAndAttributes, typeof(SID_AND_ATTRIBUTES));
358
SID_AND_ATTRIBUTES user = (SID_AND_ATTRIBUTES)Marshal.
PtrToStructure
(safeAllocHandle.DangerousGetHandle(), typeof(SID_AND_ATTRIBUTES));
System\IdentityModel\Selectors\X509CertificateChain.cs (2)
214
CAPI.CERT_CONTEXT certContext = (CAPI.CERT_CONTEXT)Marshal.
PtrToStructure
(pCertContext, typeof(CAPI.CERT_CONTEXT));
281
CAPI.CERT_CONTEXT intermediatesCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
( intermediatesCert.Handle, typeof( CAPI.CERT_CONTEXT ) );
System\IdentityModel\SspiWrapper.cs (1)
149
LifeSpan_Struct lifeSpan = (LifeSpan_Struct)Marshal.
PtrToStructure
(ptr, typeof(LifeSpan_Struct));
System.IdentityModel.Selectors (3)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (1)
200
infocardToken = (RpcGenericXmlToken)Marshal.
PtrToStructure
(
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (2)
46
m_internalHandle.Initialize(expiration, Marshal.
PtrToStructure
(nativeParameters, paramType));
140
(RpcInfoCardCryptoHandle)Marshal.
PtrToStructure
(nativeHandle.DangerousGetHandle(),
System.Net (78)
net\PeerToPeer\Cloud.cs (1)
227
PEER_PNRP_CLOUD_INFO cloudinfo = (PEER_PNRP_CLOUD_INFO)Marshal.
PtrToStructure
(pPEER_PNRP_CLOUD_INFO, typeof(PEER_PNRP_CLOUD_INFO));
net\PeerToPeer\Collaboration\ContactManager.cs (21)
145
pc = (PEER_CONTACT)Marshal.
PtrToStructure
(contact.DangerousGetHandle(), typeof(PEER_CONTACT));
337
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
346
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(watchlistData.pContact, typeof(PEER_CONTACT));
537
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
548
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(endpointData.pContact, typeof(PEER_CONTACT));
553
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(endpointData.pEndPoint, typeof(PEER_ENDPOINT));
744
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
753
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(presenceData.pPresenceInfo, typeof(PEER_PRESENCE_INFO));
763
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(presenceData.pContact, typeof(PEER_CONTACT));
768
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(presenceData.pEndPoint, typeof(PEER_ENDPOINT));
963
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
967
PEER_APPLICATION pa = (PEER_APPLICATION)Marshal.
PtrToStructure
(appData.pApplication, typeof(PEER_APPLICATION));
975
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(appData.pContact, typeof(PEER_CONTACT));
980
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(appData.pEndPoint, typeof(PEER_ENDPOINT));
1175
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1180
PEER_OBJECT po = (PEER_OBJECT)Marshal.
PtrToStructure
(objData.pObject, typeof(PEER_OBJECT));
1188
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(objData.pContact, typeof(PEER_CONTACT));
1193
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(objData.pEndPoint, typeof(PEER_ENDPOINT));
1293
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(pContactPtr, typeof(PEER_CONTACT));
1356
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(safeContact.DangerousGetHandle(), typeof(PEER_CONTACT));
1441
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(contact.DangerousGetHandle(), typeof(PEER_CONTACT));
net\PeerToPeer\Collaboration\MyContact.cs (9)
181
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
189
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(presenceData.pPresenceInfo, typeof(PEER_PRESENCE_INFO));
197
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(presenceData.pEndPoint, typeof(PEER_ENDPOINT));
347
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
352
PEER_APPLICATION pa = (PEER_APPLICATION)Marshal.
PtrToStructure
(appData.pApplication, typeof(PEER_APPLICATION));
358
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(appData.pEndPoint, typeof(PEER_ENDPOINT));
515
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
520
PEER_OBJECT po = (PEER_OBJECT)Marshal.
PtrToStructure
(objData.pObject, typeof(PEER_OBJECT));
526
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(objData.pEndPoint, typeof(PEER_ENDPOINT));
net\PeerToPeer\Collaboration\Peer.cs (3)
402
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(ptrPeerPresenceInfo, typeof(PEER_PRESENCE_INFO));
749
PEER_INVITATION_RESPONSE pir = (PEER_INVITATION_RESPONSE)Marshal.
PtrToStructure
(safeResponse.DangerousGetHandle(),
1259
pir = (PEER_INVITATION_RESPONSE)Marshal.
PtrToStructure
(response.DangerousGetHandle(),
net\PeerToPeer\Collaboration\PeerApplication.cs (4)
379
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
383
PEER_APPLICATION pa = (PEER_APPLICATION)Marshal.
PtrToStructure
(appData.pApplication, typeof(PEER_APPLICATION));
396
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(appData.pContact, typeof(PEER_CONTACT));
401
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(appData.pEndPoint, typeof(PEER_ENDPOINT));
net\PeerToPeer\Collaboration\PeerCollaboration.cs (15)
50
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(ptrPeerPresenceInfo,
256
PEER_APP_LAUNCH_INFO pali = (PEER_APP_LAUNCH_INFO)Marshal.
PtrToStructure
(appLaunchInfoData.DangerousGetHandle(),
262
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(pali.pContact, typeof(PEER_CONTACT));
266
PEER_INVITATION pi = (PEER_INVITATION)Marshal.
PtrToStructure
(pali.pInvitation, typeof(PEER_INVITATION));
279
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(pali.pEndpoint, typeof(PEER_ENDPOINT));
436
PEER_PEOPLE_NEAR_ME pnm = (PEER_PEOPLE_NEAR_ME)Marshal.
PtrToStructure
(pContactPtr, typeof(PEER_PEOPLE_NEAR_ME));
762
Marshal.
PtrToStructure
(safeAppRegInfo.DangerousGetHandle(),
1133
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1292
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1299
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(presenceData.pPresenceInfo, typeof(PEER_PRESENCE_INFO));
1463
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1468
PEER_OBJECT po = (PEER_OBJECT)Marshal.
PtrToStructure
(objData.pObject, typeof(PEER_OBJECT));
1474
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(objData.pEndPoint, typeof(PEER_ENDPOINT));
1625
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1631
PEER_APPLICATION pa = (PEER_APPLICATION)Marshal.
PtrToStructure
(appData.pApplication, typeof(PEER_APPLICATION));
net\PeerToPeer\Collaboration\PeerContact.cs (14)
291
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(pEndPointPtr, typeof(PEER_ENDPOINT));
404
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(contact.DangerousGetHandle(), typeof(PEER_CONTACT));
1354
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1362
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(appData.pContact, typeof(PEER_CONTACT));
1367
PEER_APPLICATION pa = (PEER_APPLICATION)Marshal.
PtrToStructure
(appData.pApplication, typeof(PEER_APPLICATION));
1374
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(appData.pEndPoint, typeof(PEER_ENDPOINT));
1605
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1613
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(objData.pContact, typeof(PEER_CONTACT));
1622
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(objData.pEndPoint, typeof(PEER_ENDPOINT));
1626
PEER_OBJECT po = (PEER_OBJECT)Marshal.
PtrToStructure
(objData.pObject, typeof(PEER_OBJECT));
1856
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
1864
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(presenceData.pContact, typeof(PEER_CONTACT));
1873
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(presenceData.pEndPoint, typeof(PEER_ENDPOINT));
1880
PEER_PRESENCE_INFO ppi = (PEER_PRESENCE_INFO)Marshal.
PtrToStructure
(presenceData.pPresenceInfo, typeof(PEER_PRESENCE_INFO));
net\PeerToPeer\Collaboration\PeerEndPoint.cs (3)
315
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
322
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(epData.pEndPoint, typeof(PEER_ENDPOINT));
330
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(epData.pContact, typeof(PEER_CONTACT));
net\PeerToPeer\Collaboration\PeerNearMe.cs (4)
299
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
308
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(statusData.pEndPoint, typeof(PEER_ENDPOINT));
650
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
656
PEER_PEOPLE_NEAR_ME pnm = (PEER_PEOPLE_NEAR_ME)Marshal.
PtrToStructure
(pnmData.pPeopleNearMe, typeof(PEER_PEOPLE_NEAR_ME));
net\PeerToPeer\Collaboration\PeerObject.cs (4)
324
PEER_COLLAB_EVENT_DATA ped = (PEER_COLLAB_EVENT_DATA)Marshal.
PtrToStructure
(eventData.DangerousGetHandle(),
328
PEER_OBJECT po = (PEER_OBJECT)Marshal.
PtrToStructure
(objData.pObject, typeof(PEER_OBJECT));
341
PEER_CONTACT pc = (PEER_CONTACT)Marshal.
PtrToStructure
(objData.pContact, typeof(PEER_CONTACT));
346
PEER_ENDPOINT pe = (PEER_ENDPOINT)Marshal.
PtrToStructure
(objData.pEndPoint, typeof(PEER_ENDPOINT));
System.Security (39)
system\security\cryptography\cryptoapi.cs (3)
2298
CAPI.CRYPTOAPI_BLOB blob = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(pBlob, typeof(CAPI.CRYPTOAPI_BLOB));
2559
pOIDInfo = (CRYPT_OID_INFO) Marshal.
PtrToStructure
(pv, typeof(CAPI.CRYPT_OID_INFO));
2581
pOIDInfo = (CRYPT_OID_INFO) Marshal.
PtrToStructure
(pv, typeof(CAPI.CRYPT_OID_INFO));
system\security\cryptography\cryptographicattribute.cs (2)
33
internal CryptographicAttributeObject (IntPtr pAttribute) : this((CAPI.CRYPT_ATTRIBUTE) Marshal.
PtrToStructure
(pAttribute, typeof(CAPI.CRYPT_ATTRIBUTE))) {}
88
private CryptographicAttributeObjectCollection (IntPtr pCryptAttributes) : this((CAPI.CRYPT_ATTRIBUTES) Marshal.
PtrToStructure
(pCryptAttributes, typeof(CAPI.CRYPT_ATTRIBUTES))) {}
system\security\cryptography\pkcs\envelopedpkcs7.cs (7)
301
CAPI.CMSG_CMS_RECIPIENT_INFO cmsRecipientInfo = (CAPI.CMSG_CMS_RECIPIENT_INFO) Marshal.
PtrToStructure
(keyAgree.pCmsgRecipientInfo.DangerousGetHandle(), typeof(CAPI.CMSG_CMS_RECIPIENT_INFO));
325
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(pOriginatorCert.DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
326
CAPI.CERT_INFO certInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
669
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(X509Utils.GetCertContext(certificates[index]).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
688
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(X509Utils.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
689
CAPI.CERT_INFO certInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
1031
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(dangerousCertContextHandle, typeof(CAPI.CERT_CONTEXT));
system\security\cryptography\pkcs\pkcsmisc.cs (5)
89
CAPI.CERT_NAME_INFO certNameInfo = (CAPI.CERT_NAME_INFO) Marshal.
PtrToStructure
(pbCertNameInfo.DangerousGetHandle(), typeof(CAPI.CERT_NAME_INFO));
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));
351
CAPI.CRYPT_RC2_CBC_PARAMETERS rc2Parameters = (CAPI.CRYPT_RC2_CBC_PARAMETERS) Marshal.
PtrToStructure
(pbParameters.DangerousGetHandle(), typeof(CAPI.CRYPT_RC2_CBC_PARAMETERS));
382
CAPI.CRYPTOAPI_BLOB blob = (CAPI.CRYPTOAPI_BLOB)Marshal.
PtrToStructure
(pbParameters.DangerousGetHandle(), typeof(CAPI.CRYPTOAPI_BLOB));
system\security\cryptography\pkcs\pkcsutils.cs (6)
58
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(X509Utils.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
59
CAPI.CERT_INFO certInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pCertContext.pCertInfo, typeof(CAPI.CERT_INFO));
81
CAPI.PROV_ENUMALGS_EX peex = (CAPI.PROV_ENUMALGS_EX) Marshal.
PtrToStructure
(pPeex.DangerousGetHandle(), typeof(CAPI.PROV_ENUMALGS_EX));
142
CAPI.CRYPT_ALGORITHM_IDENTIFIER cryptAlgorithmIdentifier = (CAPI.CRYPT_ALGORITHM_IDENTIFIER) Marshal.
PtrToStructure
(pbAlgorithm.DangerousGetHandle(), typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER));
311
CAPI.CMSG_SIGNER_INFO cmsgSignerInfo2 = (CAPI.CMSG_SIGNER_INFO) Marshal.
PtrToStructure
(pbCmsgSignerInfo.DangerousGetHandle(), typeof(CAPI.CMSG_SIGNER_INFO));
406
CAPI.CRYPTOAPI_BLOB decodedBlob = (CAPI.CRYPTOAPI_BLOB) Marshal.
PtrToStructure
(pbDecoded.DangerousGetHandle(), typeof(CAPI.CRYPTOAPI_BLOB));
system\security\cryptography\pkcs\recipientinfo.cs (9)
223
CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO encryptedKeyInfo = (CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO) Marshal.
PtrToStructure
(pEncryptedKeyInfo, typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO));
232
CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO encryptedKeyInfo = (CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO) Marshal.
PtrToStructure
(pEncryptedKeyInfo, typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_INFO));
293
CAPI.CRYPT_ATTRIBUTE_TYPE_VALUE otherKeyAttribute = (CAPI.CRYPT_ATTRIBUTE_TYPE_VALUE) Marshal.
PtrToStructure
(m_encryptedKeyInfo.pOtherAttr, typeof(CAPI.CRYPT_ATTRIBUTE_TYPE_VALUE));
422
CAPI.CMSG_CMS_RECIPIENT_INFO cmsRecipientInfo = (CAPI.CMSG_CMS_RECIPIENT_INFO) Marshal.
PtrToStructure
(pbCmsRecipientInfo.DangerousGetHandle(), typeof(CAPI.CMSG_CMS_RECIPIENT_INFO));
426
CAPI.CMSG_KEY_TRANS_RECIPIENT_INFO keyTrans = (CAPI.CMSG_KEY_TRANS_RECIPIENT_INFO) Marshal.
PtrToStructure
(cmsRecipientInfo.pRecipientInfo, typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_INFO));
430
CAPI.CMSG_KEY_AGREE_RECIPIENT_INFO keyAgree = (CAPI.CMSG_KEY_AGREE_RECIPIENT_INFO) Marshal.
PtrToStructure
(cmsRecipientInfo.pRecipientInfo, typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_INFO));
433
CAPI.CMSG_KEY_AGREE_CERT_ID_RECIPIENT_INFO certIdRecipient = (CAPI.CMSG_KEY_AGREE_CERT_ID_RECIPIENT_INFO) Marshal.
PtrToStructure
(cmsRecipientInfo.pRecipientInfo, typeof(CAPI.CMSG_KEY_AGREE_CERT_ID_RECIPIENT_INFO));
439
CAPI.CMSG_KEY_AGREE_PUBLIC_KEY_RECIPIENT_INFO publicKeyRecipient = (CAPI.CMSG_KEY_AGREE_PUBLIC_KEY_RECIPIENT_INFO) Marshal.
PtrToStructure
(cmsRecipientInfo.pRecipientInfo, typeof(CAPI.CMSG_KEY_AGREE_PUBLIC_KEY_RECIPIENT_INFO));
457
CAPI.CERT_INFO certInfo = (CAPI.CERT_INFO) Marshal.
PtrToStructure
(pbCertInfo.DangerousGetHandle(), typeof(CAPI.CERT_INFO));
system\security\cryptography\pkcs\signerinfo.cs (6)
53
m_cmsgSignerInfo = (CAPI.CMSG_SIGNER_INFO) Marshal.
PtrToStructure
(pbCmsgSignerInfo.DangerousGetHandle(), typeof(CAPI.CMSG_SIGNER_INFO));
79
m_cmsgSignerInfo = (CAPI.CMSG_SIGNER_INFO) Marshal.
PtrToStructure
(pbCmsgSignerInfo.DangerousGetHandle(), typeof(CAPI.CMSG_SIGNER_INFO));
349
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.
PtrToStructure
(X509Utils.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
540
CAPI.CMSG_CMS_SIGNER_INFO cmsgCmsSignerInfo = (CAPI.CMSG_CMS_SIGNER_INFO) Marshal.
PtrToStructure
(pbCmsgCmsSignerInfo.DangerousGetHandle(), typeof(CAPI.CMSG_CMS_SIGNER_INFO));
551
CAPI.CMSG_SIGNER_INFO cmsgSignerInfo = (CAPI.CMSG_SIGNER_INFO) Marshal.
PtrToStructure
(pbCmsgSignerInfo.DangerousGetHandle(), typeof(CAPI.CMSG_SIGNER_INFO));
563
CAPI.CRYPT_ATTRIBUTE attr = (CAPI.CRYPT_ATTRIBUTE) Marshal.
PtrToStructure
(pAttr, typeof(CAPI.CRYPT_ATTRIBUTE));
system\security\cryptography\x509\x509utils.cs (1)
169
CAPI.CRYPT_KEY_PROV_INFO pKeyProvInfo = (CAPI.CRYPT_KEY_PROV_INFO) Marshal.
PtrToStructure
(ptr.DangerousGetHandle(), typeof(CAPI.CRYPT_KEY_PROV_INFO));
System.ServiceModel (22)
System\ServiceModel\Activation\Utility.cs (1)
430
return (ListenerUnsafeNativeMethods.SERVICE_STATUS_PROCESS)Marshal.
PtrToStructure
((IntPtr)pServiceStatusProcess, typeof(ListenerUnsafeNativeMethods.SERVICE_STATUS_PROCESS));
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (1)
383
retProp = (UnsafeNativeMethods.MQPROPVARIANT)Marshal.
PtrToStructure
(props.variants, typeof(UnsafeNativeMethods.MQPROPVARIANT));
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (2)
273
SocketAddressList socketAddressList = (SocketAddressList)Marshal.
PtrToStructure
(this, typeof(SocketAddressList));
281
sockaddr_in6 sockAddr = (sockaddr_in6)Marshal.
PtrToStructure
(socketAddressList.Addresses[i].SockAddr, typeof(sockaddr_in6));
System\ServiceModel\Channels\PnrpPeerResolver.cs (11)
1733
WsaNamespaceInfo nsInfo = (WsaNamespaceInfo)Marshal.
PtrToStructure
(nsInfoPtr,
2149
nativeQuerySet = (WsaQuerySetNative)Marshal.
PtrToStructure
(pNativeData,
2165
nativeCsAddrInfo = (CsAddrInfoNative)Marshal.
PtrToStructure
(addressPtr,
2175
querySet.NSProviderId = (Guid)Marshal.
PtrToStructure
(nativeQuerySet.lpNSProviderId,
2179
querySet.ServiceClassId = (Guid)Marshal.
PtrToStructure
(nativeQuerySet.lpServiceClassId,
2190
BlobNative blob = (BlobNative)Marshal.
PtrToStructure
(nativeQuerySet.lpBlob, typeof(BlobNative));
2193
querySet.Blob = (PnrpCloudInfo)Marshal.
PtrToStructure
(blob.pBlobData,
2205
BlobSafe blob = (BlobSafe)Marshal.
PtrToStructure
(nativeQuerySet.lpBlob, typeof(BlobSafe));
2209
PnrpInfo pnrpInfo = (PnrpInfo)Marshal.
PtrToStructure
(blob.pBlobData,
2231
sockaddr_in sa = (sockaddr_in)Marshal.
PtrToStructure
(socketAddress.lpSockAddr,
2242
sockaddr_in6 sa = (sockaddr_in6)Marshal.
PtrToStructure
(socketAddress.lpSockAddr,
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (1)
87
Marshal.
PtrToStructure
(buffer.DangerousGetHandle(), typeof(TOKEN_STATISTICS));
System\ServiceModel\ComIntegration\DispatchProxy.cs (4)
402
TagVariant varBase = (TagVariant)Marshal.
PtrToStructure
(GetDisp(baseArray, displacement), typeof(TagVariant));
405
TagVariant varActualVariant = (TagVariant)Marshal.
PtrToStructure
(varBase.ptr, typeof(TagVariant));
411
IntPtr pSafeArray = (IntPtr)Marshal.
PtrToStructure
(ppArray, typeof(IntPtr));
508
TagVariant var = (TagVariant)Marshal.
PtrToStructure
(GetDisp(baseArray, displacement), typeof(TagVariant));
System\ServiceModel\ComIntegration\TypeLibraryHelper.cs (1)
85
System.Runtime.InteropServices.ComTypes.TYPELIBATTR attr = (System.Runtime.InteropServices.ComTypes.TYPELIBATTR)Marshal.
PtrToStructure
(ptr, typeof(System.Runtime.InteropServices.ComTypes.TYPELIBATTR));
System\ServiceModel\Security\TlsSspiNegotiation.cs (1)
736
_CERT_CONTEXT context = (_CERT_CONTEXT)Marshal.
PtrToStructure
(certContext.DangerousGetHandle(), typeof(_CERT_CONTEXT));
System.Windows.Forms (6)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1814
var timestampContext = (Win32.CRYPT_TIMESTAMP_CONTEXT)Marshal.
PtrToStructure
(ppTsContext, typeof(Win32.CRYPT_TIMESTAMP_CONTEXT));
winforms\Managed\System\WinForms\Control.cs (1)
17866
return (V)Marshal.
PtrToStructure
(vtblptr, typeof(V));
winforms\Managed\System\WinForms\ListView.cs (1)
4597
NativeMethods.WINDOWPOS wpos = (NativeMethods.WINDOWPOS) Marshal.
PtrToStructure
(pwpos, typeof(NativeMethods.WINDOWPOS));
winforms\Managed\System\WinForms\MenuItem.cs (2)
1016
MsaaMenuInfoWithId msaaMenuInfo = (MsaaMenuInfoWithId) Marshal.
PtrToStructure
(itemData, typeof(MsaaMenuInfoWithId));
1022
MsaaMenuInfoWithId msaaMenuInfo = (MsaaMenuInfoWithId) Marshal.
PtrToStructure
(itemData, typeof(MsaaMenuInfoWithId));
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
7526
return Marshal.
PtrToStructure
(lparam, cls);
System.Workflow.ComponentModel (1)
AuthoringOM\Design\DesignerWidgets.cs (1)
2258
NativeMethods.NMHDR notifyHeader = Marshal.
PtrToStructure
(msg.LParam, typeof(NativeMethods.NMHDR)) as NativeMethods.NMHDR;
UIAutomationClient (5)
MS\Internal\Automation\UiaCoreAPI.cs (5)
664
UiaEventArgs args = (UiaEventArgs)Marshal.
PtrToStructure
(argsAddr, typeof(UiaEventArgs));
682
UiaPropertyChangedEventArgs pcargs = (UiaPropertyChangedEventArgs)Marshal.
PtrToStructure
(argsAddr, typeof(UiaPropertyChangedEventArgs));
696
UiaStructureChangedEventArgs scargs = (UiaStructureChangedEventArgs)Marshal.
PtrToStructure
(argsAddr, typeof(UiaStructureChangedEventArgs));
703
UiaAsyncContentLoadedEventArgs aclargs = (UiaAsyncContentLoadedEventArgs)Marshal.
PtrToStructure
(argsAddr, typeof(UiaAsyncContentLoadedEventArgs));
709
UiaWindowClosedEventArgs wcargs = (UiaWindowClosedEventArgs)Marshal.
PtrToStructure
(argsAddr, typeof(UiaWindowClosedEventArgs));
WindowsBase (2)
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (2)
67
return Marshal.
PtrToStructure
(lparam, cls);
83
return (T)Marshal.
PtrToStructure
(lParam, typeof(T));
WsatConfig (1)
Configuration\Utilities.cs (1)
59
SafeNativeMethods.WKSTA_INFO_100 workstationInfo = (SafeNativeMethods.WKSTA_INFO_100)Marshal.
PtrToStructure
(workstationPtr, typeof(SafeNativeMethods.WKSTA_INFO_100));
WsatUI (2)
Configuration\Utilities.cs (1)
59
SafeNativeMethods.WKSTA_INFO_100 workstationInfo = (SafeNativeMethods.WKSTA_INFO_100)Marshal.
PtrToStructure
(workstationPtr, typeof(SafeNativeMethods.WKSTA_INFO_100));
MMCUI\WSATPropertySheet.cs (1)
299
NMHDR header = (NMHDR)Marshal.
PtrToStructure
(longParameter, typeof(NMHDR));