Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for reading contents from zip file using void * buffer with the zip file's contents. #318

Open
AraHaan opened this issue Jul 12, 2024 · 1 comment

Comments

@AraHaan
Copy link

AraHaan commented Jul 12, 2024

I have a use case to use miniz to read the contents of a zip file from a pointer obtained from the win32 api function LockResource to obtain the data of the zip file that is within the win32 resource section.

Why? This is so I can then grab python314.dll from within the zip file (as a void *) and then use MemoryLoadLibrary, MemoryGetProcAddress to get all of the exports, and then on process cleanup MemoryFreeLibrary. This is basically needed to get my embedded python down to a single file.

@AraHaan
Copy link
Author

AraHaan commented Jul 13, 2024

This was probably worded a little but oddly, but basically the zip file itself is a void * pointer inside of the exe file and not actually on disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant