Conversion from wstring to UNICODE_STRING

Hi All,

May be a simple question for some of you…

I was wondering how can I copy the value from the variable of type wstring
to
(1) variable of type w_char_t temp1[255] (i.e., array of wchar_t) and
(2) variable of type UNICODE_STRING

Thanks!
Devang.

First initialize the unicodeString to point to wstring
by using RtlInitUnicodeString.
Then copy from one unicodeString to another if needed
by RtlCopyUnicodeString.

— Devang Shah wrote:
> Hi All,
>
> May be a simple question for some of you…
>
> I was wondering how can I copy the value from the
> variable of type wstring
> to
> (1) variable of type w_char_t temp1[255]
> (i.e., array of wchar_t) and
> (2) variable of type UNICODE_STRING
>
> Thanks!
> Devang.
>
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> $subst(‘Email.Unsub’)
>
>

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/