{"action":"created","comment":{"url":"https://api.github.com/repos/java-native-access/jna/pulls/comments/70858299","id":70858299,"diff_hunk":"@@ -232,4 +233,18 @@ public void testExtractIconEx() {\n         int iconCount = Shell32.INSTANCE.ExtractIconEx(new File(winDir, \"explorer.exe\").getAbsolutePath(), -1, null, null, 1);\n         assertTrue(\"Should be at least two icons in explorer.exe\", iconCount > 1);\n     }\n+\n+    public void testCurrentProcessExplicitAppUserModelID() {\n+        String appUserModelID = \"com.sun.jna.platform.win32.Shell32Test\";\n+\n+        HRESULT r1 = Shell32.INSTANCE.SetCurrentProcessExplicitAppUserModelID(new WString(appUserModelID));\n+        assertEquals(WinError.S_OK, r1);\n+\n+        PointerByReference ppszAppID = new PointerByReference();\n+        HRESULT r2 = Shell32.INSTANCE.GetCurrentProcessExplicitAppUserModelID(ppszAppID);\n+        assertEquals(WinError.S_OK, r2);\n+\n+        assertEquals(appUserModelID, ppszAppID.getPointer().getWideString(0));","path":"contrib/platform/test/com/sun/jna/platform/win32/Shell32Test.java","position":23,"original_position":23,"commit_id":"ae225718ec7dcc2f504be1f9e279743cf18c171b","original_commit_id":"ae225718ec7dcc2f504be1f9e279743cf18c171b","user":{"login":"matthiasblaesing","id":2179736,"avatar_url":"https://avatars.githubusercontent.com/u/2179736?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasblaesing","html_url":"https://github.com/matthiasblaesing","followers_url":"https://api.github.com/users/matthiasblaesing/followers","following_url":"https://api.github.com/users/matthiasblaesing/following{/other_user}","gists_url":"https://api.github.com/users/matthiasblaesing/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasblaesing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasblaesing/subscriptions","organizations_url":"https://api.github.com/users/matthiasblaesing/orgs","repos_url":"https://api.github.com/users/matthiasblaesing/repos","events_url":"https://api.github.com/users/matthiasblaesing/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasblaesing/received_events","type":"User","site_admin":false},"body":"Could you please free the string, as this is expected from the documentation? For the unittest this is not actually necessary, but people looking at the code might be mislead, that you don't need to free the string.","created_at":"2016-07-14T18:29:20Z","updated_at":"2016-07-14T18:29:20Z","html_url":"https://github.com/java-native-access/jna/pull/680#discussion_r70858299","pull_request_url":"https://api.github.com/repos/java-native-access/jna/pulls/680","_links":{"self":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/comments/70858299"},"html":{"href":"https://github.com/java-native-access/jna/pull/680#discussion_r70858299"},"pull_request":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/680"}}},"pull_request":{"url":"https://api.github.com/repos/java-native-access/jna/pulls/680","id":77339760,"html_url":"https://github.com/java-native-access/jna/pull/680","diff_url":"https://github.com/java-native-access/jna/pull/680.diff","patch_url":"https://github.com/java-native-access/jna/pull/680.patch","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/680","number":680,"state":"open","locked":false,"title":"Shell32.SetCurrentProcessExplicitAppUserModelID","user":{"login":"rednoah","id":1589068,"avatar_url":"https://avatars.githubusercontent.com/u/1589068?v=3","gravatar_id":"","url":"https://api.github.com/users/rednoah","html_url":"https://github.com/rednoah","followers_url":"https://api.github.com/users/rednoah/followers","following_url":"https://api.github.com/users/rednoah/following{/other_user}","gists_url":"https://api.github.com/users/rednoah/gists{/gist_id}","starred_url":"https://api.github.com/users/rednoah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rednoah/subscriptions","organizations_url":"https://api.github.com/users/rednoah/orgs","repos_url":"https://api.github.com/users/rednoah/repos","events_url":"https://api.github.com/users/rednoah/events{/privacy}","received_events_url":"https://api.github.com/users/rednoah/received_events","type":"User","site_admin":false},"body":"Added functions to Shell32 wrapper which are useful Desktop integration for Java GUI applications (on Windows 7 and higher).\r\n\r\n- `SetCurrentProcessExplicitAppUserModelID`\r\n- `GetCurrentProcessExplicitAppUserModelID`\r\n","created_at":"2016-07-13T18:39:39Z","updated_at":"2016-07-14T18:29:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f21733747ae06f8a6140bf9e90042205fee697d0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/java-native-access/jna/pulls/680/commits","review_comments_url":"https://api.github.com/repos/java-native-access/jna/pulls/680/comments","review_comment_url":"https://api.github.com/repos/java-native-access/jna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/680/comments","statuses_url":"https://api.github.com/repos/java-native-access/jna/statuses/ae225718ec7dcc2f504be1f9e279743cf18c171b","head":{"label":"rednoah:master","ref":"master","sha":"ae225718ec7dcc2f504be1f9e279743cf18c171b","user":{"login":"rednoah","id":1589068,"avatar_url":"https://avatars.githubusercontent.com/u/1589068?v=3","gravatar_id":"","url":"https://api.github.com/users/rednoah","html_url":"https://github.com/rednoah","followers_url":"https://api.github.com/users/rednoah/followers","following_url":"https://api.github.com/users/rednoah/following{/other_user}","gists_url":"https://api.github.com/users/rednoah/gists{/gist_id}","starred_url":"https://api.github.com/users/rednoah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rednoah/subscriptions","organizations_url":"https://api.github.com/users/rednoah/orgs","repos_url":"https://api.github.com/users/rednoah/repos","events_url":"https://api.github.com/users/rednoah/events{/privacy}","received_events_url":"https://api.github.com/users/rednoah/received_events","type":"User","site_admin":false},"repo":{"id":20950765,"name":"jna","full_name":"rednoah/jna","owner":{"login":"rednoah","id":1589068,"avatar_url":"https://avatars.githubusercontent.com/u/1589068?v=3","gravatar_id":"","url":"https://api.github.com/users/rednoah","html_url":"https://github.com/rednoah","followers_url":"https://api.github.com/users/rednoah/followers","following_url":"https://api.github.com/users/rednoah/following{/other_user}","gists_url":"https://api.github.com/users/rednoah/gists{/gist_id}","starred_url":"https://api.github.com/users/rednoah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rednoah/subscriptions","organizations_url":"https://api.github.com/users/rednoah/orgs","repos_url":"https://api.github.com/users/rednoah/repos","events_url":"https://api.github.com/users/rednoah/events{/privacy}","received_events_url":"https://api.github.com/users/rednoah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rednoah/jna","description":"Java Native Access","fork":true,"url":"https://api.github.com/repos/rednoah/jna","forks_url":"https://api.github.com/repos/rednoah/jna/forks","keys_url":"https://api.github.com/repos/rednoah/jna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rednoah/jna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rednoah/jna/teams","hooks_url":"https://api.github.com/repos/rednoah/jna/hooks","issue_events_url":"https://api.github.com/repos/rednoah/jna/issues/events{/number}","events_url":"https://api.github.com/repos/rednoah/jna/events","assignees_url":"https://api.github.com/repos/rednoah/jna/assignees{/user}","branches_url":"https://api.github.com/repos/rednoah/jna/branches{/branch}","tags_url":"https://api.github.com/repos/rednoah/jna/tags","blobs_url":"https://api.github.com/repos/rednoah/jna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rednoah/jna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rednoah/jna/git/refs{/sha}","trees_url":"https://api.github.com/repos/rednoah/jna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rednoah/jna/statuses/{sha}","languages_url":"https://api.github.com/repos/rednoah/jna/languages","stargazers_url":"https://api.github.com/repos/rednoah/jna/stargazers","contributors_url":"https://api.github.com/repos/rednoah/jna/contributors","subscribers_url":"https://api.github.com/repos/rednoah/jna/subscribers","subscription_url":"https://api.github.com/repos/rednoah/jna/subscription","commits_url":"https://api.github.com/repos/rednoah/jna/commits{/sha}","git_commits_url":"https://api.github.com/repos/rednoah/jna/git/commits{/sha}","comments_url":"https://api.github.com/repos/rednoah/jna/comments{/number}","issue_comment_url":"https://api.github.com/repos/rednoah/jna/issues/comments{/number}","contents_url":"https://api.github.com/repos/rednoah/jna/contents/{+path}","compare_url":"https://api.github.com/repos/rednoah/jna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rednoah/jna/merges","archive_url":"https://api.github.com/repos/rednoah/jna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rednoah/jna/downloads","issues_url":"https://api.github.com/repos/rednoah/jna/issues{/number}","pulls_url":"https://api.github.com/repos/rednoah/jna/pulls{/number}","milestones_url":"https://api.github.com/repos/rednoah/jna/milestones{/number}","notifications_url":"https://api.github.com/repos/rednoah/jna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rednoah/jna/labels{/name}","releases_url":"https://api.github.com/repos/rednoah/jna/releases{/id}","deployments_url":"https://api.github.com/repos/rednoah/jna/deployments","created_at":"2014-06-18T05:41:05Z","updated_at":"2016-07-13T17:46:26Z","pushed_at":"2016-07-13T18:31:56Z","git_url":"git://github.com/rednoah/jna.git","ssh_url":"git@github.com:rednoah/jna.git","clone_url":"https://github.com/rednoah/jna.git","svn_url":"https://github.com/rednoah/jna","homepage":"","size":263151,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"java-native-access:master","ref":"master","sha":"b961e5abc9c16778db7b257cced08ce583904d73","user":{"login":"java-native-access","id":13812895,"avatar_url":"https://avatars.githubusercontent.com/u/13812895?v=3","gravatar_id":"","url":"https://api.github.com/users/java-native-access","html_url":"https://github.com/java-native-access","followers_url":"https://api.github.com/users/java-native-access/followers","following_url":"https://api.github.com/users/java-native-access/following{/other_user}","gists_url":"https://api.github.com/users/java-native-access/gists{/gist_id}","starred_url":"https://api.github.com/users/java-native-access/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-native-access/subscriptions","organizations_url":"https://api.github.com/users/java-native-access/orgs","repos_url":"https://api.github.com/users/java-native-access/repos","events_url":"https://api.github.com/users/java-native-access/events{/privacy}","received_events_url":"https://api.github.com/users/java-native-access/received_events","type":"Organization","site_admin":false},"repo":{"id":1680733,"name":"jna","full_name":"java-native-access/jna","owner":{"login":"java-native-access","id":13812895,"avatar_url":"https://avatars.githubusercontent.com/u/13812895?v=3","gravatar_id":"","url":"https://api.github.com/users/java-native-access","html_url":"https://github.com/java-native-access","followers_url":"https://api.github.com/users/java-native-access/followers","following_url":"https://api.github.com/users/java-native-access/following{/other_user}","gists_url":"https://api.github.com/users/java-native-access/gists{/gist_id}","starred_url":"https://api.github.com/users/java-native-access/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-native-access/subscriptions","organizations_url":"https://api.github.com/users/java-native-access/orgs","repos_url":"https://api.github.com/users/java-native-access/repos","events_url":"https://api.github.com/users/java-native-access/events{/privacy}","received_events_url":"https://api.github.com/users/java-native-access/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-native-access/jna","description":"Java Native Access","fork":false,"url":"https://api.github.com/repos/java-native-access/jna","forks_url":"https://api.github.com/repos/java-native-access/jna/forks","keys_url":"https://api.github.com/repos/java-native-access/jna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-native-access/jna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-native-access/jna/teams","hooks_url":"https://api.github.com/repos/java-native-access/jna/hooks","issue_events_url":"https://api.github.com/repos/java-native-access/jna/issues/events{/number}","events_url":"https://api.github.com/repos/java-native-access/jna/events","assignees_url":"https://api.github.com/repos/java-native-access/jna/assignees{/user}","branches_url":"https://api.github.com/repos/java-native-access/jna/branches{/branch}","tags_url":"https://api.github.com/repos/java-native-access/jna/tags","blobs_url":"https://api.github.com/repos/java-native-access/jna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-native-access/jna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-native-access/jna/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-native-access/jna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-native-access/jna/statuses/{sha}","languages_url":"https://api.github.com/repos/java-native-access/jna/languages","stargazers_url":"https://api.github.com/repos/java-native-access/jna/stargazers","contributors_url":"https://api.github.com/repos/java-native-access/jna/contributors","subscribers_url":"https://api.github.com/repos/java-native-access/jna/subscribers","subscription_url":"https://api.github.com/repos/java-native-access/jna/subscription","commits_url":"https://api.github.com/repos/java-native-access/jna/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-native-access/jna/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-native-access/jna/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-native-access/jna/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-native-access/jna/contents/{+path}","compare_url":"https://api.github.com/repos/java-native-access/jna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-native-access/jna/merges","archive_url":"https://api.github.com/repos/java-native-access/jna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-native-access/jna/downloads","issues_url":"https://api.github.com/repos/java-native-access/jna/issues{/number}","pulls_url":"https://api.github.com/repos/java-native-access/jna/pulls{/number}","milestones_url":"https://api.github.com/repos/java-native-access/jna/milestones{/number}","notifications_url":"https://api.github.com/repos/java-native-access/jna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-native-access/jna/labels{/name}","releases_url":"https://api.github.com/repos/java-native-access/jna/releases{/id}","deployments_url":"https://api.github.com/repos/java-native-access/jna/deployments","created_at":"2011-04-29T13:30:29Z","updated_at":"2016-07-14T13:43:46Z","pushed_at":"2016-07-13T18:39:39Z","git_url":"git://github.com/java-native-access/jna.git","ssh_url":"git@github.com:java-native-access/jna.git","clone_url":"https://github.com/java-native-access/jna.git","svn_url":"https://github.com/java-native-access/jna","homepage":"","size":280034,"stargazers_count":2401,"watchers_count":2401,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":707,"mirror_url":null,"open_issues_count":91,"forks":707,"open_issues":91,"watchers":2401,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/680"},"html":{"href":"https://github.com/java-native-access/jna/pull/680"},"issue":{"href":"https://api.github.com/repos/java-native-access/jna/issues/680"},"comments":{"href":"https://api.github.com/repos/java-native-access/jna/issues/680/comments"},"review_comments":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/680/comments"},"review_comment":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/680/commits"},"statuses":{"href":"https://api.github.com/repos/java-native-access/jna/statuses/ae225718ec7dcc2f504be1f9e279743cf18c171b"}}}}
{"actor":{"display_login":"matthiasblaesing"}}