Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulating empty removable disk drive while media is in drive

0 views
Skip to first unread message

Baydon

unread,
Jan 10, 2002, 4:20:33 PM1/10/02
to
I am looking to write a COM object for making a removable
drive appear empty while there is media in the drive. I
am hoping to do this without having to reboot as it is
for batch testing purposes. If any one knows how to
manage this, or where to start please let me know. Thx
all, plz email me at bay...@ispytech.com.

Baydon

Jamey Kirby

unread,
Jan 14, 2002, 2:35:12 AM1/14/02
to
You will need a disk filter driver. Hook all removable disks. Create a
special IOCTL that will set a flag to indicate no media. When this is set,
you can return the proper status codes to indicate there is no media.

This is not a complete design, but you get the idea.

Jamey


"Baydon" <bay...@ispytech.com> wrote in message
news:739d01c19a1c$a34d79d0$a5e62ecf@tkmsftngxa07...

Baydon

unread,
Jan 15, 2002, 1:36:31 PM1/15/02
to
Thank Jamey,

I haven't done any driver dev, might someone have a
basic sample to get me started? Would this be possible in
Win98 also?

>.
>

Dejan Maksimovic

unread,
Jan 15, 2002, 6:36:57 PM1/15/02
to

On 9x, you might succeed with a simple file system filter, which
returns ERROR_MEDIA_NOT_PRESENT (or whatever it was called) code to the
OS, when the media is checked...

Regards, Dejan.

Baydon wrote:

> Thank Jamey,
>
> I haven't done any driver dev, might someone have a basic sample
> to get me started? Would this be possible in Win98 also?

--
Kind regards, Dejan M. www.alfasp.com
E-mail: de...@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32 developers.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa Registry Monitor - Registry monitoring library for Win32
developers.
Alfa Registry Protector - Registry protection library for Win32
developers.


0 new messages