Re: RegCreateKeyEx help
- From: "Andy Kennedy" <spamtrap@xxxxxxxxxx>
- Date: Wed, 22 Mar 2006 12:30:42 -0000
szStringValue db "Some String",0 >RegistryText db "This is our text. Cool, huh?"
,0 ; Only This is our [shows in reg]
; For some reason only 12 chars are displayed ?
Not so hard to figure out:
invoke SetRegKeysz , ADDR RegistryText, ADDR szKeyName,
ADDR szStringValue, SIZEOF szStringValue
Look what you are passing as the size of the string:
"SIZEOF szStringValue". That happens to be 12 bytes. I
suspect you really wanted "SIZEOF RegistryText" here.
However, it is easy to find a string's length with the
"repne scasb" instruction.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
Thanks.
.
- References:
- RegCreateKeyEx help
- From: Andy Kennedy
- Re: RegCreateKeyEx help
- From: Tim Roberts
- RegCreateKeyEx help
- Prev by Date: Re: newbie questiom about %rip in x86-64 and var
- Next by Date: Re: newbie questiom about %rip in x86-64 and var
- Previous by thread: Re: RegCreateKeyEx help
- Next by thread: HLA v1.81 is now available
- Index(es):