Hello,
I have a virtual disk driver. The driver can be cleanly unload/reload on
XP and later computers. However, under W2K, a reboot is required
to reload the driver. I hope this is not a limitation of W2K and wonder
where should I look to find a solution for this problem.
TIA
Chu Bun
Virtual disk drivers sometimes require a reboot on XP too, IIRC if
some files are opened on the disk and FS cannot dismount.
Max
----- Original Message -----
From: “ChuBun”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Tuesday, July 08, 2003 10:55 PM
Subject: [ntdev] Driver Unload and W2K Problem
> Hello,
>
> I have a virtual disk driver. The driver can be cleanly
unload/reload on
> XP and later computers. However, under W2K, a reboot is required
> to reload the driver. I hope this is not a limitation of W2K and
wonder
> where should I look to find a solution for this problem.
> TIA
> Chu Bun
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
I forgot to mention this is after the disk has been dismounted.
Here is what happens
- Load driver (CreateService)
- Start driver (StartService)
- Mount disk
- Dismount disk
- Stop driver (ControlService with SERVICE_CONTROL_STOP)
- Unload driver (DeleteService)
- Load driver (failed in W2K because the driver is marked for deletion)
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
>
> Virtual disk drivers sometimes require a reboot on XP too, IIRC if
> some files are opened on the disk and FS cannot dismount.
>
> Max
>
> ----- Original Message -----
> From: “ChuBun”
> Newsgroups: ntdev
> To: “NT Developers Interest List”
> Sent: Tuesday, July 08, 2003 10:55 PM
> Subject: [ntdev] Driver Unload and W2K Problem
>
>
> > Hello,
> >
> > I have a virtual disk driver. The driver can be cleanly
> unload/reload on
> > XP and later computers. However, under W2K, a reboot is required
> > to reload the driver. I hope this is not a limitation of W2K and
> wonder
> > where should I look to find a solution for this problem.
> > TIA
> > Chu Bun
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
>
>
You shouldn’t be calling DeleteService. The driver is already unloaded
by the previous step.
ChuBun wrote:
I forgot to mention this is after the disk has been dismounted.
Here is what happens
- Load driver (CreateService)
- Start driver (StartService)
- Mount disk
- Dismount disk
- Stop driver (ControlService with SERVICE_CONTROL_STOP)
- Unload driver (DeleteService)
- Load driver (failed in W2K because the driver is marked for deletion)
“Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
>
>> Virtual disk drivers sometimes require a reboot on XP too, IIRC if
>>some files are opened on the disk and FS cannot dismount.
>>
>> Max
>>
>>----- Original Message -----
>>From: “ChuBun”
>>Newsgroups: ntdev
>>To: “NT Developers Interest List”
>>Sent: Tuesday, July 08, 2003 10:55 PM
>>Subject: [ntdev] Driver Unload and W2K Problem
>>
>>
>>
>>>Hello,
>>>
>>>I have a virtual disk driver. The driver can be cleanly
>>
>>unload/reload on
>>
>>>XP and later computers. However, under W2K, a reboot is required
>>>to reload the driver. I hope this is not a limitation of W2K and
>>
>>wonder
>>
>>>where should I look to find a solution for this problem.
>>>TIA
>>>Chu Bun
>>>
>>>
>>>
>>>—
>>>You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>>>To unsubscribe send a blank email to
>>
>>xxxxx@lists.osr.com
>>
>>
>>
>>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nryan.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
–
- Nick Ryan (MVP for DDK)
Why you’re using Create/DeleteService?
First, the PnP driver must be installed by the INF file, not by
CreateService.
Second - to update the PnP driver of your own, you can just stop all
devnodes and then replace the .SYS file, DeleteService is not
necessary.
Max
----- Original Message -----
From: “ChuBun”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Wednesday, July 09, 2003 7:25 PM
Subject: [ntdev] Re: Driver Unload and W2K Problem
> I forgot to mention this is after the disk has been dismounted.
> Here is what happens
>
> - Load driver (CreateService)
> - Start driver (StartService)
> - Mount disk
> - Dismount disk
> - Stop driver (ControlService with SERVICE_CONTROL_STOP)
> - Unload driver (DeleteService)
> - Load driver (failed in W2K because the driver is marked for
deletion)
>
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
> >
> > Virtual disk drivers sometimes require a reboot on XP too,
IIRC if
> > some files are opened on the disk and FS cannot dismount.
> >
> > Max
> >
> > ----- Original Message -----
> > From: “ChuBun”
> > Newsgroups: ntdev
> > To: “NT Developers Interest List”
> > Sent: Tuesday, July 08, 2003 10:55 PM
> > Subject: [ntdev] Driver Unload and W2K Problem
> >
> >
> > > Hello,
> > >
> > > I have a virtual disk driver. The driver can be cleanly
> > unload/reload on
> > > XP and later computers. However, under W2K, a reboot is
required
> > > to reload the driver. I hope this is not a limitation of W2K
and
> > wonder
> > > where should I look to find a solution for this problem.
> > > TIA
> > > Chu Bun
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com