flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ManOfSteel 06 May 2011, 14:30
CreateFile function and DeleteFile function (check the Remarks section).
I'm sure using the forum's search will return many pieces of code. |
|||
![]() |
|
Picnic 06 May 2011, 14:49
CreateDirectory
Here is a small piece of code to get you started ![]() Code: format pe console 4.0 include "include\win32ax.inc" define ERROR_ALREADY_EXISTS 183 .data myDir db "C:\myDir",0 .code main: ; Create a new directory invoke CreateDirectory, myDir, 0 .if ~eax invoke GetLastError ;Possible errors .if eax = ERROR_ALREADY_EXISTS ; handle error .else ; handle error .endif mov eax, 1 jmp .exit .endif xor eax, eax .exit: invoke ExitProcess, eax .end main |
|||
![]() |
|
rever0lf 06 May 2011, 23:16
thnx. . picnic. . .
|
|||
![]() |
|
rever0lf 07 May 2011, 08:37
ca I ask a question?? what is the purpose of invoke? and format PE console 4.0
|
|||
![]() |
|
Overflowz 07 May 2011, 11:29
rever0lf
It's pointing number of Windows version and means which version it supports. 4.0 = Program will run on Windows 95 and above. For more information, check this --> http://www.windows7hacker.com/index.php/2009/08/a-list-of-windows-operating-system-version-number/ |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.