OK so I figured out what I was doing wrong when trying to reduce the size of the binary. I still had the other ARCH flags included in Preprocessor setting in Visual Studio. After removing them the binary reduced in size.
OK so I successfully compiled and built my KMDF driver using the capstone_static_winkernel project however the file size of the .sys file is too big. I need help reducing the size of the capstone_static_winkernel.lib file to something much smaller. I've tried the following preprocessor directives CAPSTONE_X86_REDUCE and CAPSTONE_DIET implemented in the capstone_static_winkernel project. But the size of this lib file does not reduce. Please help. TIA.
OK so I managed to get GitHub package installed that installs the capstone_static_winkernel project and creates the msvc directory. But now I'm getting compile errors when compiling the capstone_static_winkernel project. Error C4013 'snprintf' undefined; assuming extern returning int capstone_static_winkernel C:\Users\XXXXX\source\repos\capstone2\cs.c 904 Error C4296 '<': expression is always false capstone_static_winkernel C:\Users\XXXXX\source\repos\capstone2\arch\ARM\ARMDisassembler.c 7008 Error...
So I've successfully installed capstone since everything appears to be there including capstone.lib however I'm missing the msvc directory and the cs_driver.sln project does not load the other project capstone_static_winkernel project because it does not exist in the install directory. Any ideas on how to get this working ? TIA