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: 176
Location: section '.code' executable
semiono
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!

_________________
Memory=8388608
Post 13 Mar 2009, 01:23
View user's profile Send private message ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
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: 176
Location: section '.code' executable
semiono
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 ICQ Number Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
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 ICQ Number 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. Also on YouTube, Twitter.

Website powered by rwasa.