Title: How can load references dll still using MemoryLoadLibrary · Issue #119 · fancycode/MemoryModule · GitHub
Open Graph Title: How can load references dll still using MemoryLoadLibrary · Issue #119 · fancycode/MemoryModule
X Title: How can load references dll still using MemoryLoadLibrary · Issue #119 · fancycode/MemoryModule
Description: I have a library named a.dll, a.dll has a reference b.dll. When I want to use MemoryLoadLibrary to load a.dll, the default references loader is LoadLibraryA, when I changed the loader to my own loader like the code below, it crashed. How...
Open Graph Description: I have a library named a.dll, a.dll has a reference b.dll. When I want to use MemoryLoadLibrary to load a.dll, the default references loader is LoadLibraryA, when I changed the loader to my own loa...
X Description: I have a library named a.dll, a.dll has a reference b.dll. When I want to use MemoryLoadLibrary to load a.dll, the default references loader is LoadLibraryA, when I changed the loader to my own loa...
Opengraph URL: https://github.com/fancycode/MemoryModule/issues/119
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How can load references dll still using MemoryLoadLibrary","articleBody":"I have a library named a.dll, a.dll has a reference b.dll.\nWhen I want to use MemoryLoadLibrary to load a.dll, the default references loader is LoadLibraryA, when I changed the loader to my own loader like the code below, it crashed. How to change the return value of MemoryLoadLibraryEx to a value like the return value of LoadLibraryA?\n\n```\nHCUSTOMMODULE LoadLibrary_R(LPCSTR filename, void* userdata)\n{\n bool isFound = false;\n for(auto it: names)\n {\n if (strcmp(it, filename) == 0) {\n isFound = true;\n break;\n }\n }\n\n if (isFound) {\n size_t size;\n auto buffer = readFileToBuffer(filename, \u0026size);\n auto t = (HMODULE)((PMEMORYMODULE)MemoryLoadLibraryEx(buffer, LoadLibrary_R, _GetProcAddress, _FreeLibrary, NULL))-\u003ecodeBase;\n //still wrong\n //auto t = (HMODULE)MemoryLoadLibraryEx(buffer, LoadLibrary_R, _GetProcAddress, _FreeLibrary, NULL));\n return t;\n }\n else {\n HMODULE result = LoadLibraryA(filename);\n if (result == NULL) {\n return NULL;\n }\n return (HCUSTOMMODULE)result;\n }\n}\n```","author":{"url":"https://github.com/jeffjiang0613","@type":"Person","name":"jeffjiang0613"},"datePublished":"2025-11-17T08:28:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/119/MemoryModule/issues/119"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3fcd9d21-7bc8-28e4-3ca5-99a05ff6f3f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B272:231E3E:271C679:345A795:696EDD08 |
| html-safe-nonce | 2a10867de25ba36c09608f56f57ae3af2fe164b65670c266a71b3f340aa167b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjcyOjIzMUUzRToyNzFDNjc5OjM0NUE3OTU6Njk2RUREMDgiLCJ2aXNpdG9yX2lkIjoiNDI3NTMzODI2MjEzOTAzNDg4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a97c6d8336bc08f04c20d735d328d7ae0381f3aff8a37b04ffe50a97afc44bdd |
| hovercard-subject-tag | issue:3632259779 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fancycode/MemoryModule/119/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c09cc140988989d7980b9b95194932f623c4a0ec96956a88f01c3e8f21032c9e/fancycode/MemoryModule/issues/119 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c09cc140988989d7980b9b95194932f623c4a0ec96956a88f01c3e8f21032c9e/fancycode/MemoryModule/issues/119 |
| og:image:alt | I have a library named a.dll, a.dll has a reference b.dll. When I want to use MemoryLoadLibrary to load a.dll, the default references loader is LoadLibraryA, when I changed the loader to my own loa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffjiang0613 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/fancycode/MemoryModule git https://github.com/fancycode/MemoryModule.git |
| octolytics-dimension-user_id | 247730 |
| octolytics-dimension-user_login | fancycode |
| octolytics-dimension-repository_id | 1018522 |
| octolytics-dimension-repository_nwo | fancycode/MemoryModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1018522 |
| octolytics-dimension-repository_network_root_nwo | fancycode/MemoryModule |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width