Fix credential event callback reference lifetime

This commit is contained in:
Ryan Newington
2026-08-30 15:42:48 +10:00
parent b0a9886708
commit 7fad9cb351
18 changed files with 1105 additions and 8 deletions
@@ -0,0 +1,10 @@
using System;
using System.Runtime.InteropServices;
namespace Lithnet.CredentialProvider.UnitTests.ComInterop
{
// The trailing returnValue pointer characterizes the current CLR projection without PreserveSig.
// It does not establish the native ABI of the undocumented Windows Events3 interface.
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate int RawCredentialEventBitmapBufferDelegate(IntPtr instance, IntPtr credential, uint fieldId, uint imageBufferSize, IntPtr imageBuffer, IntPtr returnValue);
}