RE: Help:Accessing network from a system thread in Win200- 0

It can be that worker thread (local system account) doesn’t has credentials
to access network resources. Unfortunately, I don’t know (yet) how to do
“impersonating (working) threads in kernel space”. In MSDN Library there are
a lot of topics regarding thread impersonation in W32 space.

Maybe a starting point for your search.
WBR Primoz

-----Original Message-----
From: mydapeng [mailto:mydapeng@263.net]
Sent: Wednesday, February 20, 2002 4:15 AM
To: File Systems Developers
Subject: [ntfsd] Help:Accessing network from a system thread in Win2000

How do you do

In a system thread,I want to open a network file:
InitializeObjectAttributes(&ObjectAttributes,
&usMountedFile/*LAN file name*/,
OBJ_CASE_INSENSITIVE, NULL, NULL);

if (NT_SUCCESS((ntStatus =1+ZwCreateFile(&hFileHandle, SYNCHRONIZE |
FILE_READ_DATA,
&ObjectAttributes, &IoStatus, NULL,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_READ, FILE_OPEN,
FILE_SYNCHRONOUS_IO_NONALERT, NULL, 0))))

But opening the file fail,anyboby can tell me a good way about the
question?


You are currently subscribed to ntfsd as: xxxxx@hermes.si
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com