in Iczelion's Tutorials,there is :
invoke ReadFile,hFile,pMemory,MEMSIZE-1,addr SizeReadWrite.
But hMemory and addr SizeReadWrite are both addresses,the differences between them?
and Why are the size is MEMSIZE-1,not MEMSiZE?
invoke ReadFile,hFile,pMemory,MEMSIZE-1,addr SizeReadWrite.
But hMemory and addr SizeReadWrite are both addresses,the differences between them?
and Why are the size is MEMSIZE-1,not MEMSiZE?
I assume he's reading a string? That would explain why "-1", since you need a byte for the NUL character.
"SizeReadWrite" is an output parameter, containing the amount of bytes actually read (check PlatformSDK).
"SizeReadWrite" is an output parameter, containing the amount of bytes actually read (check PlatformSDK).
cc123,
Just an advice, do post more descriptive thread names. It would help the visiters to the forums. They wouldn't need to read the thread to actually know the content of the thread - That's the reason for the thread name.
Just an advice, do post more descriptive thread names. It would help the visiters to the forums. They wouldn't need to read the thread to actually know the content of the thread - That's the reason for the thread name.