Hi Bruce:

I asked a bit ago:

>> Would it be true that if a string is returned to PP by a plugin, said
>> string can contain any character in range \x01 to xFF without any
>> difficulty; and same sting would be returned unchanged to plugin if
>> passed in in subsequent service call?

You said a bit ago:

> Yes, AFAIK this is true.  In fact, as long as you did not assign or 
> work with the string an another function, it could also contain x00 
> (BTW \00 is now accepted in a liteeral as well).

Further check: does that mean that in a plugin 

  ppsv->SetVar(LPSTR var, LPSTR val)

can properly set a variable to a string that contians a \x00?  I
assume not, cause you'd have to know how long the BYTE* val was, since
it's \x00 not trustworthy as indication of end-of-string.

In which case, any cance of a 

  ppsv->SetVar(LPSTR var, LPSTR val, int iCount)?

which I guess you'd implement with memcpy?

I could use it in a number of plugins...





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to