I already put most of the code together, but I just don't know what Win32 API functions to use for the "Open" and "Save As" dialogs.
Here's the code so far, in case that's needed:
.386 .model flat, stdcall option casemap:none include \RS\include\ifiles.inc ;; All the includes, such as windows.inc, kernel32.inc, ... .data .data? filename1 DB 512 dup (?) filename2 DB 512 dup (?) buffer DB 8172 dup (?) nBytes DWORD ? .code start: call main xor eax, eax ret main proc enter 8, 0 ;; [ebp-4]= hFile1, [ebp-8]= hFile2 ;; ... get filename1 and filename2 ... push dword ptr 0 push dword ptr space(SIZEOF OFSTRUCT) push dword ptr offset filename1 call OpenFile mov dword ptr [ebp-4], eax push dword ptr 1 or 1000h push dword ptr space(SIZEOF OFSTRUCT) push dword ptr offset filename2 call OpenFile mov dword ptr [ebp-8], eax lp1: push dword ptr 0 push dword ptr offset nBytes push dword ptr 4096 push dword ptr offset buffer push dword ptr [ebp-4] call ReadFile cmp dword ptr [nBytes], 0 jz lp1s push dword ptr 0 push dword ptr integer() push dword ptr [nBytes] push dword ptr offset buffer push dword ptr [ebp-8] call WriteFile jmp lp1 lp1s: push dword ptr [ebp-8] call CloseHandle push dword ptr [ebp-4] call CloseHandle leave ret 0 main endp end start


Sign In
Create Account


Back to top









