flat assembler
Message board for the users of flat assembler.

Index > Windows > FileIOCompletionRoutine

Author
Thread Post new topic Reply to topic
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 19 Apr 2010, 08:25
I would like to pass argument to this function.
it only takes 3 arguments, but all are from system.
ive noticed that ebx is saved and contain good value inside, can i assume its a fact?
if i cant use register, is it anyway to pass argument, or im stuck with normal io functions + GetOverlappedResult()? I dont like to use fixed globla addreses, all must be related to something. For me if function doesnt take user input argument, i cant use inside if it anything from code, including data and code. No global variables.


is there any way? or this function is broken? or maybe i can extend overlapped structure, it should work, but i doubt ms will support that in future.
Post 19 Apr 2010, 08:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20580
Location: In your JS exploiting you and your system
revolution 19 Apr 2010, 08:34
MS doc:
FileIOCompletionRoutine wrote:
Windows does not use the hEvent member of the OVERLAPPED structure; the calling application may use this member to pass information to the completion routine. Windows does not use the OVERLAPPED structure after the completion routine is called, so the completion routine can deallocate the memory used by the overlapped structure.
Post 19 Apr 2010, 08:34
View user's profile Send private message Visit poster's website Reply with quote
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 19 Apr 2010, 09:23
ok thx, so its 100% legal and wont break my code on older/newer windows?
Post 19 Apr 2010, 09:23
View user's profile Send private message Reply with quote
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 20 Apr 2010, 16:07
this is bullshit, you wont find this in official documentation, thus fileiocompletionroutine is broken and should be banned asap.
Post 20 Apr 2010, 16:07
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 21 Apr 2010, 12:40
a115433,

Do you have any problems reading and/or understanding English?
MSDN wrote:
lpOverlapped [in, out]

The ReadFileEx function ignores the OVERLAPPED structure's hEvent member. An application is free to use that member for its own purposes in the context of a ReadFileEx call. ReadFileEx signals completion of its read operation by calling, or queuing a call to, the completion routine pointed to by lpCompletionRoutine, so it does not need an event handle.
Post 21 Apr 2010, 12:40
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.