NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: nikipa on September 11, 2015, 06:53:54 PM

Title: win32 handle
Post by: nikipa on September 11, 2015, 06:53:54 PM
Hello,

I am trying to learn the win32 api.My question is, how can i make a handle in nasm?To be more specific, lets say that i want to call the ReadFile function, how can i pass the first argument which asks a handle from the CreateFile function?

Thank you
Title: Re: win32 handle
Post by: encryptor256 on January 01, 2016, 01:37:18 PM
Handle is just a pointer, in 32 bit systems 32 bit, in 64 - 64. I Think.
So, DWORD or QWORD, define in data section.