The device gets stuck when running "Surprise Removal" test with "Run Tests with I/O" option selected in a NDIS 6.2 WWAN driver for DTM.

·         When Run Tests with I/O option is disabled, the test passes. ·         This issue can be specific to a Win 7 NDIS 6.2 WWAN driver only. ·         Compiling the same driver as NDIS 6.0 or NDIS 5.1 does not reproduce the issue. ·         We may not see any pending IRPs or reference in the…


Usage of NativeWindow.AssignHandle/ReleaseHandle when unmanaged code is involved.

If an application is Subclassing from managed and unmanaged code, it should not use the NativeWindow.AssignHandle/ReleaseHandle to subclass/unsubclass due to following reasons,   In a managed application, if we call NativeWindow.AssignHandle to subclass, while that Winproc is still in the subclass chain and some native component calls SetWindowLong or SetWindowSubclass, and then when we call…