I'm working on Scsi miniport driver and
GUI which is communicating with the driver.
They must be supported under NT/2000
I was told that the way to get a handle from a disk is....
hDevice = CreateFile("\\\\.\\C:",
.... );
i got that working... and the next,
I tried to send a message with ...
rDevice = DeviceIoControl(hDevice,
IOCTL_SCSI_MINIPORT,
.... );
At this point, i got failed sending the message to my SCSI driver's
IoControl function...
This occurs only under 2000.
With NT, it's fine... so wierd...
Help me please....
Try CreateFile("\\\\.\\Scsi0" ... ) Scsi1, Scsi2, or whatever number your
device has.
Slava
I have already tried putting every string pointers as possible...like...
\\\\.\\Scsi0 , 1, 2 ... , \\\\.\\PhysicalDrive0, 1, 2.... etc..
There were no problems with CeateFile() function's working
under boths of NT and 2000.
DeviceIoControl() is black sheep... especially in 2000.
it works fine under NT.
But in 2000 with same code, it never works...
I could NOT find any informations about difference between them...
Should i make special INF for 2000 ?
"Slava M. Usov" <stripit...@usa.net> wrote in message
news:urMSQW5MAHA.257@cppssbbsa05...
> "KIM JUNG TAE" <jt...@aralion.co.kr> wrote in message
> news:#OgUKYlMAHA.247@cppssbbsa05...
> > Hi
> >
> > I'm working on Scsi miniport driver and
> > GUI which is communicating with the driver.
> > They must be supported under NT/2000
> >
> > I was told that the way to get a handle from a disk is....
> >
> > hDevice = CreateFile("\\\\.\\C:",
> > .... );
>
What is the error code?
Slava
Correct, thank you.
Slava
"KIM JUNG TAE" <jt...@aralion.co.kr> wrote in message
news:#zFIHEDN...@cppssbbsa02.microsoft.com...
> Thanks for your answer.
>
> I have already tried putting every string pointers as possible...like...
> \\\\.\\Scsi0 , 1, 2 ... , \\\\.\\PhysicalDrive0, 1, 2.... etc..
>
> There were no problems with CeateFile() function's working
> under boths of NT and 2000.
> DeviceIoControl() is black sheep... especially in 2000.
> it works fine under NT.
> But in 2000 with same code, it never works...
>
> I could NOT find any informations about difference between them...
>
Wasn't there some extra security added to the DeviceIoControl() stuff? I
seem to recall that the process under Win2000 needs a few extra security
tidbids. This was added to prevent a user-written tool to go around NT
security and access any part of disk directly.
Rob