Hi i am trying to write a function using INLINE ASM to determine if a file exists using GetFileAttributesA in Kernel32.dll.
Here is my code:
bool fileExists(long memAddr)
invoke GetFileAttributesA,addr memAddr
i know invoke is MASM style ASM, but how can I do this in C++, all I need to know is how to call the GetFileAttributesA function using ASM, and I can do the rest, also as you can see I am passing a long value into the function which will be the address of the string. I need to know how to call the function so I am passing the address, (i dont think this is a pass by reference deal).