Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 13 Jun 2006 03:44:01 -0700,    group: microsoft.public.windows.developer.winfx.announcements        back       


Using GetCurrentProcess API   
Hi, 

I want to find the current process name using System.diagnostics 
GetCurrentProcess API in Vista. But Vista prohibits a standard user from 
using the above command. 

Does anyone have any idea of how to implement this? If you can help out it 
would be great
date: Tue, 13 Jun 2006 03:44:01 -0700   author:   Sridhar

Re: Using GetCurrentProcess API   
It should work fine with UAC - if a standard user is using the 
GetCurrentProcess API, then UAC will prompt for credentials - other than 
that, it should work fine.

-- 
Zack Whittaker
 ZackNET Enterprises: www.zacknet.co.uk
 MSBlog on ResDev: www.msblog.org
 Vista Knowledge Base: www.vistabase.co.uk
 This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

         --: Original message follows :--
"Sridhar"  wrote in message 
news:D491CFBB-B1EF-4DC8-A818-03472CD0DB42@microsoft.com...
> Hi,
>
> I want to find the current process name using System.diagnostics
> GetCurrentProcess API in Vista. But Vista prohibits a standard user from
> using the above command.
>
> Does anyone have any idea of how to implement this? If you can help out it
> would be great
date: Tue, 13 Jun 2006 21:48:57 +0100   author:   Zack Whittaker

Re: Using GetCurrentProcess API   
Hi Zack,

Thanks for the reply. My requirement is that the GetCurrentProcess should 
work fine whether you login as admin or standard user without showing any 
prompt for credentials.

Sridhar

"Zack Whittaker" wrote:

> It should work fine with UAC - if a standard user is using the 
> GetCurrentProcess API, then UAC will prompt for credentials - other than 
> that, it should work fine.
> 
> -- 
> Zack Whittaker
> » ZackNET Enterprises: www.zacknet.co.uk
> » MSBlog on ResDev: www.msblog.org
> » Vista Knowledge Base: www.vistabase.co.uk
> » This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and not
> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
> that up!
> 
>          --: Original message follows :--
> "Sridhar"  wrote in message 
> news:D491CFBB-B1EF-4DC8-A818-03472CD0DB42@microsoft.com...
> > Hi,
> >
> > I want to find the current process name using System.diagnostics
> > GetCurrentProcess API in Vista. But Vista prohibits a standard user from
> > using the above command.
> >
> > Does anyone have any idea of how to implement this? If you can help out it
> > would be great 
> 
> 
>
date: Tue, 13 Jun 2006 22:33:01 -0700   author:   Sridhar

Re: Using GetCurrentProcess API   
I do not see the behaviour here ( Vista Beta2), and there is no reason why 
it should happen. My code:
System.Diagnostics.Process p = 
System.Diagnostics.Process.GetCurrentProcess();

Console.WriteLine(p.MainModule.FileName);

Console.WriteLine(p.StartTime);



works as expected .

"Sridhar"  wrote in message 
news:D491CFBB-B1EF-4DC8-A818-03472CD0DB42@microsoft.com...
> Hi,
>
> I want to find the current process name using System.diagnostics
> GetCurrentProcess API in Vista. But Vista prohibits a standard user from
> using the above command.
>
> Does anyone have any idea of how to implement this? If you can help out it
> would be great
date: Thu, 15 Jun 2006 20:50:44 +0200   author:   Harald Ums

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us