murali

To
Whom ever it may concern

From
murali
Email Id : xxxxx@ftdpl.com.sg

Hello all

I am working on USB based Hard disk Drive (portable HDD).
Windows 98 OS, driver development.
I could able to write and read from the sector.

The problem that i am facing-
a) I couldn’t able to display say U:/any default drive when the hard disk is connected, in windows explorer.

please explain how to dispaly as an icon or drive letter in
windows explorer when my HDD is connected.

Please explain in detail. And also suggest any books avilable on this. If any work is aviable on the above issue.

mail me as early as possible to the above given email ID.

with regards
murali

Wow, that is an interesting one. Win98 does not include storage drivers on
the USB stack. So you are writing your own. I guess you have to already
developed WDM driver (or a VXD maybe) to communicate with the device along
with the disk.pdr (or a miniport). Well when your drivers sees a hard drive
you can make an entry in the registry under the ENUM key indicating that you
found a hardware and call a re-enumerate for the parent devnode. You can do
this by calling a CONFIGMG_ReenumerateDevnode function. If you are using a
WDM driver you might not need to do this as you will get a start new device
message but you will have to make the registry entries under the ENUM key.

----- Original Message -----
From: “Murali S”
To: “NT Developers Interest List”
Sent: Tuesday, September 19, 2000 2:32 AM
Subject: [ntdev] murali

> To
> Whom ever it may concern
>
> From
> murali
> Email Id : xxxxx@ftdpl.com.sg
>
> Hello all
>
> I am working on USB based Hard disk Drive (portable HDD).
> Windows 98 OS, driver development.
> I could able to write and read from the sector.
>
> The problem that i am facing-
> a) I couldn’t able to display say U:/any default drive when the hard disk
is connected, in windows explorer.
>
> please explain how to dispaly as an icon or drive letter in
> windows explorer when my HDD is connected.
>
> Please explain in detail. And also suggest any books avilable on this. If
any work is aviable on the above issue.
>
> mail me as early as possible to the above given email ID.
>
> with regards
> murali
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>

In Windows 98, the IOS hierarchy is like this.

IFSMGR
VFAT
IOS
DISKTSD
DISKVSD
ScsiPort/Port driver

(IOS does not just sit above DISKTSD, DISKVSD, Scsiport and does nothing.
Apart from receiving calls from VFAT it and pass it down to other lower level
drivers it also provides a lot of services to the drivers below it.

In order for the drive to be recognized DISKTSD should recognize your volume
and create a logical DCB for it. Then VFAT mounts on it. Without
VFAT/relevant driver mounting on it you wont see a drive letter. I think you
are doing something wrong with processing AEP commands in your driver, which
are sent to you as soon as you register with IOS using IOS_Register.

Raja

Also USBLS120 sample found at www.microsoft.com can be used as reference. It
has a WDM to control the USB part and a port driver to interface with IOS.

Where is the sample code USBLS120 exactly located? I could not find it.

Thanks

James

-----Original Message-----
From: xxxxx@aol.com [mailto:xxxxx@aol.com]
Sent: Thursday, September 21, 2000 8:28 AM
To: NT Developers Interest List
Subject: [ntdev] Re: murali

Also USBLS120 sample found at www.microsoft.com can be used as reference. It

has a WDM to control the USB part and a port driver to interface with IOS.

USBLS120 can be found at:

http://support.microsoft.com/support/kb/articles/Q257/7/51.ASP

Hai all,

I am just started writing Device driver for Portable
Hard disk drive (USB Based)
operating system : windows 98
I have 98-DDk installed. Before writing the Device driver
i have gone through winNT device driver book by Art Baker.

I have also written the low leve1 driver, by which i could able to write to HDD sector and read from the sector and alos ofcourse identify the device.

I could not able understand

In 98 DDK some directory has exe and sys, he telling that it has the complete driver
c:\98ddk\src\usb\bulkusb\sys, system files for driver source code.
c:\98ddk\src\usb\bulkusb\exe, miniport driver c program
source code.

In the above i could able to compile and execute the program
using build -cef,

But in some other places where printer driver etc are there i could able to compile and execute the files in sys and exe file directory.

error i am getting bin\cl not installed

my first question is how do i compile the
directory where there is no seperate sys and exe directory.

I am starter of DEvice driver program.

Also my serious problem is that i have use API calls to develop my miniport driver program. Please suggest any books avilable for this.

please explain me about the complete architecture of DEvice driver program.

awaiting for the reply at the earliest.

with regards
murali

VFAT- virtual file alloction table. I hope that file will be
provided by microsoft. I so tell me the location

There is a book on Win95 architecture that has a good chapter on block
device drivers. Its a Microsoft Press book by Walter Oney and is named
‘Systems Programming’ or something. The driver architecture is the same for
Win98. This book plus something on WDM should give you some understanding of
how to make this work.

----- Original Message -----
From: “Murali S”
To: “NT Developers Interest List”
Sent: Thursday, September 21, 2000 6:01 AM
Subject: [ntdev] murali

> Hai all,
>
> I am just started writing Device driver for Portable
> Hard disk drive (USB Based)
> operating system : windows 98
> I have 98-DDk installed. Before writing the Device driver
> i have gone through winNT device driver book by Art Baker.
>
> I have also written the low leve1 driver, by which i could able to write
to HDD sector and read from the sector and alos ofcourse identify the
device.
>
> I could not able understand
>
> In 98 DDK some directory has exe and sys, he telling that it has the
complete driver
> c:\98ddk\src\usb\bulkusb\sys, system files for driver source code.
> c:\98ddk\src\usb\bulkusb\exe, miniport driver c program
> source code.
>
> In the above i could able to compile and execute the program
> using build -cef,
>
> But in some other places where printer driver etc are there i could able
to compile and execute the files in sys and exe file directory.
>
> error i am getting bin\cl not installed
>
> my first question is how do i compile the
> directory where there is no seperate sys and exe directory.
>
> I am starter of DEvice driver program.
>
> Also my serious problem is that i have use API calls to develop my
miniport driver program. Please suggest any books avilable for this.
>
> please explain me about the complete architecture of DEvice driver
program.
>
> awaiting for the reply at the earliest.
>
> with regards
> murali
>
>
>
> VFAT- virtual file alloction table. I hope that file will be
> provided by microsoft. I so tell me the location
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>