About Read Remote File In WindowsXp

How do you do!
My driver is very correct by impersonating user thread to read remote
file,but it appears bule screen.Please tell me,why?

I use a different method. Not to say that yours is incorrect, but mine
seems to work quite well.

  • First, the file must be opened, read from, written to and closed in
    the same process context; not thread.
  • I recommend creating a service component with proper rights to access
    the network resource.
  • Send an IOCTL to the driver in the process context of the service or
    open the driver control object in the service process context and save
    the process pointer in the driver for later reference.
  • Create a system thread in the driver, but rather than passing NULL as
    the process, pass the process pointer of the service.
  • Do all of your file operations in the thread.
  • Since the thread is running in the process context of the service, the
    thread now has access to any network resources that the service has
    access to.

Jamey Kirby
StorageCraft, inc.
xxxxx@storagecraft.com
www.storagecraft.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of mydapeng
Sent: Friday, April 05, 2002 8:03 PM
To: File Systems Developers
Subject: [ntfsd] About Read Remote File In WindowsXp

How do you do!
My driver is very correct by impersonating user thread to read remote
file,but it appears bule screen.Please tell me,why?


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%