How to convert ULONG to String at <= DISPATCH_LEVEL

Hi,

I have a ULONG variable that I want to convert to a string value. In user
space I’d use ultoa. However, I’d like to develop this conversion in kernel
mode at <= DISPATCH_LEVEL. Is there a function that I can use to do this or
do I need to create my own function?

Thanks,

Marc

Why not look in any college textbook where data conversion of this type is discussed?
“Marc Cruz” wrote in message news:xxxxx@ntfsd…
Hi,

I have a ULONG variable that I want to convert to a string value. In user space I’d use ultoa. However, I’d like to develop this conversion in kernel mode at <= DISPATCH_LEVEL. Is there a function that I can use to do this or do I need to create my own function?

Thanks,

Marc

RtlIntegerToUnicodeString or RtlIntPtrToUnicodeString

NOTE they only work at passive level.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Marc Cruz
Sent: Thursday, November 16, 2006 10:14 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How to convert ULONG to String at <= DISPATCH_LEVEL

Hi,

I have a ULONG variable that I want to convert to a string value. In
user space I’d use ultoa. However, I’d like to develop this conversion
in kernel mode at <= DISPATCH_LEVEL. Is there a function that I can use
to do this or do I need to create my own function?

Thanks,

Marc
— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed
to ntfsd as: xxxxx@legato.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

RYO

“Marc Cruz” wrote in message news:xxxxx@ntfsd…
Hi,

I have a ULONG variable that I want to convert to a string value. In user
space I’d use ultoa. However, I’d like to develop this conversion in kernel
mode at <= DISPATCH_LEVEL. Is there a function that I can use to do this or
do I need to create my own function?

Thanks,

Marc

I think the ansi string or unicode string encode as sequencely this means
‘0’ + 9 = ‘9’ ,
i think we could write some trick code for deal this.