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

  • From: Dennis Scott <dennis.scott@xxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 6 Oct 2009 12:42:18 +0530

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> 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
> 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: