Beispiel #1
0
        public void WatchPath(string path)
        {
            CommandMessage message = new CommandMessage();

            message.Command = MinispyCommand.SetPathFilter;
            connector.Send(message, PathConverter.ReplaceDriveLetter(path));
        }
Beispiel #2
0
        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);
        }