Re: Question about SID
From: Dave (Dave_at_discussions.microsoft.com)
Date: 10/30/04
- Previous message: Eric Perlin [MS]: "Re: WLX_DLG_SAS (101)"
- In reply to: Yu Chen [MS]: "Re: Question about SID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 29 Oct 2004 19:26:01 -0700
Note that if you enumerate processes based on the user sid then you will get
all process for that user even from other logon sessions (if for some reason
the user has them.) You can enumerate the processes based on the logon sid to
monitor only processes from that logon
"Yu Chen [MS]" wrote:
> The user SIDs in primary tokens of all these processes should be the same
> since they are started under the same user account.
>
> --
> Yu Chen [MS]
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Krishna Monian" <KrishnaMonian@discussions.microsoft.com> wrote in message
> news:DCD967DE-83F8-4203-85E3-DF27AF392EDF@microsoft.com...
> > Hi,
> > Currently I create a process from my program as a different user (similar
> to
> > runas). This process that I create spawns several other processes (which
> are
> > also under this different user).
> >
> > My question is, will the SID of all these processes under this separate
> user
> > as obtained from the WTS_PROCESS_INFO structure(the pUserSid field) which
> I
> > get by calling WTSEnumerateProcesses be the same? If so can I just acquire
> > the SID once during the entire run of the process and use it to compare
> > whether a particular process is running under the user?
> >
> > Thanks
> > Krishna Monian
>
>
>
- Previous message: Eric Perlin [MS]: "Re: WLX_DLG_SAS (101)"
- In reply to: Yu Chen [MS]: "Re: Question about SID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|