ProcessIdToSessionId () problem on win2008

  • Thread starter Thread starter amitmane82@gmail.com
  • Start date Start date
A

amitmane82@gmail.com

Guest
HI All,

On win2003 i was using ProcessIdToSessionId () api to get sessionID
for given processID. But when i use same code on longhorn (win2k8)
ProcessIdToSessionId () api fails with error "Acess Denied".

If any one have any idea about this problem then please guide
me.
Thanks in advance.

Thanks,
Amit.
 
Re: ProcessIdToSessionId () problem on win2008

What user account are you using to run the app that calls
ProcessIdToSessionId()?
First thing I would check is if you're being protected by 'User Account
Control'. For more info:
http://technet.microsoft.com/en-us/windowsvista/aa906021.aspx#EBBAC
http://www.microsoft.com/windows/products/windowsvista/features/details/useraccountcontrol.mspx

Thanks
Soo Kuan


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

<amitmane82@gmail.com> wrote in message
news:1194354163.856376.252530@v29g2000prd.googlegroups.com...
> HI All,
>
> On win2003 i was using ProcessIdToSessionId () api to get sessionID
> for given processID. But when i use same code on longhorn (win2k8)
> ProcessIdToSessionId () api fails with error "Acess Denied".
>
> If any one have any idea about this problem then please guide
> me.
> Thanks in advance.
>
> Thanks,
> Amit.
>
 
Re: ProcessIdToSessionId () problem on win2008

On Nov 7, 9:22 am, "Soo Kuan Teo [MSFT]"
<sooku...@online.microsoft.com> wrote:
> What user account are you using to run the app that calls
> ProcessIdToSessionId()?
> First thing I would check is if you're being protected by 'User Account
> Control'. For more info:http://technet.microsoft.com/en-us/.../windows/products/windowsvista/features/detai...
>
> Thanks
> Soo Kuan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <amitman...@gmail.com> wrote in message
>
> news:1194354163.856376.252530@v29g2000prd.googlegroups.com...
>
> > HI All,

>
> > On win2003 i was using ProcessIdToSessionId () api to get sessionID
> > for given processID. But when i use same code on longhorn (win2k8)
> > ProcessIdToSessionId () api fails with error "Acess Denied".

>
> > If any one have any idea about this problem then please guide
> > me.
> > Thanks in advance.

>
> > Thanks,
> > Amit.


Hi Soo,

Thanks for your help.

I have written a service which uses given processID to get it's
corresponding sessionID.
For this service account UAC is enabled.

Thanks,
Amit
 
Back
Top