mirror of
https://github.com/capstone-engine/capstone
synced 2026-08-11 16:26:07 -04:00
* Fix user data alignment in MEMBLOCK Kernel memory allocations on Windows should be aligned on MEMORY_ALLOCATION_ALIGNMENT (16 bytes on x64 and 8 bytes on x86). * Fix user data alignment in CS_WINKERNEL_MEMBLOCK |
||
|---|---|---|
| .. | ||
| libc.cpp | ||
| libc.h | ||
| README | ||
For Windows kernel programming, the SDK does not offer some functions needed by Capstone. The missing functions are: - Memory allocations: malloc(), calloc(), realloc() & free(). - Format input variables & write out result to char buffer: vsnprintf() This directory contains some code providing above-mentioned functions, so you can integrate Capstone with your Windows-kernel drivers using C++. All the code here is contributed by Peter Hlavaty <zer0mem@yahoo.com> See the full example with Capstone integration at https://github.com/zer0mem/libc.git