Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
QuestionMore proxies in IE browser applications Pin
Member 441789215-Sep-09 21:13
Member 441789215-Sep-09 21:13 
QuestionNotify Icon Pin
Matthew Hazlett15-Sep-09 21:09
Matthew Hazlett15-Sep-09 21:09 
AnswerRe: Notify Icon Pin
Abhishek Sur15-Sep-09 22:31
professionalAbhishek Sur15-Sep-09 22:31 
GeneralRe: Notify Icon Pin
Matthew Hazlett16-Sep-09 5:53
Matthew Hazlett16-Sep-09 5:53 
GeneralRe: Notify Icon Pin
Matthew Hazlett16-Sep-09 6:24
Matthew Hazlett16-Sep-09 6:24 
Questiongrid view Pin
Member 59031015-Sep-09 21:09
Member 59031015-Sep-09 21:09 
AnswerRe: grid view Pin
Christian Graus15-Sep-09 21:19
protectorChristian Graus15-Sep-09 21:19 
QuestionService not running for Impersonated user with CreateProcessAsUser [C#] Pin
Shaitan0015-Sep-09 20:28
Shaitan0015-Sep-09 20:28 
There is a LocalSystem Service (Job.exe) which performs a certain absolutly required task (for example: file system watching), this service is run for all users (at least when they logon).
There is another LocalSystem Service (Serv.exe) which uses CreateProcessAsUser(...) to launch a process as a different (admin) user.
There are 2 accounts, USER (which is the one logged-on) and ADMIN.

So this is the scenario ...
User logs in to USER account (non-admin) and both LocalSystem Services (Job.exe & Serv.exe) start and work without any problems... Then at a certain point Serv.exe calls CreateProcessAsUser() using the ADMIN account in order to launch an administrative task (note that USER is currently logged in).

So far everything is fine - but now a problem happens - the process run by CreateProcessAsUser(...) under the ADMIN is not subject to the LocalSystem service JOB.exe - for example if JOB.exe monitors file-system changes and logs them if I launch a task with CreateProcessAsUser(...) under ADMIN that changes files I would assume JOB.exe would log these - but it does NOT ...

So it looks like JOB.exe is NOT running in the context of the ADMIN account when launched using CreateProcessAsUser(...), this is a big deal for me - I need to ensure JOB.exe LocalSystem service is absolutly always running - even when CreateProcessAsUser(...) is used...

Is there anything I can do to solve this problem? any help would be much appreciated.
Can I load the environment? profile? something to kick-in JOB.exe so that it actually works?

Thanks,
AnswerRe: Service not running for Impersonated user with CreateProcessAsUser [C#] Pin
Shaitan0016-Sep-09 4:31
Shaitan0016-Sep-09 4:31 
QuestionFlowLayoutPanel SizeChanged event Pin
wILDFriCK15-Sep-09 20:24
wILDFriCK15-Sep-09 20:24 
AnswerRe: FlowLayoutPanel SizeChanged event Pin
carlecomm21-Sep-09 23:19
carlecomm21-Sep-09 23:19 
QuestionUpdate contents of Folder before Installation of MSI file Pin
Abdul Rahman Hamidy15-Sep-09 20:07
Abdul Rahman Hamidy15-Sep-09 20:07 
AnswerRe: Update contents of Folder before Installation of MSI file Pin
Christian Graus15-Sep-09 20:08
protectorChristian Graus15-Sep-09 20:08 
AnswerRe: Update contents of Folder before Installation of MSI file Pin
N a v a n e e t h15-Sep-09 20:14
N a v a n e e t h15-Sep-09 20:14 
GeneralRe: Update contents of Folder before Installation of MSI file Pin
Abdul Rahman Hamidy15-Sep-09 21:53
Abdul Rahman Hamidy15-Sep-09 21:53 
AnswerRe: Update contents of Folder before Installation of MSI file Pin
Vimalsoft(Pty) Ltd15-Sep-09 21:01
professionalVimalsoft(Pty) Ltd15-Sep-09 21:01 
GeneralRe: Update contents of Folder before Installation of MSI file Pin
Abdul Rahman Hamidy16-Sep-09 3:17
Abdul Rahman Hamidy16-Sep-09 3:17 
GeneralRe: Update contents of Folder before Installation of MSI file Pin
Vimalsoft(Pty) Ltd16-Sep-09 3:18
professionalVimalsoft(Pty) Ltd16-Sep-09 3:18 
QuestionHow to make a simple stream cipher encryption for C# Pin
wSheng8715-Sep-09 19:50
wSheng8715-Sep-09 19:50 
AnswerRe: How to make a simple stream cipher encryption for C# Pin
Christian Graus15-Sep-09 20:10
protectorChristian Graus15-Sep-09 20:10 
AnswerRe: How to make a simple stream cipher encryption for C# Pin
PIEBALDconsult16-Sep-09 7:12
mvePIEBALDconsult16-Sep-09 7:12 
GeneralRe: How to make a simple stream cipher encryption for C# Pin
wSheng8716-Sep-09 16:35
wSheng8716-Sep-09 16:35 
GeneralRe: How to make a simple stream cipher encryption for C# Pin
PIEBALDconsult16-Sep-09 18:40
mvePIEBALDconsult16-Sep-09 18:40 
QuestionHow to copy execuitable Pin
DarkSorrow3815-Sep-09 18:54
DarkSorrow3815-Sep-09 18:54 
AnswerRe: How to copy execuitable Pin
egenis15-Sep-09 19:19
egenis15-Sep-09 19:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.