Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OPTION DOTNAME
- option casemap:none
- include G:\Programs\Soft\Coding\MASM\masm64\Include\win64.inc
- include G:\Programs\Soft\Coding\MASM\masm64\Include\kernel32.inc
- include G:\Programs\Soft\Coding\MASM\masm64\Include\user32.inc
- include G:\Programs\Soft\Coding\MASM\masm64\Include\ADVAPI32.inc
- include G:\Programs\Soft\Coding\MASM\masm64\Include\temphls.inc
- include G:\Programs\Soft\Coding\MASM\masm64\Include\unicode_string.inc
- includelib G:\Programs\Soft\Coding\MASM\masm64\lib\user32.lib
- includelib G:\Programs\Soft\Coding\MASM\masm64\lib\kernel32.lib
- includelib G:\Programs\Soft\Coding\MASM\masm64\lib\comctl32.lib
- includelib G:\Programs\Soft\Coding\MASM\masm64\lib\gdi32.lib
- includelib G:\Programs\Soft\Coding\MASM\masm64\lib\advapi32.lib
- OPTION PROLOGUE:rbpFramePrologue ; This option is required per the Russian DOCS
- OPTION EPILOGUE:rbpFrameEpilogue
- .data
- nFILE db 'OSPFv3.txt', 0
- .code
- WinMain proc <7> ; 7 is the most number of function arguments passed to Invoke in this function
- ; See docs here: http://dsmhelp.narod.ru/environment.htm
- local dummy:dword ; Seems you need to have at least one local for Invoke to work! Bug?!?
- invoke CreateFile, &nFILE, GENERIC_READ or GENERIC_WRITE, NULL, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL ;Создаю файл
- invoke ExitProcess, NULL
- WinMain endp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement