{"action":"created","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/550","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/550/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/550/events","html_url":"https://github.com/java-native-access/jna/issues/550","id":120358993,"number":550,"title":"Wrong values from GetProcessMemoryInfo() when JDK 32-bit is used","user":{"login":"eidbadr","id":14164370,"avatar_url":"https://avatars.githubusercontent.com/u/14164370?v=3","gravatar_id":"","url":"https://api.github.com/users/eidbadr","html_url":"https://github.com/eidbadr","followers_url":"https://api.github.com/users/eidbadr/followers","following_url":"https://api.github.com/users/eidbadr/following{/other_user}","gists_url":"https://api.github.com/users/eidbadr/gists{/gist_id}","starred_url":"https://api.github.com/users/eidbadr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidbadr/subscriptions","organizations_url":"https://api.github.com/users/eidbadr/orgs","repos_url":"https://api.github.com/users/eidbadr/repos","events_url":"https://api.github.com/users/eidbadr/events{/privacy}","received_events_url":"https://api.github.com/users/eidbadr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-04T08:57:49Z","updated_at":"2015-12-17T10:32:08Z","closed_at":null,"body":"Hi\r\n\r\ncalling GetProcessMemoryInfo() for a process that uses >2GB gives wrong values when JDK 32-bit is used.\r\n\r\n```\r\n        if(PsapiExt.INSTANCE.GetProcessMemoryInfo(hProcess, processMemoryCountersEx, processMemoryCountersEx.size()))\r\n        {\r\n          dProcessMemory = (processMemoryCountersEx.WorkingSetSize.longValue()) ; // 0 or -1         \r\n        }\r\n```\r\n\r\nwhen JDK 64-bit is used, then the output is correct.\r\n "},"comment":{"url":"https://api.github.com/repos/java-native-access/jna/issues/comments/165412981","html_url":"https://github.com/java-native-access/jna/issues/550#issuecomment-165412981","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/550","id":165412981,"user":{"login":"eidbadr","id":14164370,"avatar_url":"https://avatars.githubusercontent.com/u/14164370?v=3","gravatar_id":"","url":"https://api.github.com/users/eidbadr","html_url":"https://github.com/eidbadr","followers_url":"https://api.github.com/users/eidbadr/followers","following_url":"https://api.github.com/users/eidbadr/following{/other_user}","gists_url":"https://api.github.com/users/eidbadr/gists{/gist_id}","starred_url":"https://api.github.com/users/eidbadr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidbadr/subscriptions","organizations_url":"https://api.github.com/users/eidbadr/orgs","repos_url":"https://api.github.com/users/eidbadr/repos","events_url":"https://api.github.com/users/eidbadr/events{/privacy}","received_events_url":"https://api.github.com/users/eidbadr/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T10:32:08Z","updated_at":"2015-12-17T10:32:08Z","body":"@twall you are correct SIZE_T is platform-dependent. That's why I'm getting the wrong values! Thank you!"}}