public void WatchPath(string path) { CommandMessage message = new CommandMessage(); message.Command = MinispyCommand.SetPathFilter; connector.Send(message, PathConverter.ReplaceDriveLetter(path)); }
private static FileSystemEvent CreateFileSystemEvent(LogRecord record, string[] strings) { var fileSystemEvent = new FileSystemEvent() { Filename = PathConverter.ReplaceDevicePath(strings[0]), ProcessId = record.Data.ProcessId, Type = record.Data.EventType }; return(fileSystemEvent); }