[wdmaudiodev] Re: (no subject)

  • From: "Sam Tertzakian" <sam@xxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 13 Oct 2005 22:54:28 -0700

I think error occurs when the File Handle is no longer valid. Like if the
underlying device is suddenly removed. 

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Squall
Sent: Tuesday, October 11, 2005 9:23 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: (no subject)

Hi,
  I am now writing a Ring 3 application that will register KSEvent on my
Ring 0 miniport driver such that it receives notification from driver when
there's any status change in the hardware. However i am seeing strange thing
on my Ring 0 driver. Basically it receives my Event Enable call but not my
Event Disable call.

  My Ring 3 Enable call is as follows:
  bSuccess = DeviceIoControl(m_hDevHandle,
                    IOCTL_KS_ENABLE_EVENT,
                    &KsEvent,
                    sizeof(KSEVENT),
                    &KsEventData,
                    sizeof(KSEVENTDATA),
                    &dwReturn,
                    NULL);
    and my disable call goes like this:
    bSuccess = DeviceIoControl(m_hDevHandle,
                       IOCTL_KS_DISABLE_EVENT,
                       &KsEventData,
                       sizeof(KSEVENTDATA),
 
NULL,                                                                  
                       0,
                       &dwReturn,
                       NULL);
        where the KsEventData is the same as the one used in Event Enable.

For Disable event bSuccess returns me a FALSE with GetLastError() = 0x1F
(ERROR_GEN_FAILURE).
Can anyone shed a light on what's the problem here?

Thanks in advance!
Squall.

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: