Frank, Yes, I'm talking about disabling an endpoint from the Sound control panel. If I disable an endpoint, it doesn't show up in the MMDevice state as disabled, it shows up as not present. We want to use this to restrict what the user can do with our APO. There may be things they can do when the endpoint is active or unplugged that we don't want them to do when it's disabled. Mike -----Original Message----- From: Frank Yerrace <Frank.Yerrace@xxxxxxxxxxxxx> Subj: [wdmaudiodev] Re: Disabled devices on Vista showing up as "not present" Date: Wed Nov 1, 2006 10:55 am Size: 2K To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx> This is an unfortunate clash of different terminology in different areas. The DEVICE_STATE_DISABLED state in mmdevapi reflects the state that occurs when you right-click on an endpoint in the Sound control panel and select Disable. This is different than disabling the PnP device in the Device Manager. May I ask why you need to have awareness of these other states? Generally they are for use within the Sound control panel. Frank Yerrace Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Michael R. Preston Sent: Tuesday, October 31, 2006 2:09 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Disabled devices on Vista showing up as "not present" I'm seeing a curious problem when enumerating the playback endpoints on a system. There are 4 possible device states - Active, Disabled, Not Present, and Unplugged. I have an application that enumerates the endpoints and checks their state. If I go into the Sound control panel and disable one of the devices, the call to GetState() on the MMDevice returns DEVICE_STATE_NOTPRESENT, instead of DEVICE_STATE_DISABLED. Is this the expected behavior? This is causing problems because there is apparently a hidden playback endpoint, "Remote Playback (Microsoft RDP Audio Transport)", which also shows up as Not Present. How can I tell the difference between disabled endpoints and hidden ones? Thanks, Mike -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Mike Preston | Home/Office: (360)756-1655 | | E-mail: mike@xxxxxxxxxxxxxxxxxxx | Cell: (360)303-9331 | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | The man who follows the crowd will usually get no | | further than the crowd. The man who walks alone is | | likely to find himself in places no one has ever been. | | -- Alan Ashley-Pitt | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ****************** 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/ ****************** 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/