hi all, again...
i need help on how to get regkeys...
i know how to set but i don't know how to get...
can someone help mee?
bye, tkx

5k3l3t0r
Posted on 2007-01-27 15:04:33 by 5k3l3t0r
Hey 5k3l3t0r,

Do you use Masm? If you do you can look in "\masm32\vkdebug\DBGWIN" whihc has the following set of functions you might be interested in:


comment 
    invoke SetRegString, HKEY_LOCAL_MACHINE,
                        CTEXT("Software\MASM\Registry Test\"),
                        CTEXT("StringKeyName"),
                        CTEXT("aaa")

    invoke SetRegDword, HKEY_LOCAL_MACHINE,
                        CTEXT("Software\MASM\Registry Test\"),
                        CTEXT("DwordKeyName"),
                        4500

    invoke GetRegString, addr szBigBuffer,
                        HKEY_LOCAL_MACHINE,
                        CTEXT("Software\MASM\Registry Test\"),
                        CTEXT("StringKeyName")

    invoke GetRegDword, HKEY_LOCAL_MACHINE,
                        CTEXT("Software\MASM\Registry Test\"),
                        CTEXT("DwordKeyName"),
                        addr dwValue




Posted on 2007-01-27 16:47:47 by JimmyClif
tkx again JimmyClif...
i'm new in asm, and sometimes i stop in simple things(for you simple for me hard) maybee some time
i can help others too...
bye and tkx again...
5k3l3t0r
Posted on 2007-01-27 17:07:19 by 5k3l3t0r
No worries, trust me, I have my little set of useful functions for issues such as querying the registry but if I had to go back and re-write them... I'd be pulling out a lot of hair. The registry was very frustrating to me.
Posted on 2007-01-27 17:20:18 by JimmyClif

tkx again JimmyClif...
i'm new in asm, and sometimes i stop in simple things(for you simple for me hard) maybee some time
i can help others too...
bye and tkx again...
5k3l3t0r


Well, don't get ASM confused with the Win32 API.

There is a basic necessity for ASM programmers to be able to read, understand and apply C code due to the majority of the Win32 API being C-based. A huge example is MSDN, as that site hosts the majority of Win32 API information around. Unfortunately, we live in their world :sad:

Well, it isn't that drastic... but I do recommend sharpening your capability of translating/reading C/C++ code into the ASM equivalent. It will help you greatly along the way of your Win32ASM programming endeavors.

PS: Keep MSDN handy ;)
Posted on 2007-01-27 17:40:49 by SpooK