when I call
RtlCompareUnicodeString((PUNICODE_STRING)filename,&targetName, TRUE )
a page error occurs, why?
I noticed that both filename and targetName has valid unicode string,
and RtlCompareUnicodeString must running on PASSIVE_LEVEL.
I call this function in IRP_MJ_SET_INFORMATION dispatch function,
is there any problem?
thanks!
You write “(PUNICODE_STRING)filename” which might be a clue. What is the
type of “filename”? If its just say PWCHAR like as in zero terminated string
or something, then this at least is a problem, since
“(PUNICODE_STRING)filename” isnt a valid UNICODE_STRING.
“Holk” wrote in message news:xxxxx@ntfsd…
> when I call
> RtlCompareUnicodeString((PUNICODE_STRING)filename,&targetName, TRUE )
>
> a page error occurs, why?
> I noticed that both filename and targetName has valid unicode string,
> and RtlCompareUnicodeString must running on PASSIVE_LEVEL.
>
> I call this function in IRP_MJ_SET_INFORMATION dispatch function,
> is there any problem?
>
> thanks!
>
>
>