UMDF equivalent of RegisterDeviceNotification

Hi there,

I am wondering if there’s an equivalent to user mode app RegisterDeviceNotification() for UMDF drivers; or, to rephrase, is there any way to have a UMDF driver receive system events from devices other than its own?

My understanding is that UMDF cannot use IoRegisterPlugPlayNotification.

Cheers,
Alex Fotios

I think you need to Device Interfaces callbacks:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff561372(v=vs.85).aspx

e.g:
IPnpCallbackRemoteInterfaceNotification::OnRemoteInterfaceArrival

UMDF does provide interfaces for device interface change notification, and
target device change notification. See these links.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff561372(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/ff560247(v=vs.85).aspx

-kumar

wrote in message news:xxxxx@ntdev…

Hi there,

I am wondering if there’s an equivalent to user mode app
RegisterDeviceNotification() for UMDF drivers; or, to rephrase, is there any
way to have a UMDF driver receive system events from devices other than its
own?

My understanding is that UMDF cannot use IoRegisterPlugPlayNotification.

Cheers,
Alex Fotios

Thank you guys.

Indeed this looks like the way to go. I will post back once I try it along with what I ended up doing.

Cheers,
Alex

Hi all,

I am still looking into this. Besides IPnpCallbackRemoteInterfaceNotification that provides for registration of remote device event callbacks I found the IWDFRemoteTarget interface to be quite interesting as well.

I just wanted to confirm my understanding that methods like IWDFRemoteTarget::Start and IWDFRemoteTarget::Stop, IWDFRemoteTarget::Close and IWDFRemoteTarget::Restart are completely inconsequential to the functioning of the remote device itself and only control the behavior of RemoteTarget representation objects that presumably live somewhere within the framework runtime.

Cheers,
Alex

Correct. Those APIs change the state of the abstraction that lives in your driver

d

debt from my phone


From: xxxxx@gmail.com
Sent: 7/18/2012 3:06 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] UMDF equivalent of RegisterDeviceNotification

Hi all,

I am still looking into this. Besides IPnpCallbackRemoteInterfaceNotification that provides for registration of remote device event callbacks I found the IWDFRemoteTarget interface to be quite interesting as well.

I just wanted to confirm my understanding that methods like IWDFRemoteTarget::Start and IWDFRemoteTarget::Stop, IWDFRemoteTarget::Close and IWDFRemoteTarget::Restart are completely inconsequential to the functioning of the remote device itself and only control the behavior of RemoteTarget representation objects that presumably live somewhere within the framework runtime.

Cheers,
Alex


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