Search code examples
windowsassemblyvisual-studio-2019x86-64masm

Include files for MASM x64


I am new to programming windows MASM applications and from what I understand in order to call WinAPI functions I need to first include the appropriate .inc files.

I am using Visual Studio 2019 and I can't find anywhere on my system windows.inc files what so ever. I've

searched online and I couldn't find any SDK for x64 MASM.

This question was asked a while ago but the answer is only relevant for x32 assembly.


Solution

  • So I've been doing some digging and from what I understand there's no official SDK for x64 MASM which is weird. What I did find is this forum "The MASM Forum". And they are working on x64 MASM SDK for a while now but it has a lot of features.

    They state it's not perfect but it's more than nothing. I had trouble installing it to be honest, also my anti virus classified 2 of the files as Trojan so you should download the files at your own risk(Maybe do it on a VM ?).

    Also the comments under the question suggested creating your own .inc files which from what I understand now is not that difficult, I will be trying both methods and keep this post updated on the results.