flat assembler
Message board for the users of flat assembler.

Index > Windows > scasb registry

Author
Thread Post new topic Reply to topic
semiono



Joined: 31 Aug 2007
Posts: 192
Location: section '.code' executable
semiono 17 Oct 2011, 18:48
Smile Please Help!

Code:
include '%fasm%/win32ax.inc'
section '.code' executable
start:
        mov ecx,i
        lea edi,[offset+i]
        mov al,'\'
        std
        repne scasb
        cld
        mov dword [edi+1],NULL
exit:
        invoke MessageBox,NULL,offset,'',MB_OK
        invoke ExitProcess,NULL

.end start

section '.data' readable writeable

        offset db 'H:\10\FL\Artwork\Wallpapers\Browser.html'
        i = $-offset    


Code:
        invoke RegOpenKeyEx,HKEY_CURRENT_USER,'Software\Image-Line\FL Studio 10\General',NULL,KEY_READ,root
        invoke RegQueryValueEx,[root],'BackHTMLFileName',NULL,NULL,offset,lpcbData
        invoke RegCloseKey,[root]
        mov ecx,lpcbData
...
section '.data' readable writeable
 
        root dd NULL
        offset rd MAX_PATH
        lpcbData dd MAX_PATH
    


I cannot make my code, I got error any-anyway ((

_________________
Windows 9, FL Studio 19
Post 17 Oct 2011, 18:48
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.