src: dotnet: add FspDebugLogSetHandle

This commit is contained in:
Bill Zissimopoulos 2017-04-07 22:28:24 -07:00
parent 6365a553dc
commit aa1e32494c
2 changed files with 9 additions and 0 deletions

View File

@ -184,6 +184,10 @@ namespace Fsp
{ {
return Api.FspWin32FromNtStatus(Status); return Api.FspWin32FromNtStatus(Status);
} }
public static void FspDebugLogSetHandle(IntPtr Handle)
{
Api.FspDebugLogSetHandle(Handle);
}
/* operations */ /* operations */
protected virtual Int32 ExceptionHandler(Exception ex) protected virtual Int32 ExceptionHandler(Exception ex)

View File

@ -488,6 +488,9 @@ namespace Fsp.Interop
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate UInt32 FspWin32FromNtStatus( internal delegate UInt32 FspWin32FromNtStatus(
Int32 Status); Int32 Status);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void FspDebugLogSetHandle(
IntPtr Handle);
/* callbacks */ /* callbacks */
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
@ -538,6 +541,7 @@ namespace Fsp.Interop
internal static Proto.FspServiceLog FspServiceLog; internal static Proto.FspServiceLog FspServiceLog;
internal static Proto.FspNtStatusFromWin32 FspNtStatusFromWin32; internal static Proto.FspNtStatusFromWin32 FspNtStatusFromWin32;
internal static Proto.FspWin32FromNtStatus FspWin32FromNtStatus; internal static Proto.FspWin32FromNtStatus FspWin32FromNtStatus;
internal static Proto.FspDebugLogSetHandle FspDebugLogSetHandle;
internal static unsafe Int32 FspFileSystemSetMountPointEx( internal static unsafe Int32 FspFileSystemSetMountPointEx(
IntPtr FileSystem, IntPtr FileSystem,
@ -718,6 +722,7 @@ namespace Fsp.Interop
FspVersion = GetEntryPoint<Proto.FspVersion>(Module); FspVersion = GetEntryPoint<Proto.FspVersion>(Module);
FspNtStatusFromWin32 = GetEntryPoint<Proto.FspNtStatusFromWin32>(Module); FspNtStatusFromWin32 = GetEntryPoint<Proto.FspNtStatusFromWin32>(Module);
FspWin32FromNtStatus = GetEntryPoint<Proto.FspWin32FromNtStatus>(Module); FspWin32FromNtStatus = GetEntryPoint<Proto.FspWin32FromNtStatus>(Module);
FspDebugLogSetHandle = GetEntryPoint<Proto.FspDebugLogSetHandle>(Module);
} }
static Api() static Api()
{ {