{"action":"created","issue":{"url":"https://api.github.com/repos/fancycode/MemoryModule/issues/43","repository_url":"https://api.github.com/repos/fancycode/MemoryModule","labels_url":"https://api.github.com/repos/fancycode/MemoryModule/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/fancycode/MemoryModule/issues/43/comments","events_url":"https://api.github.com/repos/fancycode/MemoryModule/issues/43/events","html_url":"https://github.com/fancycode/MemoryModule/issues/43","id":160671838,"number":43,"title":"Reference counting behavior of LoadLibrary is missing","user":{"login":"moradin","id":7690658,"avatar_url":"https://avatars.githubusercontent.com/u/7690658?v=3","gravatar_id":"","url":"https://api.github.com/users/moradin","html_url":"https://github.com/moradin","followers_url":"https://api.github.com/users/moradin/followers","following_url":"https://api.github.com/users/moradin/following{/other_user}","gists_url":"https://api.github.com/users/moradin/gists{/gist_id}","starred_url":"https://api.github.com/users/moradin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moradin/subscriptions","organizations_url":"https://api.github.com/users/moradin/orgs","repos_url":"https://api.github.com/users/moradin/repos","events_url":"https://api.github.com/users/moradin/events{/privacy}","received_events_url":"https://api.github.com/users/moradin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-16T14:12:27Z","updated_at":"2016-06-16T14:47:05Z","closed_at":null,"body":"Maybe I'm just not looking in the right places but it looks like the reference counting is not implemented.\r\n\r\n> The system maintains a per-process reference count on all loaded modules. Calling LoadLibrary increments the reference count. Calling the FreeLibrary or FreeLibraryAndExitThread function decrements the reference count. The system unloads a module when its reference count reaches zero or when the process terminates (regardless of the reference count).\r\n\r\n(from https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175(v=vs.85).aspx)\r\n\r\nI'm not sure how this would work without some more information passed into MemoryLoadLibraryEx but it definitely looks like a big missing piece."},"comment":{"url":"https://api.github.com/repos/fancycode/MemoryModule/issues/comments/226507695","html_url":"https://github.com/fancycode/MemoryModule/issues/43#issuecomment-226507695","issue_url":"https://api.github.com/repos/fancycode/MemoryModule/issues/43","id":226507695,"user":{"login":"fancycode","id":247730,"avatar_url":"https://avatars.githubusercontent.com/u/247730?v=3","gravatar_id":"","url":"https://api.github.com/users/fancycode","html_url":"https://github.com/fancycode","followers_url":"https://api.github.com/users/fancycode/followers","following_url":"https://api.github.com/users/fancycode/following{/other_user}","gists_url":"https://api.github.com/users/fancycode/gists{/gist_id}","starred_url":"https://api.github.com/users/fancycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancycode/subscriptions","organizations_url":"https://api.github.com/users/fancycode/orgs","repos_url":"https://api.github.com/users/fancycode/repos","events_url":"https://api.github.com/users/fancycode/events{/privacy}","received_events_url":"https://api.github.com/users/fancycode/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T14:47:05Z","updated_at":"2016-06-16T14:47:05Z","body":"MemoryModule loads DLLs from any memory blocks, so there is no \"name\" or similar that could be used to track if an application loads the same memory multiple times. Besides refcounting for that is something that could be easily done by the application using MemoryModule.\r\n\r\nOr maybe I am missing something?"}}
{"actor":{"display_login":"fancycode"}}