diff --git a/src/dotnet/FileSystem.cs b/src/dotnet/FileSystem.cs index 0ff28de6..a2f3aa01 100644 --- a/src/dotnet/FileSystem.cs +++ b/src/dotnet/FileSystem.cs @@ -184,6 +184,10 @@ namespace Fsp { return Api.FspWin32FromNtStatus(Status); } + public static void FspDebugLogSetHandle(IntPtr Handle) + { + Api.FspDebugLogSetHandle(Handle); + } /* operations */ protected virtual Int32 ExceptionHandler(Exception ex) diff --git a/src/dotnet/Interop.cs b/src/dotnet/Interop.cs index cb1eeddf..ede2d672 100644 --- a/src/dotnet/Interop.cs +++ b/src/dotnet/Interop.cs @@ -488,6 +488,9 @@ namespace Fsp.Interop [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate UInt32 FspWin32FromNtStatus( Int32 Status); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + internal delegate void FspDebugLogSetHandle( + IntPtr Handle); /* callbacks */ [UnmanagedFunctionPointer(CallingConvention.Cdecl)] @@ -538,6 +541,7 @@ namespace Fsp.Interop internal static Proto.FspServiceLog FspServiceLog; internal static Proto.FspNtStatusFromWin32 FspNtStatusFromWin32; internal static Proto.FspWin32FromNtStatus FspWin32FromNtStatus; + internal static Proto.FspDebugLogSetHandle FspDebugLogSetHandle; internal static unsafe Int32 FspFileSystemSetMountPointEx( IntPtr FileSystem, @@ -718,6 +722,7 @@ namespace Fsp.Interop FspVersion = GetEntryPoint(Module); FspNtStatusFromWin32 = GetEntryPoint(Module); FspWin32FromNtStatus = GetEntryPoint(Module); + FspDebugLogSetHandle = GetEntryPoint(Module); } static Api() {