From: windhunterII on
I have made driver on the base of Sample Driver for OSR USB Fx2. I want to
receive notofications, when my device plugs and unplugs. I try to use
WM_DEVICECHANGE. I receive that message, but the wParam is always 7.
What can be wrong with the driver?
From: Egidio [MSFT] on
What is your environment? I.e., are you using a separate app to detect when
your driver is loaded/unloaded? Plus, did you try enabling and disabling
your driver with device manager? Make sure to run appverifier for your
driver (wudfhost, wudfx, <your dll>) to detect any ref leaks.

Egi.

"windhunterII" <windhunterII(a)discussions.microsoft.com> wrote in message
news:9AD5A77E-0099-4A4C-AAE5-A354EA336D61(a)microsoft.com...
> I have made driver on the base of Sample Driver for OSR USB Fx2. I want to
> receive notofications, when my device plugs and unplugs. I try to use
> WM_DEVICECHANGE. I receive that message, but the wParam is always 7.
> What can be wrong with the driver?

From: Doron Holan [MSFT] on
are you calling RegisterDeviceNotification and passing in the device
interface GUID?

--

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


"windhunterII" <windhunterII(a)discussions.microsoft.com> wrote in message
news:9AD5A77E-0099-4A4C-AAE5-A354EA336D61(a)microsoft.com...
> I have made driver on the base of Sample Driver for OSR USB Fx2. I want to
> receive notofications, when my device plugs and unplugs. I try to use
> WM_DEVICECHANGE. I receive that message, but the wParam is always 7.
> What can be wrong with the driver?

From: windhunterII on
Thanks for reply. I have solved the problem. The driver didn't load properly.

"Egidio [MSFT]" wrote:

> What is your environment? I.e., are you using a separate app to detect when
> your driver is loaded/unloaded? Plus, did you try enabling and disabling
> your driver with device manager? Make sure to run appverifier for your
> driver (wudfhost, wudfx, <your dll>) to detect any ref leaks.
>
> Egi.
>
> "windhunterII" <windhunterII(a)discussions.microsoft.com> wrote in message
> news:9AD5A77E-0099-4A4C-AAE5-A354EA336D61(a)microsoft.com...
> > I have made driver on the base of Sample Driver for OSR USB Fx2. I want to
> > receive notofications, when my device plugs and unplugs. I try to use
> > WM_DEVICECHANGE. I receive that message, but the wParam is always 7.
> > What can be wrong with the driver?
>
> .
>