not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for EventCategoryTargetDeviceChange EventCategory using IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not getting any notification when I resized volume on dynamic disk. Is there any way that I can detect that volume on dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,
Pankaj


Get the freedom to save as many mails as you wish. Click here to know how.

You might want to check into the VDS user mode apis. I don’t remember
offhand if they will specifically help you here, but they provide a lot of
information about disks/volumes/etc and do so for basic and dynamic disks
through one interface.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for
both basic and dynamic disk.

To get a notification, I registered with PNP manager for
EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not
getting any notification when I resized volume on dynamic disk. Is there any
way that I can detect that volume on dynamic disk got resized in my
driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj


Get the freedom to save as many mails as you wish. Click
http:/yahoomail/tools/tools-08.html/> here to know how. — NTDEV is sponsored
by OSR For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server section of
OSR Online at http://www.osronline.com/page.cfm?name=ListServer</http:>

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:
v:* {behavior:url(#default#VML);} o:* {behavior:url(#default#VML);} w:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} You might want to check into the VDS user mode apis. I don’t remember offhand if they will specifically help you here, but they provide a lot of information about disks/volumes/etc and do so for basic and dynamic disks through one interface.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for EventCategoryTargetDeviceChange EventCategory using IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not getting any notification when I resized volume on dynamic disk. Is there any way that I can detect that volume on dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Try the revolutionary next-gen Yahoo! Mail. Click here.

Not that I know of. There probably is but it isn’t documented. But why
not use a service instead and have your service communicate with your
driver?


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user mode.
But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I don’t
remember offhand if they will specifically help you here, but they
provide a lot of information about disks/volumes/etc and do so for basic
and dynamic disks through one interface.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on
dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume
resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for
EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I
am not getting any notification when I resized volume on dynamic disk.
Is there any way that I can detect that volume on dynamic disk got
resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj



Get the freedom to save as many mails as you wish. Click here to
know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars
visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer



Try the revolutionary next-gen Yahoo! Mail. Click here.
http:ding> — NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></http:>

Thanks Mark.

I will try to implement it in my service application. But, I thought it would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:
v:* {behavior:url(#default#VML);} o:* {behavior:url(#default#VML);} w:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1:*{behavior:url(#default#ieooui) } Not that I know of. There probably is but it isn’t documented. But why not use a service instead and have your service communicate with your driver?

---------------------------------

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I don’t remember offhand if they will specifically help you here, but they provide a lot of information about disks/volumes/etc and do so for basic and dynamic disks through one interface.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for EventCategoryTargetDeviceChange EventCategory using IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not getting any notification when I resized volume on dynamic disk. Is there any way that I can detect that volume on dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------

Try the revolutionary next-gen Yahoo! Mail. Click here. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Get the freedom to save as many mails as you wish. Click here to know how.

The decision to implement functionality in the OS should be primarily
because there is no other way to do it.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk

Thanks Mark.

I will try to implement it in my service application. But, I thought it
would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:

Not that I know of. There probably is but it isn’t documented.
But why not use a service instead and have your service communicate with
your driver?



From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume
on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user
mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I
don’t remember offhand if they will specifically help you here, but they
provide a lot of information about disks/volumes/etc and do so for basic
and dynamic disks through one interface.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for
volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to
detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for
EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk.
But, I am not getting any notification when I resized volume on dynamic
disk. Is there any way that I can detect that volume on dynamic disk got
resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj



Get the freedom to save as many mails as you wish. Click
here to know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other
seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR
Online at http://www.osronline.com/page.cfm?name=ListServer



size=1 width=“100%” align=center>

Try the revolutionary next-gen Yahoo! Mail. Click here.
http:ding> — NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars
visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer



Get the freedom to save as many mails as you wish. Click here to know
how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></http:></http:>

A step back…why do you need to be notified about volume change ?

Do you have any data structure that depends on volume size ?..do you
need to change it when volume size changes ?.

One alternative is to change the structure when an IO(write!) comes in
into the grown region.

That way you don’t have to worry about PNP notifications. Instead do the
extra work when required.

Harish

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, September 05, 2007 6:32 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk

The decision to implement functionality in the OS should be primarily
because there is no other way to do it.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk

Thanks Mark.

I will try to implement it in my service application. But, I thought it
would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:

Not that I know of. There probably is but it isn’t documented.
But why not use a service instead and have your service communicate with
your driver?



From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume
on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user
mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I
don’t remember offhand if they will specifically help you here, but they
provide a lot of information about disks/volumes/etc and do so for basic
and dynamic disks through one interface.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for
volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to
detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for
EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk.
But, I am not getting any notification when I resized volume on dynamic
disk. Is there any way that I can detect that volume on dynamic disk got
resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj



Get the freedom to save as many mails as you wish. Click
here to know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other
seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR
Online at http://www.osronline.com/page.cfm?name=ListServer




Try the revolutionary next-gen Yahoo! Mail. Click here.
http:ding> — NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars
visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

________________________________

Get the freedom to save as many mails as you wish. Click here to know
how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></http:></http:>

Hi,

I think your approach is OK if resize means only extend. But, resize can be shrinking also. Microsoft may be supporting it in Vista. I am not very sure about this.

Harish Arora wrote:
v:* {behavior:url(#default#VML);} o:* {behavior:url(#default#VML);} w:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} A step back……why do you need to be notified about volume change ?

Do you have any data structure that depends on volume size ?..do you need to change it when volume size changes ?.
One alternative is to change the structure when an IO(write!) comes in into the grown region.
That way you don’t have to worry about PNP notifications. Instead do the extra work when required.

Harish

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, September 05, 2007 6:32 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

The decision to implement functionality in the OS should be primarily because there is no other way to do it.

---------------------------------

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

Thanks Mark.

I will try to implement it in my service application. But, I thought it would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:

Not that I know of. There probably is but it isn’t documented. But why not use a service instead and have your service communicate with your driver?

---------------------------------

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I don’t remember offhand if they will specifically help you here, but they provide a lot of information about disks/volumes/etc and do so for basic and dynamic disks through one interface.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for EventCategoryTargetDeviceChange EventCategory using IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not getting any notification when I resized volume on dynamic disk. Is there any way that I can detect that volume on dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer



Try the revolutionary next-gen Yahoo! Mail. Click here. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Try the revolutionary next-gen Yahoo! Mail. Click here.

Hi,

you wrote a volume filter. In your dispatch routine for
IRP_MJ_DEVICE_CONTROL you can intercept
those IOCTLs that hold information about volume sizes, such as
IOCTL_DISK_GET_PARTITION_INFO etc.
The most useful is IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS.

Else

Thanks Mark.

I know, following question is not related to driver development. Please, excuse.
I think to work with user mode APIs I need to to write COM client application. Correct me if I am wrong ? Is there any VDS client sample code available to start with ?
Does it require newer version of Visual Studio ?

“Roddy, Mark” wrote:
v:* {behavior:url(#default#VML);} o:* {behavior:url(#default#VML);} w:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1:*{behavior:url(#default#ieooui) } The decision to implement functionality in the OS should be primarily because there is no other way to do it.

---------------------------------

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

Thanks Mark.

I will try to implement it in my service application. But, I thought it would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:

Not that I know of. There probably is but it isn’t documented. But why not use a service instead and have your service communicate with your driver?

---------------------------------

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it in user mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode apis. I don’t remember offhand if they will specifically help you here, but they provide a lot of information about disks/volumes/etc and do so for basic and dynamic disks through one interface.

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP manager for EventCategoryTargetDeviceChange EventCategory using IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on basic disk. But, I am not getting any notification when I resized volume on dynamic disk. Is there any way that I can detect that volume on dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
size=1 width=“100%” align=center>
Try the revolutionary next-gen Yahoo! Mail. Click here. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------

Get the freedom to save as many mails as you wish. Click here to know how. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Unlimited freedom, unlimited storage. Get it now

Yes you need to implement a VDS client using COM. Perhaps there is some
C# equivalent wrapperish thing that would also suffice.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Thursday, September 06, 2007 6:27 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk

Thanks Mark.

I know, following question is not related to driver development. Please,
excuse.

I think to work with user mode APIs I need to to write COM client
application. Correct me if I am wrong ? Is there any VDS client sample
code available to start with ?

Does it require newer version of Visual Studio ?

“Roddy, Mark” wrote:

The decision to implement functionality in the OS should be
primarily because there is no other way to do it.



From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume
on dynamic disk

Thanks Mark.

I will try to implement it in my service application. But, I
thought it would be easy if I can implement it in kernel.

-Pankaj

“Roddy, Mark” wrote:

Not that I know of. There probably is but it isn’t
documented. But why not use a service instead and have your service
communicate with your driver?



From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for
volume on dynamic disk

Thanks Mark.

I went through VDS user mode APIs. I think, I can do it
in user mode. But , I need to do it in kernel mode.

Is there any way I can do it in kernel ?

Mark Roddy wrote:

You might want to check into the VDS user mode
apis. I don’t remember offhand if they will specifically help you here,
but they provide a lot of information about disks/volumes/etc and do so
for basic and dynamic disks through one interface.

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification
for volume on dynamic disk

Hi,

I wrote a volume filter driver. My objective is
to detect volume resize for both basic and dynamic disk.

To get a notification, I registered with PNP
manager for EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .

I got notification when I resized volume on
basic disk. But, I am not getting any notification when I resized volume
on dynamic disk. Is there any way that I can detect that volume on
dynamic disk got resized in my driver(volume filter) ?

Thanks in advance.

Regards,

Pankaj



Get the freedom to save as many mails as you
wish. Click here to know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and
other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of
OSR Online at http://www.osronline.com/page.cfm?name=ListServer



Try the revolutionary next-gen Yahoo! Mail. Click here.
http:ding> — NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other
seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR
Online at http://www.osronline.com/page.cfm?name=ListServer



size=1 width=“100%” align=center>

Get the freedom to save as many mails as you wish. Click here to
know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars
visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

________________________________

Unlimited freedom, unlimited storage. Get it now
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR For
our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server
section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></http:></http:></http:>

pankaj kale wrote:

I think to work with user mode APIs I need to to write COM client
application. Correct me if I am wrong ?

Yes, the VDS APIs are implemented as a COM object. That doesn’t really
change your application architecture; you just need to call CoInitialize
before you CoCreateInstance on CLSID_VdsLoader.

Is there any VDS client sample code available to start with ?

MSDN includes some code snippets in the section on “Virtual Disk Service
Programming Guide”.

Does it require newer version of Visual Studio ?

Newer than what? :wink:

The include files are not included with Visual Studio 2005. You will
need to download the Vista Platform SDK.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Mark and Roberts,

Actually I was using visual studio .NET 2003.

Tim Roberts wrote: pankaj kale wrote:
>
> I think to work with user mode APIs I need to to write COM client
> application. Correct me if I am wrong ?

Yes, the VDS APIs are implemented as a COM object. That doesn’t really
change your application architecture; you just need to call CoInitialize
before you CoCreateInstance on CLSID_VdsLoader.

> Is there any VDS client sample code available to start with ?

MSDN includes some code snippets in the section on “Virtual Disk Service
Programming Guide”.

> Does it require newer version of Visual Studio ?

Newer than what? :wink:

The include files are not included with Visual Studio 2005. You will
need to download the Vista Platform SDK.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

---------------------------------
Download prohibited? No problem. CHAT from any browser, without download.