From my read, he is not interested in high-level security, just
something to keep the average user from directly accessing the data. He
also states that the data is encrypted.
If he just wants to protect his users from themselves, hiding a drive
letter may do the trick.
>in XP drive letters can be assigned per session. They are not per
process.<<
Interesting… How can I be so wrong? I better investigate.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Peter Wieland
Sent: Friday, October 18, 2002 11:39 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Device Enumeration
you can use them, but that’s no different from using \.\Tape0:, and
still provides no actual security.
in XP drive letters can be assigned per session. They are not per
process.
-p
-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Friday, October 18, 2002 11:18 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Device Enumeration
You can use the numbers 0 - 9 as drive letters. Explorer and other
applications will not see these drive letters during an enumeration, but
if you open the file like this: “4:\path\dir\file.ext”, it will work.
Also, under XP, drive letters can be assigned on a process-by-process
basis. So, only your process will see your drive letter.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Weston Fryatt
Sent: Friday, October 18, 2002 11:05 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Device Enumeration
This is just the answer I was looking for … Thanks!
The reason why we don’t want to the devices to have a drive letter… Is
that we dealing with highly sensitive medical data. And we’re trying to
prevent an employee from just reading the data right off the disk… or
stealing the disk… (the data is encrypted and the disk is in its own
format) The application will work with the driver directly… so its not
really a problem there… just trying to keep it as secure as
possible…
Thanks again!
Weston
----- Original Message -----
From: “Peter Wieland”
To: “NT Developers Interest List”
Sent: Friday, October 18, 2002 12:33 PM
Subject: [ntdev] RE: Device Enumeration
have you read the storage section of the DDK documents? what you’re
talking about is a class driver and there should be some stuff there to
get you started.
1) scsiport sends inquiries to every device on the bus. It collects the
inquiry data and builds PDOs for each LUN attached. It then reports
these to the plug & play manager. PNP based on the device ID generated
by scsiport (which is generated from the inquiry data) and the INF files
in the system directory determines the “best” driver to control the
device. That driver is loaded and its AddDevice routine is called.
that said - there are several sample class drivers in the DDK which
would be the best place for you to start from. In particular look at
the disk driver (which is the source for the one windows ships with).
You can build a modified version of this (with a different name) to get
installed for your WORM drive.
2)
a) I’m kind of curious why you don’t want the drives to get drive
letters. You can use these to access the devices as easily as you could
use \.\worm0.
b) read about IoCreateSymbolicLink. However this naming scheme doesn’t
work particularly well in a PNP system. Due to changes in
configurations, updates of drivers and removal of devices the namespace
you’re describing can eaisly become sparse and may not remain consistant
from boot to boot. The better option is to use device interfaces -
these generate ridiculously long and complex symbolic links in the
object directory to your device, but they’re enumerable through the
SetupDI API, can be easily tied to the other SetupDI functions (like
installation, removal, update of drivers, installation of filters,
etc…) and just about always point to the same device boot after boot.
-p
-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, October 18, 2002 8:25 AM
To: NT Developers Interest List
Subject: [ntdev] Device Enumeration
Env: Windows 2000, VC++ 6, SCSI WORM (Magneto-Optical) Drives
Hi, This is my first message to the list and I’m also writing my first
device driver.
I’m building a driver that talk to SCSI WORM (Magneto-Optical) Drivers
and Juke Boxes.
Questions:
1: At boot time, How does my driver know that these devices exist?
2: I do not want drives under the control of my driver to be mounted to
the OS with a drive letters, But I do want to give them their own device
name
(ie: \worm0: \worm1: and so on…) (two part question here)
a: Currently the drives auto mount themselves under Window 2000, How
do I unmount them (drive letter)?
b: How to I assign my own share name to these devices? (ie: \worm1:
)
Thanks!
Weston Fryatt
—
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@muuf.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%