flat assembler
Message board for the users of flat assembler.

Index > Windows > why this doent work?

Author
Thread Post new topic Reply to topic
0x004549554F4C



Joined: 16 Mar 2004
Posts: 14
0x004549554F4C
.data
_file db 'Test.fle',0
_filewrite db 'abcd',0
.code
invoke CreateFile, _file, GENERIC_WRITE, FILE_SHARE_READ + FILE_SHARE_WRITE, 0, CREATE_NEW, 0, 0
mov edx, eax
invoke WriteFile, edx, _filewrite, 5, 0, 0
invoke CloseHandle, edx
Post 27 Mar 2004, 00:28
View user's profile Send private message Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro
Code:
.data
_file db 'Test.fle',0
_filewrite db 'abcd',0
_written dd ?
.code
invoke CreateFile, _file, GENERIC_WRITE, FILE_SHARE_READ + FILE_SHARE_WRITE, 0, CREATE_NEW, 0, 0
push eax
invoke WriteFile, eax, _filewrite, 5, _written, 0
call [CloseHandle]
    
Post 27 Mar 2004, 03:07
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
edx is modified by the function WriteFile
Post 27 Mar 2004, 07:31
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro
yes and
Quote:

If lpOverlapped is NULL, lpNumberOfBytesWritten cannot be NULL.

Sorry i didn't explain what was wrong with the code in the first message but i was bit drunk when writing that so..
Post 27 Mar 2004, 11:42
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.