flat assembler
Message board for the users of flat assembler.
Index
> Windows > ReadFile from kernel32 problem |
Author |
|
Vasilev Vjacheslav 22 Jan 2005, 09:50
i have no idea, but try to use CreateFile instead of OpenFile, and CloseHandle instead of CancelIO
|
|||
22 Jan 2005, 09:50 |
|
mike.dld 22 Jan 2005, 10:51
Humm.... FilePE? What are you trying to do, read from some executable? In this case look inside it with some hex editor to see NULL bytes. MessageBox shows you text from buffer beginning till first NULL.
|
|||
22 Jan 2005, 10:51 |
|
JohnFound 22 Jan 2005, 12:52
OpenFile API needs 3 arguments:
Code: HFILE OpenFile( LPCSTR lpFileName, // pointer to filename LPOFSTRUCT lpReOpenBuff, // pointer to buffer for file information UINT uStyle // action and attributes ); In your use, only the filename is OK. It is strange, that it read something at all. Regards |
|||
22 Jan 2005, 12:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.