95 references to GetDelegateForFunctionPointer
mscorlib (1)
system\runtime\interopservices\marshal.cs (1)
2630
return (TDelegate)(object)
GetDelegateForFunctionPointer
(ptr, typeof(TDelegate));
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\GetWinFXPath.cs (1)
222
IsWow64ProcessDelegate isWow64Process = (IsWow64ProcessDelegate)Marshal.
GetDelegateForFunctionPointer
(isWow64ProcessHandle, typeof(IsWow64ProcessDelegate));
PresentationCore (1)
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (1)
258
ChangeWindowMessageFilterNative function = Marshal.
GetDelegateForFunctionPointer
(
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapterBase.cs (1)
109
return Marshal.
GetDelegateForFunctionPointer
(funcPtr, typeof(TDelegate));
System (11)
compmod\System\Runtime\InteropServices\StandardOleMarshalObject.cs (2)
85
GetMarshalSizeMax_Delegate del = (GetMarshalSizeMax_Delegate)Marshal.
GetDelegateForFunctionPointer
(method, typeof(GetMarshalSizeMax_Delegate));
108
MarshalInterface_Delegate del = (MarshalInterface_Delegate)Marshal.
GetDelegateForFunctionPointer
(method, typeof(MarshalInterface_Delegate));
net\System\Net\Sockets\_DynamicWinsockMethods.cs (8)
149
acceptEx = (AcceptExDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrAcceptEx, typeof(AcceptExDelegate));
165
getAcceptExSockaddrs = (GetAcceptExSockaddrsDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrGetAcceptExSockaddrs,
182
connectEx = (ConnectExDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrConnectEx, typeof(ConnectExDelegate));
198
disconnectEx = (DisconnectExDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrDisconnectEx, typeof(DisconnectExDelegate));
199
disconnectEx_Blocking = (DisconnectExDelegate_Blocking)Marshal.
GetDelegateForFunctionPointer
(ptrDisconnectEx,
216
recvMsg = (WSARecvMsgDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrWSARecvMsg, typeof(WSARecvMsgDelegate));
217
recvMsg_Blocking = (WSARecvMsgDelegate_Blocking)Marshal.
GetDelegateForFunctionPointer
(ptrWSARecvMsg,
234
transmitPackets = (TransmitPacketsDelegate)Marshal.
GetDelegateForFunctionPointer
(ptrTransmitPackets,
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
461
return (DT) (Object) Marshal.
GetDelegateForFunctionPointer
(entryPoint, typeof(DT));
System.Data (9)
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (7)
42
DangerousIDataInitializeGetDataSource = (UnsafeNativeMethods.IDataInitializeGetDataSource)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IDataInitializeGetDataSource));
113
QueryInterface = (UnsafeNativeMethods.IUnknownQueryInterface)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IUnknownQueryInterface));
129
Initialize = (UnsafeNativeMethods.IDBInitializeInitialize)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IDBInitializeInitialize));
154
CreateSession = (UnsafeNativeMethods.IDBCreateSessionCreateSession)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IDBCreateSessionCreateSession));
244
UnsafeNativeMethods.IUnknownQueryInterface QueryInterface = (UnsafeNativeMethods.IUnknownQueryInterface)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IUnknownQueryInterface));
251
DangerousIDBCreateCommandCreateCommand = (UnsafeNativeMethods.IDBCreateCommandCreateCommand)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IDBCreateCommandCreateCommand));
288
CreateCommand = (UnsafeNativeMethods.IDBCreateCommandCreateCommand)Marshal.
GetDelegateForFunctionPointer
(method, typeof(UnsafeNativeMethods.IDBCreateCommandCreateCommand));
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (2)
127
s_localDBCreateInstance = (LocalDBCreateInstanceDelegate)Marshal.
GetDelegateForFunctionPointer
(functionAddr, typeof(LocalDBCreateInstanceDelegate));
169
s_localDBFormatMessage = (LocalDBFormatMessageDelegate)Marshal.
GetDelegateForFunctionPointer
(functionAddr, typeof(LocalDBFormatMessageDelegate));
System.IdentityModel.Selectors (16)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (16)
110
(CsV2CloseCryptoHandle)Marshal.
GetDelegateForFunctionPointer
(
116
(CsV2Decrypt)Marshal.
GetDelegateForFunctionPointer
(
121
(CsV2Encrypt)Marshal.
GetDelegateForFunctionPointer
(
126
(CsV2FreeToken)Marshal.
GetDelegateForFunctionPointer
(
131
(CsV2GenerateDerivedKey)Marshal.
GetDelegateForFunctionPointer
(
136
(CsV2GetCryptoTransform)Marshal.
GetDelegateForFunctionPointer
(
141
(CsV2GetKeyedHash)Marshal.
GetDelegateForFunctionPointer
(
146
(CsV2GetToken)Marshal.
GetDelegateForFunctionPointer
(
151
(CsV2HashCore)Marshal.
GetDelegateForFunctionPointer
(
156
(CsV2HashFinal)Marshal.
GetDelegateForFunctionPointer
(
161
(CsV2ImportInformationCard)Marshal.
GetDelegateForFunctionPointer
(
166
(CsV2ManageCardSpace)Marshal.
GetDelegateForFunctionPointer
(
171
(CsV2SignHash)Marshal.
GetDelegateForFunctionPointer
(
176
(CsV2TransformBlock)Marshal.
GetDelegateForFunctionPointer
(
181
(CsV2TransformFinalBlock)Marshal.
GetDelegateForFunctionPointer
(
187
(CsV2VerifyHash)Marshal.
GetDelegateForFunctionPointer
(
System.Management (51)
managementscope.cs (51)
313
ResetSecurity_f =(ResetSecurity) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(ResetSecurity));
318
SetSecurity_f =(SetSecurity) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(SetSecurity));
323
BlessIWbemServices_f =(BlessIWbemServices) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(BlessIWbemServices));
328
BlessIWbemServicesObject_f =(BlessIWbemServicesObject) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(BlessIWbemServicesObject));
333
GetPropertyHandle_f27=(GetPropertyHandle) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetPropertyHandle));
338
WritePropertyValue_f28=(WritePropertyValue) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(WritePropertyValue));
343
Clone_f12=(Clone) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Clone));
348
VerifyClientKey_f =(VerifyClientKey) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(VerifyClientKey));
353
GetQualifierSet_f =(GetQualifierSet) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetQualifierSet));
358
Get_f =(Get) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Get));
363
Put_f =(Put) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Put));
368
Delete_f =(Delete) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Delete));
373
GetNames_f =(GetNames) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetNames));
378
BeginEnumeration_f =(BeginEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(BeginEnumeration));
383
Next_f =(Next) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Next));
388
EndEnumeration_f =(EndEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(EndEnumeration));
393
GetPropertyQualifierSet_f =(GetPropertyQualifierSet) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetPropertyQualifierSet));
398
Clone_f =(Clone) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Clone));
403
GetObjectText_f =(GetObjectText) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetObjectText));
408
SpawnDerivedClass_f =(SpawnDerivedClass) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(SpawnDerivedClass));
413
SpawnInstance_f =(SpawnInstance) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(SpawnInstance));
418
CompareTo_f =(CompareTo) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(CompareTo));
423
GetPropertyOrigin_f =(GetPropertyOrigin) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetPropertyOrigin));
428
InheritsFrom_f =(InheritsFrom) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(InheritsFrom));
433
GetMethod_f =(GetMethod) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetMethod));
438
PutMethod_f =(PutMethod) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(PutMethod));
443
DeleteMethod_f =(DeleteMethod) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(DeleteMethod));
448
BeginMethodEnumeration_f =(BeginMethodEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(BeginMethodEnumeration));
453
NextMethod_f =(NextMethod) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(NextMethod));
458
EndMethodEnumeration_f =(EndMethodEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(EndMethodEnumeration));
463
GetMethodQualifierSet_f =(GetMethodQualifierSet) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetMethodQualifierSet));
468
GetMethodOrigin_f =(GetMethodOrigin) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetMethodOrigin));
473
QualifierGet_f=(QualifierSet_Get) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_Get));
478
QualifierPut_f=(QualifierSet_Put) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_Put));
483
QualifierDelete_f=(QualifierSet_Delete) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_Delete));
488
QualifierGetNames_f=(QualifierSet_GetNames) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_GetNames));
493
QualifierBeginEnumeration_f=(QualifierSet_BeginEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_BeginEnumeration));
498
QualifierNext_f=(QualifierSet_Next) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_Next));
503
QualifierEndEnumeration_f=(QualifierSet_EndEnumeration) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(QualifierSet_EndEnumeration));
508
GetCurrentApartmentType_f =(GetCurrentApartmentType) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetCurrentApartmentType));
513
GetDemultiplexedStub_f =(GetDemultiplexedStub) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetDemultiplexedStub));
518
CreateInstanceEnumWmi_f =(CreateInstanceEnumWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(CreateInstanceEnumWmi));
523
CreateClassEnumWmi_f =(CreateClassEnumWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(CreateClassEnumWmi));
528
ExecQueryWmi_f =(ExecQueryWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(ExecQueryWmi));
533
ExecNotificationQueryWmi_f =(ExecNotificationQueryWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(ExecNotificationQueryWmi));
538
PutInstanceWmi_f =(PutInstanceWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(PutInstanceWmi));
543
PutClassWmi_f =(PutClassWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(PutClassWmi));
548
CloneEnumWbemClassObject_f =(CloneEnumWbemClassObject) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(CloneEnumWbemClassObject));
553
ConnectServerWmi_f =(ConnectServerWmi) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(ConnectServerWmi));
558
GetErrorInfo_f =(GetErrorInfo) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(GetErrorInfo));
563
Initialize_f =(Initialize) Marshal.
GetDelegateForFunctionPointer
(procAddr, typeof(Initialize));
System.ServiceModel (1)
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (1)
79
getCODelegate = (DelegateDllGetClassObject)Marshal.
GetDelegateForFunctionPointer
(procaddr, typeof(DelegateDllGetClassObject));
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (2)
17898
FindConnectionPointD findConnectionPoint = (FindConnectionPointD)Marshal.
GetDelegateForFunctionPointer
(this.vtbl.FindConnectionPointPtr, typeof(FindConnectionPointD));
17945
AdviseD advise = (AdviseD)Marshal.
GetDelegateForFunctionPointer
(this.vtbl.AdvisePtr, typeof(AdviseD));
WindowsBase (1)
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
461
return (DT) (Object) Marshal.
GetDelegateForFunctionPointer
(entryPoint, typeof(DT));