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

unable to compile in VS 2019 - 16.9.2 #10

Open
philross88 opened this issue Mar 26, 2021 · 1 comment
Open

unable to compile in VS 2019 - 16.9.2 #10

philross88 opened this issue Mar 26, 2021 · 1 comment

Comments

@philross88
Copy link

I have tried both SysWhisper and SysWhisper2. VS is throwing the following error messages. I have enabled the MASM in build customization and also the asm file is set to Macro Assembler.

1 . The first error on the line for NtAllocateVirtualMemory.
Error (active) | E0167 | argument of type "PULONG" is incompatible with parameter of type "PSIZE_T" | NewMetaPlayerLow | main.cpp | 127 |  
status = NtAllocateVirtualMemory(process_handle, &pointer_after_allocated, 0, (PULONG)&allocation_size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);

  1. The second error is on the ASM file.
    Error | A2088 | END directive required at end of file | NewMetaPlayerLow |
    c:\project\folder\syscalls_common.asm | 2872 |  

  2. The third error is
    Error | MSB3721 | The command "ml64.exe /c /nologo /Zi /Fo"x64\Release\syscalls_common.obj" /W3 /errorReport:prompt  /Tasyscalls_common.asm" exited with code 1. | NewMetaPlayerLow | C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets | 70 |  

Any help would be great or if you have a working visual studio project, that I can use to compare against my environment, would be big help too.

@Miro909q
Copy link

Your asm code is in x86 and you try to compile on x64
change project to x86.
ml64.exe is for x86-64.

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

2 participants