Re: SCSI pass-through in user mode

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The problem is that you cannot get a handle, CreateFile. You can do what
Mark suggests, write a service, or write an itermediate driver that attaches
to t he storage stack. Trust me. The service is much easier.

Oh ... and I have nver heard of SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER IOCTL.
I think you meant SCSI_PASS_THROUGH_DIRECT.

--
The personal opinion of
Gary G. Little

"Mark Roddy" <markr@xxxxxxxxxxxxxx> wrote in message
news:6snm22hc6r28mu1ejn06ejlvjt1piq943r@xxxxxxxxxx
On 29 Mar 2006 07:30:55 -0800, "pada" <paymand@xxxxxxxxxxx> wrote:

I have an application that uses SCSI pass through to communicate with
my device. This application works fine if I log in as Administrator,
but in user mode it does not work.

I the problem on the SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER IOCTL or when
I try to open the device using CreatFile function?

Thanks for your help


The problem is that SPT is a restricted interface. Write a service and
have your users give their requests to your service which in turn will
perform the SPT correctly.


=====================
Mark Roddy DDK MVP
Windows Vista/2003/XP/2000 Consulting
Device and Filesystem Drivers
Hollis Technology Solutions 603-321-1032
www.hollistech.com


.



Relevant Pages

  • Re: Good example of C and MACRO
    ... I programmed PDP-11 stuff for years, and never actually noticed the lack ... but did anybody evfer actually find a use for the MARK ... Not in the least bit surprising that MARK was the only user mode ... instruction that wasn't needed in compatability mode (RSX-11M/M+ ...
    (comp.os.vms)
  • Re: Good example of C and MACRO
    ... koehler@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Bob Koehler) wrote: ... but did anybody evfer actually find a use for the MARK ... Not in the least bit surprising that MARK was the only user mode ... don't use it and thier compilers don't generate it). ...
    (comp.os.vms)