Re: Couple ?s
- From: "Eman" <spamtrap@xxxxxxxxxx>
- Date: Mon, 24 Apr 2006 07:42:58 +0400
"Andy Kennedy" <spamtrap@xxxxxxxxxx> ???????/???????? ? ???????? ?????????: news:44498bc9.65c.41@xxxxxxxx
Question 1 concerning the RegQueryValueEx API
REG_BINARY
When it says binary data in any form, what does that
specifically entail.
(as opposed to REG_SZ used for strings)
The differences deal with null-chars and A / W issues.
A value of REG_SZ type must contain no embedded nulls.
Also when you use A or W version of the API, the system returns "ansi" or "unicode" version of the string.
REG_BINARY value can contain any "chars" (more precisely
the term "character" is not applicable, this is just a byte sequence) and returned data is not dependent on A
or W version of the API.
Also you should pay some attention to buffer length in the case when you allocate it after first call the API with a small or null buffer to determine the length (+/-1 issues).
Question 2
How can I automate this to check for multiple characters in
a string. I tried a
inc esi statement.
lea esi, szBigBuffer[0] ;look at 1st character in buffer
for a match
lodsb
.if EAX==31h ; the '1' character
?
.
- Follow-Ups:
- Re: Couple ?s
- From: Luke
- Re: Couple ?s
- References:
- Couple ?s
- From: Andy Kennedy
- Couple ?s
- Prev by Date: MASM question...
- Next by Date: Re: MASM question...
- Previous by thread: Re: Couple ?s
- Next by thread: Re: Couple ?s
- Index(es):
Relevant Pages
|