{"id":19041356,"url":"https://github.com/andreyrusyaev/shellnotifywatcher","last_synced_at":"2025-04-23T21:27:30.014Z","repository":{"id":258795690,"uuid":"403367571","full_name":"AndreyRusyaev/shellnotifywatcher","owner":"AndreyRusyaev","description":"Managed C# wrapper for Win32 SHChangeNotify and SHCNE_ events.","archived":false,"fork":false,"pushed_at":"2024-10-31T06:29:16.000Z","size":64,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T06:51:20.207Z","etag":null,"topics":["shchangenotify","shell","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreyRusyaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-05T17:10:09.000Z","updated_at":"2024-10-31T06:29:20.000Z","dependencies_parsed_at":"2025-04-17T17:59:52.809Z","dependency_job_id":"42399216-de51-4fb6-b2ae-1b0bfc99c114","html_url":"https://github.com/AndreyRusyaev/shellnotifywatcher","commit_stats":null,"previous_names":["andreyrusyaev/shellnotifywatcher"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreyRusyaev%2Fshellnotifywatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreyRusyaev%2Fshellnotifywatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreyRusyaev%2Fshellnotifywatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreyRusyaev%2Fshellnotifywatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreyRusyaev","download_url":"https://codeload.github.com/AndreyRusyaev/shellnotifywatcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250516630,"owners_count":21443654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["shchangenotify","shell","windows"],"created_at":"2024-11-08T22:28:45.733Z","updated_at":"2025-04-23T21:27:29.994Z","avatar_url":"https://github.com/AndreyRusyaev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Notifications Watcher\n\nManaged C# wrapper for SHChangeNotify and SHCNE_ events.\n\n[![NuGet Downloads](https://img.shields.io/nuget/dt/shellnotifywatcher)](https://www.nuget.org/packages/shellnotifywatcher)\n[![NuGet Version](https://img.shields.io/nuget/v/shellnotifywatcher)](https://www.nuget.org/packages/shellnotifywatcher)\n\n```cs\nusing ShellNotifyWatcher watcher = new ShellNotifyWatcher\n{\n    Path = \"C:\\\\\",\n    Recursive = true,\n    EventFilters = ShellEventFilters.AllEvents\n};\n\n// Item/Folder events\nwatcher.ItemChanged += (obj, e) =\u003e Console.WriteLine(\"{0} {1} {2}\", e.ChangeType, e.ItemType, e.Path);\nwatcher.ItemRenamed += (obj, e) =\u003e Console.WriteLine(\"{0} {1} {2} -\u003e {3}\", e.ChangeType, e.ItemType, e.OldPath, e.NewPath);\nwatcher.DriveChanged += (obj, e) =\u003e Console.WriteLine(\"{0} {1}\", e.ChangeType, e.Path);\nwatcher.ShareChanged += (obj, e) =\u003e Console.WriteLine(\"ShareStatusChanged: {0} {1}\", e.Status, e.Path);\n\n// Global events\nwatcher.FreespaceChanged += (obj, e) =\u003e Console.WriteLine(\"FreespaceChanged Drives: {0}\", string.Join(\", \", e.Drives));\nwatcher.ServerDisconnected += (obj, e) =\u003e Console.WriteLine(\"ServerDisconnected\");\nwatcher.FileTypeAssociationChanged += (obj, e) =\u003e Console.WriteLine(\"FileTypeAssociationChanged\");\nwatcher.SystemImageListChanged += (obj, e) =\u003e Console.WriteLine(\"SystemImageListChanged ImageIndex: {0}\", e.ImageIndex);\nwatcher.ExtendedEventOccurred += (obj, e) =\u003e Console.WriteLine(\"ExtendedEventOccurred EventId: {0}\", e.EventId);\n\nwatcher.EnableRaisingEvents = true;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreyrusyaev%2Fshellnotifywatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreyrusyaev%2Fshellnotifywatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreyrusyaev%2Fshellnotifywatcher/lists"}