Using Poh2inc to write Win32 Assembly apps?

Started by Quin, April 30, 2025, 03:48:58 AM

Previous topic - Next topic

Quin

Hi,
I've seen a few very talented people here do this, and I'm wondering how I can do it myself. I want to write Win32 apps using Poasm. The syntax isn't what's tripping me up, but it's how to get the typedefs, prototypes, etc I need for my program. All the assembly examples I see on the forum come with a .inc file, probably generated by poh2inc, but I can't find many examples or documentation on how to actually write a .h file to get a usable .inc for your application.
Any guidance here would be most appreciated!
Use the assembly, Luke.

Vortex

Hi Quin,

We have ready include files for Poasm. Could you check this thread?

https://forum.pellesc.de/index.php?topic=5092.0

I have to contact the Masm Forum about using windows.inc for 64-bit.
Code it... That's all...

Quin

Hi Vortex,
This is great, thank you!
My question was more though how assembly wizards such as yourself generate the .inc files with only what's needed. For example, your GetFileVersion.inc file.
Thanks!
Use the assembly, Luke.

Vortex

Hi Quin,

It's easy to create include file from the import libraries containing the API function declarations. Hutch, the administrator of the Masm32 forum worked a lot to create the main include file windows.inc including the equates and structure definitions.
Code it... That's all...

Quin

Hi Vortex,
Ah, so you just do it manually. Okay, that makes sense, and given those two zip files you provided should be quite easy. Thanks a ton!
Use the assembly, Luke.