flat assembler
Message board for the users of flat assembler.
Index
> Windows > copy a file |
Author |
|
bitshifter 14 Apr 2009, 02:16
kernel32.dll has file functions.
do you want to copy a file from a to b? or do you want to make installer which creates and fills file? _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||
14 Apr 2009, 02:16 |
|
pal 14 Apr 2009, 08:58
I'm assuming you mean you have an executable file which in the resource data contains an array of other executable files yeah?
If your on Windows then you should use the resource APIs to get the file into memory, then write them using WriteFile etc. |
|||
14 Apr 2009, 08:58 |
|
Coddy41 14 Apr 2009, 14:40
@pal yeah, I want to excute a file.
@Bitshifter, yes from a to b resource APIs to get the file into memory, then write them using WriteFile etc? |
|||
14 Apr 2009, 14:40 |
|
asmcoder 14 Apr 2009, 14:58
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:52; edited 1 time in total |
|||
14 Apr 2009, 14:58 |
|
revolution 14 Apr 2009, 15:03
No need for the Nt prefix. Just use the normal documented MS API calls.
CreateFile ReadFile WriteFile CloseHandle |
|||
14 Apr 2009, 15:03 |
|
pal 14 Apr 2009, 15:34
You misinterpreted what I said, what I meant is are you using resource data to store the files or what? EOF data etc? If you are using resource data you use the resource APIs e.g.
FindResource() OpenRerouce() And then use the APIs revolution mentioned. |
|||
14 Apr 2009, 15:34 |
|
Coddy41 14 Apr 2009, 15:41
thanks, sorry to bother
|
|||
14 Apr 2009, 15:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.