Impersonation different behaviour XP SP2

Hi,

I’m using impersonation mechanism, with function
“SeCreateClientSecurity” on a system thread than I’m
using “SeImpersonateClientEx” on a thread that is
running in NonAdmin user in order to perform an
operation requires administrator rights.
I used a Windows XP SP1 machine and run my code and
everything worked fine, than on SAME machine, I
installed SP2 and got from ZwCreateFile for requested
call STATUS_ACCESS_DENIED (c0000022)…
again - it is same code, same machine, different
Service Pack.
I’ve encountered same problem in Windows 2000 SP4
machine.
I suspect that some Windows hotfix is the source for
this inconsistent.

The Question:
Does anyone aware of any hotfix - other thing that
might cause this strange behavior?

Thanks in advance

Alon


Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com