Problem with PsSetLoadImageNotifyRoutine In Japanese

Hi,
I have a problem with PsSetLoadImageNotifyRoutine. My
simple boot load driver has a LoadImageNotify routine,
which is registered from DriverEntry itself. It worked
well if the executed module’s path doesn’t include
characters other than English. For a japanese path, the
FullImageName received in the notify routine is wrong.

I have noticed that the path name changes with change in
the Locale settings(in regional settings). Ie, If the
default language is English and path include Japanese
characters, the image name in the notify routine is
complete, but contains junk characters shown as “?”.(from
softice, i have seen that its value is 3F 00. for eg
c:\abc????\xyz.exe). But if the Default language is
Japanese, the path is incomplete (but there is no “?”,
like c:\abc<jap path>\x).

I have seen this behavior in both Win 2k and XP . As my
entire design is based on this, it is very critical to
resolve this problem. Does this have any relation with the
project settings/build environment? Why is this callback
affected with change in Locale?

Any suggestion to solve this would be greatly appreiceated

Thanks and Regards

I’ve no idea how to solve this, but it surely looks like the results I get
when I confuse characters counts with byte counts…

The character 3F00 is a unified Han Ideograph; the Kanji are Han Ideograph.
You can see a picture of 3F00 here
http://www.unicode.org/charts/PDF/U3400.pdf it might look somehow familiar?
I wonder if your junk is in fact “not junk but displayed as junk becuase of
the locale”?

wrote in message news:xxxxx@ntfsd…
> Hi,
> I have a problem with PsSetLoadImageNotifyRoutine. My
> simple boot load driver has a LoadImageNotify routine,
> which is registered from DriverEntry itself. It worked
> well if the executed module’s path doesn’t include
> characters other than English. For a japanese path, the
> FullImageName received in the notify routine is wrong.
>
> I have noticed that the path name changes with change in
> the Locale settings(in regional settings). Ie, If the
> default language is English and path include Japanese
> characters, the image name in the notify routine is
> complete, but contains junk characters shown as “?”.(from
> softice, i have seen that its value is 3F 00. for eg
> c:\abc????\xyz.exe). But if the Default language is
> Japanese, the path is incomplete (but there is no “?”,
> like c:\abc<jap path>\x).
>
>
> I have seen this behavior in both Win 2k and XP . As my
> entire design is based on this, it is very critical to
> resolve this problem. Does this have any relation with the
> project settings/build environment? Why is this callback
> affected with change in Locale?
>
>
> Any suggestion to solve this would be greatly appreiceated
>
>
> Thanks and Regards
>

no,I want to get the fullpathname to call ZwCreateFile…
So,I must get the fullpathname.

Hmm … perhaps you mean your wide chars contain 003F (the ‘?’ character
code) instead of 3F00 (a Han Idograph)…? In that case I dont have an
answer for you … and I can see that you didnt get an answer last year
either http://www.osronline.com/showThread.cfm?link=111458 … I wonder if
you found this post on ntdev
http://www.osronline.com/showThread.cfm?link=105910

wrote in message news:xxxxx@ntfsd…
> no,I want to get the fullpathname to call ZwCreateFile…
> So,I must get the fullpathname.
>