Converting a Legacy device to pnp

Dear All,
I have a device which is not a pnp device. Now i create a unique id
for this device to give it a device id. Do i have any API’s to make the pnp
manager know that my devcie has arrived…And is this support there on both
Windows Me and 2k versions?

Let me explain about the setup we have. We have an user-mode
application , say a CPL with which the user can configure an instance of our
device. This should notify the pnp manager of the arrival of a new instance
of the device and my driver should get called at its AddDevice.

Now in a similar way, when the user unconfigures the device, i
should be able to intimate the pnp manager that this particular device
instance is out and my driver should get IRP_MN_REMOVE etc.

Will this all be possible on 2k, XP and ME?

cheers
Sesha.
**************************************************************************
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.
**************************************************************************

Look in the XP DDK, there is an install sample which creates root
enumerated devices and installs them (which is what you want).

d

-----Original Message-----
From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
Sent: Thursday, June 27, 2002 11:43 PM
To: NT Developers Interest List
Subject: [ntdev] Converting a Legacy device to pnp

Dear All,
I have a device which is not a pnp device. Now i create a unique
id
for this device to give it a device id. Do i have any API’s to make the
pnp
manager know that my devcie has arrived…And is this support there on
both
Windows Me and 2k versions?

Let me explain about the setup we have. We have an user-mode
application , say a CPL with which the user can configure an instance of
our
device. This should notify the pnp manager of the arrival of a new
instance
of the device and my driver should get called at its AddDevice.

Now in a similar way, when the user unconfigures the device, i
should be able to intimate the pnp manager that this particular device
instance is out and my driver should get IRP_MN_REMOVE etc.

Will this all be possible on 2k, XP and ME?

cheers
Sesha.
************************************************************************
**
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%

The Sample is fine to some extent…now that a root enumerated device is
created, how do i notify the pnp manager at later point of time to delete
his device, thereby sending IRP_MN_REMOVE to my driver (for this device
though).

I mean, no traces of this root-enumerated device should be left out
after the user unconfigures the device from (some user-mode app)CPL
application.

cheers
Sesha.


From: Doron Holan[SMTP:xxxxx@windows.microsoft.com]
Reply To: NT Developers Interest List
Sent: Friday, June 28, 2002 8:07 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Converting a Legacy device to pnp

Look in the XP DDK, there is an install sample which creates root
enumerated devices and installs them (which is what you want).

d

-----Original Message-----
From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
Sent: Thursday, June 27, 2002 11:43 PM
To: NT Developers Interest List
Subject: [ntdev] Converting a Legacy device to pnp

Dear All,
I have a device which is not a pnp device. Now i create a unique
id
for this device to give it a device id. Do i have any API’s to make the
pnp
manager know that my devcie has arrived…And is this support there on
both
Windows Me and 2k versions?

Let me explain about the setup we have. We have an user-mode
application , say a CPL with which the user can configure an instance of
our
device. This should notify the pnp manager of the arrival of a new
instance
of the device and my driver should get called at its AddDevice.

Now in a similar way, when the user unconfigures the device, i
should be able to intimate the pnp manager that this particular device
instance is out and my driver should get IRP_MN_REMOVE etc.

Will this all be possible on 2k, XP and ME?

cheers
Sesha.
************************************************************************
**
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%


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

**************************************************************************
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.
**************************************************************************

According to a DDK contributor, the following 2 examples show how to use
SetupDi to uninstall a device:

src\setup\remove
src\setup\devcon

d

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
Sent: Sunday, June 30, 2002 9:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Converting a Legacy device to pnp

The Sample is fine to some extent…now that a root enumerated device
is
created, how do i notify the pnp manager at later point of time to
delete
his device, thereby sending IRP_MN_REMOVE to my driver (for this device
though).

I mean, no traces of this root-enumerated device should be left out
after the user unconfigures the device from (some user-mode app)CPL
application.

cheers
Sesha.


From: Doron Holan[SMTP:xxxxx@windows.microsoft.com]
Reply To: NT Developers Interest List
Sent: Friday, June 28, 2002 8:07 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Converting a Legacy device to pnp

Look in the XP DDK, there is an install sample which creates root
enumerated devices and installs them (which is what you want).

d

-----Original Message-----
From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
Sent: Thursday, June 27, 2002 11:43 PM
To: NT Developers Interest List
Subject: [ntdev] Converting a Legacy device to pnp

Dear All,
I have a device which is not a pnp device. Now i create a unique
id
for this device to give it a device id. Do i have any API’s to make
the
pnp
manager know that my devcie has arrived…And is this support there on
both
Windows Me and 2k versions?

Let me explain about the setup we have. We have an user-mode
application , say a CPL with which the user can configure an instance
of
our
device. This should notify the pnp manager of the arrival of a new
instance
of the device and my driver should get called at its AddDevice.

Now in a similar way, when the user unconfigures the device, i
should be able to intimate the pnp manager that this particular device
instance is out and my driver should get IRP_MN_REMOVE etc.

Will this all be possible on 2k, XP and ME?

cheers
Sesha.

************************************************************************

**
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%


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

************************************************************************
**
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks for the links Doron. Is there anyway we could do the same on Windows
ME (forcing a root-enumerated PDO be created)?


From: Doron Holan[SMTP:xxxxx@windows.microsoft.com]
Reply To: NT Developers Interest List
Sent: Monday, July 01, 2002 10:01 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Converting a Legacy device to pnp

According to a DDK contributor, the following 2 examples show how to use
SetupDi to uninstall a device:

src\setup\remove
src\setup\devcon

d

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
Sent: Sunday, June 30, 2002 9:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Converting a Legacy device to pnp

The Sample is fine to some extent…now that a root enumerated device
is
created, how do i notify the pnp manager at later point of time to
delete
his device, thereby sending IRP_MN_REMOVE to my driver (for this device
though).

I mean, no traces of this root-enumerated device should be left out
after the user unconfigures the device from (some user-mode app)CPL
application.

cheers
Sesha.

> ----------
> From: Doron Holan[SMTP:xxxxx@windows.microsoft.com]
> Reply To: NT Developers Interest List
> Sent: Friday, June 28, 2002 8:07 AM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Converting a Legacy device to pnp
>
> Look in the XP DDK, there is an install sample which creates root
> enumerated devices and installs them (which is what you want).
>
> d
>
> -----Original Message-----
> From: Seshagiri_Babu [mailto:xxxxx@Satyam.com]
> Sent: Thursday, June 27, 2002 11:43 PM
> To: NT Developers Interest List
> Subject: [ntdev] Converting a Legacy device to pnp
>
> Dear All,
> I have a device which is not a pnp device. Now i create a unique
> id
> for this device to give it a device id. Do i have any API’s to make
the
> pnp
> manager know that my devcie has arrived…And is this support there on
> both
> Windows Me and 2k versions?
>
> Let me explain about the setup we have. We have an user-mode
> application , say a CPL with which the user can configure an instance
of
> our
> device. This should notify the pnp manager of the arrival of a new
> instance
> of the device and my driver should get called at its AddDevice.
>
> Now in a similar way, when the user unconfigures the device, i
> should be able to intimate the pnp manager that this particular device
> instance is out and my driver should get IRP_MN_REMOVE etc.
>
> Will this all be possible on 2k, XP and ME?
>
> cheers
> Sesha.
>
************************************************************************
> **
> 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: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: xxxxx@satyam.com
> To unsubscribe send a blank email to %%email.unsub%%
>
************************************************************************
**
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%


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

**************************************************************************
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.
**************************************************************************