Re: UNICODE_STRING storage
From: Tim Roberts (timr_at_probo.com)
Date: 03/09/04
- Next message: Mohanasundaram: "Audio Wave driver installation"
- Previous message: Tim Roberts: "Re: Need Help on POSUSB"
- In reply to: Gary G. Little: "Re: UNICODE_STRING storage"
- Next in thread: Gary G. Little: "Re: UNICODE_STRING storage"
- Reply: Gary G. Little: "Re: UNICODE_STRING storage"
- Reply: Ray Trent: "Re: UNICODE_STRING storage"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 08 Mar 2004 22:17:49 -0800
"Gary G. Little" <gary.g.little.nospam@seagate.com> wrote:
>
>L"Hello World" is a UNICODE_STRING?
No, but it IS a Unicode string, as Alex said.
>Gee whiz, for about 10 years now I've
>been under the assumption that L"Hello World" would give you a pointer to a
>zero terminated double byte character string, and that passing said string
>pointer to RtlInitUnicodeString would simply set the Length, MaximunLength,
>and set Buffer to the pointer to the string constant.
Right. How is that different from what Alex said?
>Now I find out that I have wasted all those lines of code passing
>L"Something or other" to RtlInitUnicodeString because L"Something or other"
>is already a Unicode_STRING. Well golly gee.
It is a Unicode string. It is not a UNICODE_STRING. RtlInitUnicodeString
converts the first to the second.
>Methinks one needs a review of C Programming 101, Alex.
Methinks you need to read posts more carefully, especially when you turn on
the <sarcasm> modifier.
-- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc
- Next message: Mohanasundaram: "Audio Wave driver installation"
- Previous message: Tim Roberts: "Re: Need Help on POSUSB"
- In reply to: Gary G. Little: "Re: UNICODE_STRING storage"
- Next in thread: Gary G. Little: "Re: UNICODE_STRING storage"
- Reply: Gary G. Little: "Re: UNICODE_STRING storage"
- Reply: Ray Trent: "Re: UNICODE_STRING storage"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|