Hi,
Someone posted a similar question to the list in 2001 but without any
responses! I am going to try again hoping for a response
In my IRP_MJ_CREATE dispatch I try to retrieve the file id of the file.
Since this consumes a lot of stack, I queue this into a workitem.
I use SeCreateClientSecurity, SeImpersonateClient, PsRevertToSelf and
finally SeDeleteClientSecurity. This seems to work fine for all
cases where I try to access network shares. However I have problems in
loading and saving roaming profiles.
Can anyone tell me what is wrong?
I initialise the QOS values with SecurityImpersonation,
SECURITY_STATIC_TRACKING, FALSE.
I call the SeCreateClientSecurity with PsGetCurrentThread() and
ServerIsRemote set to FALSE.
Since this is in IRP_MJ_CREATE would using either of PsGetCurrentThread() or
irp->Tail.Overlay.Thread make a difference?
Thanks in advance