{"action":"opened","issue":{"url":"https://api.github.com/repos/JustAMan/pyWinClobber/issues/10","labels_url":"https://api.github.com/repos/JustAMan/pyWinClobber/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/JustAMan/pyWinClobber/issues/10/comments","events_url":"https://api.github.com/repos/JustAMan/pyWinClobber/issues/10/events","html_url":"https://github.com/JustAMan/pyWinClobber/issues/10","id":110382014,"number":10,"title":"OpenProcessToken should be from advapi32 rather than kernel32","user":{"login":"arafangion","id":1460403,"avatar_url":"https://avatars.githubusercontent.com/u/1460403?v=3","gravatar_id":"","url":"https://api.github.com/users/arafangion","html_url":"https://github.com/arafangion","followers_url":"https://api.github.com/users/arafangion/followers","following_url":"https://api.github.com/users/arafangion/following{/other_user}","gists_url":"https://api.github.com/users/arafangion/gists{/gist_id}","starred_url":"https://api.github.com/users/arafangion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arafangion/subscriptions","organizations_url":"https://api.github.com/users/arafangion/orgs","repos_url":"https://api.github.com/users/arafangion/repos","events_url":"https://api.github.com/users/arafangion/events{/privacy}","received_events_url":"https://api.github.com/users/arafangion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T06:30:00Z","updated_at":"2015-10-08T06:30:00Z","closed_at":null,"body":"While this works in Windows 10, it isn't documented as belonging to kernel32.\r\n\r\nThe documentation says that this function lives in advapi32, so if you need to use this code on windows Vista, for instance, then you will need to correct this.\r\n\r\nAdditionally, as a stylistic issue, I would suggest consistently using the lowercase form for 'kernel32' and 'advapi32', rather than 'kernel32' and 'Advapi32'.\r\n\r\nPlease refer to https://msdn.microsoft.com/en-us/library/windows/desktop/aa379295%28v=vs.85%29.aspx"}}