{"action":"created","comment":{"url":"https://api.github.com/repos/xenserver/win-installer/pulls/comments/43270328","id":43270328,"diff_hunk":"@@ -317,7 +317,10 @@ private static void UninstallXenLegacy()\n \n             try\n             {\n-                PInvoke.HardwareDevice.Remove(@\"root\\xenevtchn\");\n+                XSToolsInstallation.Device.RemoveFromRegistry(","path":"src/InstallAgent/InstallAgent.cs","position":5,"original_position":5,"commit_id":"cdfafef36bd0f7dba24f7abe96df3e95b1a807bb","original_commit_id":"cdfafef36bd0f7dba24f7abe96df3e95b1a807bb","user":{"login":"benchalmers","id":2122072,"avatar_url":"https://avatars.githubusercontent.com/u/2122072?v=3","gravatar_id":"","url":"https://api.github.com/users/benchalmers","html_url":"https://github.com/benchalmers","followers_url":"https://api.github.com/users/benchalmers/followers","following_url":"https://api.github.com/users/benchalmers/following{/other_user}","gists_url":"https://api.github.com/users/benchalmers/gists{/gist_id}","starred_url":"https://api.github.com/users/benchalmers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benchalmers/subscriptions","organizations_url":"https://api.github.com/users/benchalmers/orgs","repos_url":"https://api.github.com/users/benchalmers/repos","events_url":"https://api.github.com/users/benchalmers/events{/privacy}","received_events_url":"https://api.github.com/users/benchalmers/received_events","type":"User","site_admin":false},"body":"This should be RemoveFromSystem","created_at":"2015-10-28T15:24:47Z","updated_at":"2015-10-28T15:24:47Z","html_url":"https://github.com/xenserver/win-installer/pull/243#discussion_r43270328","pull_request_url":"https://api.github.com/repos/xenserver/win-installer/pulls/243","_links":{"self":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/comments/43270328"},"html":{"href":"https://github.com/xenserver/win-installer/pull/243#discussion_r43270328"},"pull_request":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/243"}}},"pull_request":{"url":"https://api.github.com/repos/xenserver/win-installer/pulls/243","id":49010989,"html_url":"https://github.com/xenserver/win-installer/pull/243","diff_url":"https://github.com/xenserver/win-installer/pull/243.diff","patch_url":"https://github.com/xenserver/win-installer/pull/243.patch","issue_url":"https://api.github.com/repos/xenserver/win-installer/issues/243","number":243,"state":"open","locked":false,"title":"HardwareDevice => Device - class refactoring","user":{"login":"kostaslamda","id":8862513,"avatar_url":"https://avatars.githubusercontent.com/u/8862513?v=3","gravatar_id":"","url":"https://api.github.com/users/kostaslamda","html_url":"https://github.com/kostaslamda","followers_url":"https://api.github.com/users/kostaslamda/followers","following_url":"https://api.github.com/users/kostaslamda/following{/other_user}","gists_url":"https://api.github.com/users/kostaslamda/gists{/gist_id}","starred_url":"https://api.github.com/users/kostaslamda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostaslamda/subscriptions","organizations_url":"https://api.github.com/users/kostaslamda/orgs","repos_url":"https://api.github.com/users/kostaslamda/repos","events_url":"https://api.github.com/users/kostaslamda/events{/privacy}","received_events_url":"https://api.github.com/users/kostaslamda/received_events","type":"User","site_admin":false},"body":"- Changed class name: HardwareDevice => Device\r\n- Changed namespace: PInvoke => XSToolsInstallation\r\n- Renamed: Remove() => RemoveFromRegistry()\r\n- Refactored RemoveFromRegistry(); created 2 functions\r\n      - FindInRegistry()\r\n      - MultiByteStringSplit()\r\n\r\n- Added SetupApi.SetupDiDestroyDeviceInfoList()\r\n  (Needs to be called to destroy objects created with\r\n   SetupApi.SetupDiGetClassDevs())\r\n\r\n- Removed one of the 2 SetupApi.SetupDiGetDeviceRegistryProperty()\r\n  functions and changed the other's signature\r\n\r\nSigned-off-by: Kostas Ladopoulos <konstantinos.ladopoulos@citrix.com>","created_at":"2015-10-28T14:14:44Z","updated_at":"2015-10-28T15:24:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"781ad1b7151ef666f26d23464b49ba7489a36d45","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xenserver/win-installer/pulls/243/commits","review_comments_url":"https://api.github.com/repos/xenserver/win-installer/pulls/243/comments","review_comment_url":"https://api.github.com/repos/xenserver/win-installer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xenserver/win-installer/issues/243/comments","statuses_url":"https://api.github.com/repos/xenserver/win-installer/statuses/cdfafef36bd0f7dba24f7abe96df3e95b1a807bb","head":{"label":"kostaslamda:HardwareDevice","ref":"HardwareDevice","sha":"cdfafef36bd0f7dba24f7abe96df3e95b1a807bb","user":{"login":"kostaslamda","id":8862513,"avatar_url":"https://avatars.githubusercontent.com/u/8862513?v=3","gravatar_id":"","url":"https://api.github.com/users/kostaslamda","html_url":"https://github.com/kostaslamda","followers_url":"https://api.github.com/users/kostaslamda/followers","following_url":"https://api.github.com/users/kostaslamda/following{/other_user}","gists_url":"https://api.github.com/users/kostaslamda/gists{/gist_id}","starred_url":"https://api.github.com/users/kostaslamda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostaslamda/subscriptions","organizations_url":"https://api.github.com/users/kostaslamda/orgs","repos_url":"https://api.github.com/users/kostaslamda/repos","events_url":"https://api.github.com/users/kostaslamda/events{/privacy}","received_events_url":"https://api.github.com/users/kostaslamda/received_events","type":"User","site_admin":false},"repo":{"id":41038138,"name":"win-installer","full_name":"kostaslamda/win-installer","owner":{"login":"kostaslamda","id":8862513,"avatar_url":"https://avatars.githubusercontent.com/u/8862513?v=3","gravatar_id":"","url":"https://api.github.com/users/kostaslamda","html_url":"https://github.com/kostaslamda","followers_url":"https://api.github.com/users/kostaslamda/followers","following_url":"https://api.github.com/users/kostaslamda/following{/other_user}","gists_url":"https://api.github.com/users/kostaslamda/gists{/gist_id}","starred_url":"https://api.github.com/users/kostaslamda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostaslamda/subscriptions","organizations_url":"https://api.github.com/users/kostaslamda/orgs","repos_url":"https://api.github.com/users/kostaslamda/repos","events_url":"https://api.github.com/users/kostaslamda/events{/privacy}","received_events_url":"https://api.github.com/users/kostaslamda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kostaslamda/win-installer","description":"XenServer Windows PV Tools Installer","fork":true,"url":"https://api.github.com/repos/kostaslamda/win-installer","forks_url":"https://api.github.com/repos/kostaslamda/win-installer/forks","keys_url":"https://api.github.com/repos/kostaslamda/win-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kostaslamda/win-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kostaslamda/win-installer/teams","hooks_url":"https://api.github.com/repos/kostaslamda/win-installer/hooks","issue_events_url":"https://api.github.com/repos/kostaslamda/win-installer/issues/events{/number}","events_url":"https://api.github.com/repos/kostaslamda/win-installer/events","assignees_url":"https://api.github.com/repos/kostaslamda/win-installer/assignees{/user}","branches_url":"https://api.github.com/repos/kostaslamda/win-installer/branches{/branch}","tags_url":"https://api.github.com/repos/kostaslamda/win-installer/tags","blobs_url":"https://api.github.com/repos/kostaslamda/win-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kostaslamda/win-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kostaslamda/win-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/kostaslamda/win-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kostaslamda/win-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/kostaslamda/win-installer/languages","stargazers_url":"https://api.github.com/repos/kostaslamda/win-installer/stargazers","contributors_url":"https://api.github.com/repos/kostaslamda/win-installer/contributors","subscribers_url":"https://api.github.com/repos/kostaslamda/win-installer/subscribers","subscription_url":"https://api.github.com/repos/kostaslamda/win-installer/subscription","commits_url":"https://api.github.com/repos/kostaslamda/win-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/kostaslamda/win-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/kostaslamda/win-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/kostaslamda/win-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/kostaslamda/win-installer/contents/{+path}","compare_url":"https://api.github.com/repos/kostaslamda/win-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kostaslamda/win-installer/merges","archive_url":"https://api.github.com/repos/kostaslamda/win-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kostaslamda/win-installer/downloads","issues_url":"https://api.github.com/repos/kostaslamda/win-installer/issues{/number}","pulls_url":"https://api.github.com/repos/kostaslamda/win-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/kostaslamda/win-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/kostaslamda/win-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kostaslamda/win-installer/labels{/name}","releases_url":"https://api.github.com/repos/kostaslamda/win-installer/releases{/id}","created_at":"2015-08-19T14:07:08Z","updated_at":"2015-08-19T14:07:09Z","pushed_at":"2015-10-28T14:22:32Z","git_url":"git://github.com/kostaslamda/win-installer.git","ssh_url":"git@github.com:kostaslamda/win-installer.git","clone_url":"https://github.com/kostaslamda/win-installer.git","svn_url":"https://github.com/kostaslamda/win-installer","homepage":null,"size":16635,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xenserver:master","ref":"master","sha":"d170571f0346d729b2a75cd6730b78db1b57a3fd","user":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"repo":{"id":11370675,"name":"win-installer","full_name":"xenserver/win-installer","owner":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xenserver/win-installer","description":"XenServer Windows PV Tools Installer","fork":false,"url":"https://api.github.com/repos/xenserver/win-installer","forks_url":"https://api.github.com/repos/xenserver/win-installer/forks","keys_url":"https://api.github.com/repos/xenserver/win-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xenserver/win-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xenserver/win-installer/teams","hooks_url":"https://api.github.com/repos/xenserver/win-installer/hooks","issue_events_url":"https://api.github.com/repos/xenserver/win-installer/issues/events{/number}","events_url":"https://api.github.com/repos/xenserver/win-installer/events","assignees_url":"https://api.github.com/repos/xenserver/win-installer/assignees{/user}","branches_url":"https://api.github.com/repos/xenserver/win-installer/branches{/branch}","tags_url":"https://api.github.com/repos/xenserver/win-installer/tags","blobs_url":"https://api.github.com/repos/xenserver/win-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xenserver/win-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xenserver/win-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/xenserver/win-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xenserver/win-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/xenserver/win-installer/languages","stargazers_url":"https://api.github.com/repos/xenserver/win-installer/stargazers","contributors_url":"https://api.github.com/repos/xenserver/win-installer/contributors","subscribers_url":"https://api.github.com/repos/xenserver/win-installer/subscribers","subscription_url":"https://api.github.com/repos/xenserver/win-installer/subscription","commits_url":"https://api.github.com/repos/xenserver/win-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/xenserver/win-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/xenserver/win-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/xenserver/win-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/xenserver/win-installer/contents/{+path}","compare_url":"https://api.github.com/repos/xenserver/win-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xenserver/win-installer/merges","archive_url":"https://api.github.com/repos/xenserver/win-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xenserver/win-installer/downloads","issues_url":"https://api.github.com/repos/xenserver/win-installer/issues{/number}","pulls_url":"https://api.github.com/repos/xenserver/win-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/xenserver/win-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/xenserver/win-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xenserver/win-installer/labels{/name}","releases_url":"https://api.github.com/repos/xenserver/win-installer/releases{/id}","created_at":"2013-07-12T14:33:26Z","updated_at":"2015-08-04T19:43:15Z","pushed_at":"2015-10-28T14:22:33Z","git_url":"git://github.com/xenserver/win-installer.git","ssh_url":"git@github.com:xenserver/win-installer.git","clone_url":"https://github.com/xenserver/win-installer.git","svn_url":"https://github.com/xenserver/win-installer","homepage":null,"size":17957,"stargazers_count":4,"watchers_count":4,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/243"},"html":{"href":"https://github.com/xenserver/win-installer/pull/243"},"issue":{"href":"https://api.github.com/repos/xenserver/win-installer/issues/243"},"comments":{"href":"https://api.github.com/repos/xenserver/win-installer/issues/243/comments"},"review_comments":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/243/comments"},"review_comment":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xenserver/win-installer/pulls/243/commits"},"statuses":{"href":"https://api.github.com/repos/xenserver/win-installer/statuses/cdfafef36bd0f7dba24f7abe96df3e95b1a807bb"}}}}