{"id":37034599,"url":"https://github.com/detoursharp/detoursharp.hosting","last_synced_at":"2026-01-14T04:03:14.598Z","repository":{"id":299685868,"uuid":"431486633","full_name":"DetourSharp/DetourSharp.Hosting","owner":"DetourSharp","description":"A fully managed library for hosting the .NET runtime in remote processes.","archived":false,"fork":false,"pushed_at":"2022-03-04T13:39:47.000Z","size":44,"stargazers_count":32,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T16:37:04.269Z","etag":null,"topics":["csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DetourSharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-11-24T13:02:08.000Z","updated_at":"2025-07-28T12:13:21.000Z","dependencies_parsed_at":"2025-06-17T20:07:49.050Z","dependency_job_id":"3da61b35-7728-42db-98e0-04b1096b7ac1","html_url":"https://github.com/DetourSharp/DetourSharp.Hosting","commit_stats":null,"previous_names":["detoursharp/detoursharp.hosting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DetourSharp/DetourSharp.Hosting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DetourSharp%2FDetourSharp.Hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DetourSharp%2FDetourSharp.Hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DetourSharp%2FDetourSharp.Hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DetourSharp%2FDetourSharp.Hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DetourSharp","download_url":"https://codeload.github.com/DetourSharp/DetourSharp.Hosting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DetourSharp%2FDetourSharp.Hosting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csharp","dotnet"],"created_at":"2026-01-14T04:03:12.729Z","updated_at":"2026-01-14T04:03:14.590Z","avatar_url":"https://github.com/DetourSharp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DetourSharp.Hosting\nDetourSharp.Hosting is a fully managed library for hosting the .NET runtime in remote processes.\n\n# Sample\n```cs\nusing System.Diagnostics;\nusing System.Runtime.InteropServices;\nusing DetourSharp.Hosting;\n\n// Start a new Notepad process to load the runtime into.\nvar process = Process.Start(@\"C:\\Windows\\System32\\notepad.exe\");\n\n// Wait for the process to initialize.\nprocess.WaitForInputIdle();\n\n// The RemoteRuntime class will load the .NET runtime into the\n// process but it will not perform initialization immediately.\nusing var runtime = new RemoteRuntime(process.Id);\n\n// Initialize the runtime.\nvar config = $\"{typeof(Program).Assembly.GetName().Name}.runtimeconfig.json\";\nruntime.Initialize(Path.Combine(AppContext.BaseDirectory, config));\n\n// Invoke a method in the remote runtime.\nruntime.Invoke(((Delegate)ShowMessageBox).Method, (\"Hello, world!\", \"Success\"));\n\n// We can only pass one parameter, so we use a tuple to pass multiple values.\nstatic void ShowMessageBox((string Message, string Caption) parameters)\n{\n    _ = MessageBoxW(IntPtr.Zero, parameters.Message, parameters.Caption, 0);\n\n    [DllImport(\"user32\", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]\n    static extern int MessageBoxW(IntPtr hWnd, string lpText, string lpCaption, uint uType);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetoursharp%2Fdetoursharp.hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdetoursharp%2Fdetoursharp.hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetoursharp%2Fdetoursharp.hosting/lists"}