flat assembler
Message board for the users of flat assembler.

Index > Windows > need examples...

Author
Thread Post new topic Reply to topic
semiono



Joined: 31 Aug 2007
Posts: 192
Location: section '.code' executable
semiono 13 Mar 2009, 01:23
Hello board! Please share more examples for newbies!
It's need following
msdn.microsoft.com/en-us/library/aa363946(VS.85).aspx
msdn.microsoft.com/en-us/library/aa364229(VS.85).aspx
Directory Management / File Management
CopyFile, DeleteFile... SHFileOperation...
and GetCommandLine... stdin, stdout, stderr
All of simple commands with files work, and console management like /switches for myProgs.exe

Please, place more examples above beer.asm??
Smile

Do not need GUI apps! Only simple utilites like!

_________________
Windows 9, FL Studio 19
Post 13 Mar 2009, 01:23
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386 13 Mar 2009, 01:26
Move to Windows
Post 13 Mar 2009, 01:26
View user's profile Send private message Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 192
Location: section '.code' executable
semiono 13 Mar 2009, 01:38
Code:
include '%fasm%\win32ax.inc'

section '.code' code readable executable
start:
invoke CopyFileA,lpExistingFileName,lpNewFileName,FALSE
invoke ExitProcess,0
.end start

section '.data' data readable writeable
lpExistingFileName db 'C:\~\system32\calc.exe',0
lpNewFileName db 'C:\calc.exe',0

--~

include '%fasm%\win32ax.inc'

section '.code' code readable executable
start:
invoke  CreateFile,echo,GENERIC_WRITE,\
FILE_SHARE_READ,0,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0

invoke ExitProcess,0
.end start

section '.data' data readable writeable
echo db 'C:\HelloWorld.txt',0    


take one take two... Cool
first steps to all is young ;-
Post 13 Mar 2009, 01:38
View user's profile Send private message Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 192
Location: section '.code' executable
semiono 14 Mar 2009, 01:13
Thanks that moved!

How to recoursive CopyFiles *.* from SHFileOperation ?? please example to me?
Post 14 Mar 2009, 01:13
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.