[wdmaudiodev] Re: How to Get PID of a audio player in the audio driver

  • From: Frank Yerrace <Frank.Yerrace@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 7 Oct 2009 17:33:45 +0000

Audio device drivers- i.e. kernel mode WDM audio drivers- receive the mixed 
output of all locally connected sessions and all remote sessions that are 
connected with the "Leave sound at remote computer" option. Remote sessions 
that are connected with the "Bring sound to this computer" option have their 
sound redirected over the network to the client computer through a separate 
mechanism designed specifically for remote desktop experiences (as I've said 
before several times in several different ways).

Frank Yerrace
Microsoft

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


From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Dennis Scott
Sent: Wednesday, October 07, 2009 3:52 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: How to Get PID of a audio player in the audio driver

Can any one please answer these questions w.r.t Terminal server audio 
operations in VISTA.

1. will audio engine has only one instance per system or it is instantiated in 
each terminal server session (i.e, output of audio engine to Device driver is 
mixed output of all session stream or individual session stream)
2. If i get a audio stream in my driver is their a way that i can decide that 
stream is from session with id X.
On Tue, Oct 6, 2009 at 12:42 PM, Dennis Scott 
<dennis.scott@xxxxxxxxxxxxxx<mailto:dennis.scott@xxxxxxxxxxxxxx>> wrote:
Clemens wrote:
>>Kernel drivers don't really belong to sessions.
i knows that, prior to VISTA it belongs to console session session ID 0, from 
vista it belongs to isolated session 0.so i wanted to get session id from a 
application, but that cant be done as audiodg.exe is in between the app and the 
driver.



>>What do you need the session ID for?
I wanted sessionID for RDP sound speaker/Mic operation in VISTA.

On Tue, Oct 6, 2009 at 12:18 PM, Clemens Ladisch 
<clemens@xxxxxxxxxx<mailto:clemens@xxxxxxxxxx>> wrote:
Dennis Scott wrote:
> call PsGetCurrentProcess() to get the current process and then trying to get
> sessionId from this process using unDocumented PsGetProcessSessionId(), some
> times this will give me correct Session id but under some scenarios this
> will return only 0.
Kernel drivers don't really belong to sessions.

What do you need the session ID for?


Best regards,
Clemens
******************

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

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


Other related posts: