PNP Driver Loading Problem

Hi Everbody,
I have a plug and play device and a driver for it…When I connect
the device,how does the PNP Manager know about the INF file it needs for the
driver to be loaded ?..I just want to run the HIDGame Driver shipped along
with the DDK,it says Driver is disabled in service database entry.As
suggested by few of our friends in the list,I have also checked the start
type in the registry…it’s 3(SERVICE_DEMAND_START)…what else can be the
problem ?..Could this error be because the actual game port itself is not
there ?

Thanks in Advance,
Best Regards,
Sai


From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
Reply To: NT Developers Interest List
Sent: Monday, January 28, 2002 7:35 PM
To: NT Developers Interest List
Subject: [ntdev] Re: ProtocolReceiveComplete IRQL

Use a work item, see NdisScheduleWorkItem().

However, as you state, the docs clearly say “ProtocolReceiveComplete
runs at IRQL PASSIVE_LEVEL”.

Can you check the call stack in your ProtocolReceiveComplete()? What
are the functions below ProtocolReceiveComplete() on the stack?

How do you know the current IRQL? If it is for sure DISPATCH_LEVEL
then this is a candidate for the OSR bug bash.

Stephan

On Mon, 28 Jan 2002 12:51:01 +0300, “foxgen” wrote:
>
> >
> > Hello !
> >My ProtocolReceiveComplete routine executes on DISPATCH_LEVEL.
> >DDK says, thay by default it is PASSIVE_LEVEL …
> >So, I guess, that my routine does something not by default …
> >
> >How can I make it execute on PASSIVE_LEVEL ?
>
> —
> You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.



You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> the device,how does the PNP Manager know about the INF file it needs for the

driver to be loaded ?

By matching the PnP ID from the INF file to the ID returned by the bus driver.
PnP manager scans all INFs to find the one which will have a match.
If no INF is found - then the user intervention is required to point PnP manager to the directory with INF and SYS files.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Max,
Thanks for the information.Further to your reply,suppose if I want
to write a game port driver what are the steps I should follow.
When exactly the PNP Manager read my INF File ?..One thing which I got from
your reply was that the bus driver maintains a list of all the supported pnp
id’s and matches the pnp id in your inf file.What is the next sequence once
the pnp id is matched ?..Kindly let me know in detail .Does the INF File
come from the Device Vendor ?..For example I want to connect a device to
serial port,should the inf file come along with the device I am going to
connect to the serial port ?.

Thanks in Advance,
Best Regards,
Sai


From: Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
Reply To: NT Developers Interest List
Sent: Monday, January 28, 2002 9:12 PM
To: NT Developers Interest List
Subject: [ntdev] Re: PNP Driver Loading Problem

> the device,how does the PNP Manager know about the INF file it needs for
the
> driver to be loaded ?

By matching the PnP ID from the INF file to the ID returned by the bus
driver.
PnP manager scans all INFs to find the one which will have a match.
If no INF is found - then the user intervention is required to point PnP
manager to the directory with INF and SYS files.

Max


You are currently subscribed to ntdev as: xxxxx@bla.satyam.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> your reply was that the bus driver maintains a list of all the supported pnp

id’s and matches the pnp id in your inf file.

No. Bus driver assembles the ID using data extracted from the hardware - config ROM for 1394, config space for PCI, descriptors for
USB.
Also matching is done by user-mode PnP manager. The bus driver is just queried to return an ID.

Does the INF File come from the Device Vendor ?

It accompanies the driver.

…For example I want to connect a device to

serial port,should the inf file come along with the device I am going to
connect to the serial port ?.

Yes, together with .SYS.
Be sure your device is compatible with “PnP serial devices” spec obtainable somewhere on MS web site.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

What do you mean by poll disks and what warning?

Philip Hong wrote:

Hi all,

I got a problem that whenever loading a file filter driver using my own
program (by using OpenSCManager, CreateService …APIs) or osrLoader,
Windows 2K must poll the system disk drives and display warning
dialogboxes.

How can I stop the system poll and dialogboxes to load the driver ?

Any methods, no matter by using APIs or by setting Windows Registry, are
welcomed.

Thanks in advance.

– Philip Hong


You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to %%email.unsub%%


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

Hi all,

I got a problem that whenever loading a file filter driver using my own
program (by using OpenSCManager, CreateService …APIs) or osrLoader,
Windows 2K must poll the system disk drives and display warning
dialogboxes.

How can I stop the system poll and dialogboxes to load the driver ?

Any methods, no matter by using APIs or by setting Windows Registry, are
welcomed.

Thanks in advance.

– Philip Hong

What is “file filter driver”? Do you mean a “file system filter driver”?
Do you mean a filter driver for a mass storage device such as floppy or
harddisk? The former is appropriate for this list, but the latter belong in
NTDEV. Maybe you mean a Windows Explorer extension which is usually
discussed in one of the Microsoft hosted newsgroups.

File system filters are loaded because of a registry key. They then look
for specific things to happen and decide to hook one or more file systems as
they load or are already present. I think they have to be a boot driver.
ASAIK, no NT OS permits file system filters to be unloaded or replaced
without rebooting. You can copy the new binary into place so it will be run
on the next boot. Some people try various tricks, but they can fail and
should never be done for a production driver.

Read the OSR FAQs first and stick to their terminology.

----- Original Message -----
From: “Philip Hong”
To: “File Systems Developers”
Sent: Thursday, December 26, 2002 10:51 PM
Subject: [ntfsd] Re: Driver loading problem

> “David J. Craig” wrote:
>
> > What does this have to do with File Systems Development?
> >
>
> I’m trying to write my own routine to load a file filter driver, I think
this is
> the most effective channel to find other expertises.
>
> In fact, this is a very fundamental problem that no one talk about on the
> Internet. I think people attending this channel should come across and
have
> solution for this problem.
>
> Sorry for causing you any inconveniences.
>
> Regards,
>
> – Philip
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yoshimuni.com
> To unsubscribe send a blank email to %%email.unsub%%
>