51 references to GetFunctionPointerForDelegate
Microsoft.Diagnostics.DataContractReader.Legacy (1)
NativeStringHolder.cs (1)
36IntPtr fnPtr = Marshal.GetFunctionPointerForDelegate(assignCopy);
Microsoft.DotNet.NativeWrapper (4)
_generated\0\LibraryImports.g.cs (3)
18__result_native = result != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(result) : default; 67__result_native = result != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(result) : default; 109__result_native = result != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(result) : default;
NETCoreSdkResolverNativeWrapper.cs (1)
31nint errorWriter = Marshal.GetFunctionPointerForDelegate(swallowErrors);
Microsoft.Private.Windows.Core (5)
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumChildWindowsNativeCallback);
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (1)
14(delegate* unmanaged[Stdcall]<HMONITOR, HDC, RECT*, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumDisplayMonitorsNativeCallback);
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (1)
14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumThreadWindowsNativeCallback);
Windows\Win32\PInvokeCore.EnumWindows.cs (1)
14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumWindowsNativeCallback);
Windows\Win32\PInvokeCore.SetWindowLong.cs (1)
36IntPtr pointer = Marshal.GetFunctionPointerForDelegate(dwNewLong);
Microsoft.Win32.SystemEvents (2)
_generated\0\LibraryImports.g.cs (1)
639__handler_native = handler != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(handler) : default;
Microsoft\Win32\SystemEvents.cs (1)
674lpfnWndProc = Marshal.GetFunctionPointerForDelegate(_windowProc),
PresentationFramework (7)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
23Marshal.GetFunctionPointerForDelegate(del));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (4)
119nativeVftbl[6] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.First_0); 452nativeVftbl[7] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.get_HasCurrent_1); 453nativeVftbl[8] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.MoveNext_2); 454nativeVftbl[9] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.GetMany_3);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
242nativeVftbl[7] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.get_Size_1); 244nativeVftbl[9] = Marshal.GetFunctionPointerForDelegate(AbiToProjectionVftable.GetMany_3);
System.Data.OleDb (4)
OleDbWrapper.cs (4)
146if ((null == QueryInterface) || (method != Marshal.GetFunctionPointerForDelegate(QueryInterface))) 163if ((null == Initialize) || (method != Marshal.GetFunctionPointerForDelegate(Initialize))) 192if ((null == CreateSession) || (method != Marshal.GetFunctionPointerForDelegate(CreateSession))) 391if ((null == CreateCommand) || (method != Marshal.GetFunctionPointerForDelegate(CreateCommand)))
System.Diagnostics.PerformanceCounter (1)
_generated\0\LibraryImports.g.cs (1)
898__ControlCallback_native = ControlCallback != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(ControlCallback) : default;
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (1)
645IntPtr syncAllFunctionPointer = Marshal.GetFunctionPointerForDelegate(syncAllCallback);
System.DirectoryServices.Protocols (6)
_generated\0\LibraryImports.g.cs (3)
578__outValue_native = outValue != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(outValue) : default; 621__outValue_native = outValue != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(outValue) : default; 1138__proc_native = proc != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(proc) : default;
src\runtime\src\libraries\Common\src\Interop\Interop.Ldap.cs (3)
248_native.query = managed.query is not null ? Marshal.GetFunctionPointerForDelegate(managed.query) : IntPtr.Zero; 249_native.notify = managed.notify is not null ? Marshal.GetFunctionPointerForDelegate(managed.notify) : IntPtr.Zero; 250_native.dereference = managed.dereference is not null ? Marshal.GetFunctionPointerForDelegate(managed.dereference) : IntPtr.Zero;
System.Drawing.Common (4)
System\Drawing\Graphics.cs (3)
2191callback is null ? 0 : Marshal.GetFunctionPointerForDelegate(callback), 2244callback is null ? 0 : Marshal.GetFunctionPointerForDelegate(callback), 2306callback is null ? 0 : Marshal.GetFunctionPointerForDelegate(callback),
System\Drawing\Graphics.EnumerateMetafileDataAdapter.cs (1)
28NativeCallback = Marshal.GetFunctionPointerForDelegate(_nativeCallback);
System.Net.Http.WinHttpHandler (1)
_generated\0\LibraryImports.g.cs (1)
1316__callback_native = callback != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(callback) : default;
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.SetWindowLong.cs (1)
36IntPtr pointer = Marshal.GetFunctionPointerForDelegate(dwNewLong);
System.ServiceProcess.ServiceController (2)
_generated\0\LibraryImports.g.cs (1)
549__callback_native = callback != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(callback) : default;
System\ServiceProcess\ServiceBase.cs (1)
702callback = Marshal.GetFunctionPointerForDelegate(_mainCallback!),
System.Speech (1)
_generated\0\LibraryImports.g.cs (1)
60__dwCallback_native = dwCallback != null ? global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(dwCallback) : default;
System.Windows.Forms (10)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
46(void*)Marshal.GetFunctionPointerForDelegate(_winEventProcCallback);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5584IntPtr callbackPointer = Marshal.GetFunctionPointerForDelegate(callback);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (1)
94IntPtr hook = Marshal.GetFunctionPointerForDelegate(_callBack);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2994es.pfnCallback = Marshal.GetFunctionPointerForDelegate(callback); 3098es.pfnCallback = Marshal.GetFunctionPointerForDelegate(callback);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (1)
65IntPtr hook = Marshal.GetFunctionPointerForDelegate(_callBack);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
33_functionPointer = (delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint>)(void*)Marshal.GetFunctionPointerForDelegate(_hookProc); 221nint hookedWndProc = Marshal.GetFunctionPointerForDelegate(ownerWindowProcedure);
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
157nint callback = Marshal.GetFunctionPointerForDelegate(_windProc);
System\Windows\Forms\WindowSubclassHandler.cs (1)
72_windowProcDelegatePtr = (void*)Marshal.GetFunctionPointerForDelegate(_windowProcDelegate);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
78IntPtr hook = Marshal.GetFunctionPointerForDelegate(_callBack);