LANCommander.Interposer/LANCommander.Interposer.NET/Events/FileEventArgs.cs
Pat Hartl 2318fdf611 Add .NET bindings
- Publishes NuGet package with .NET bindings
- Allows direct injection
- Allows for event subscription
- Adds callbacks to main Interposer DLL
2026-05-29 23:31:06 -05:00

31 lines
984 B
C#

using System;
namespace LANCommander.Interposer.Events
{
/// <summary>
/// Data for file operation events (CreateFile, GetFileAttributes, FindFirstFile,
/// Delete, Move, Copy, LoadLibrary).
/// </summary>
public sealed class FileEventArgs : EventArgs
{
/// <summary>
/// The operation verb: "FILE READ", "FILE WRITE", "FILE R/W", "FILE ATTR",
/// "FILE REDIRECT", "FILE OVERLAY", "FILE DELETE", "FILE MOVE", "FILE COPY",
/// "FILE FIND", "DLL LOAD".
/// </summary>
public string Verb { get; }
/// <summary>The primary file path.</summary>
public string Path { get; }
/// <summary>The redirect target, destination path, or null.</summary>
public string SecondaryPath { get; }
internal FileEventArgs(string verb, string path, string secondaryPath)
{
Verb = verb;
Path = path;
SecondaryPath = secondaryPath;
}
}
}