Questions tagged [createprocessasuser]
114 questions
0
votes
2 answers
How can I set the maximum number of threads for a specific process?
I am using CreateProcessAsUser Windows API method to create process. I am creating the process with a security token and add it to a job object.
Can I limit the maximum number of threads for the process I am staring using either security token or…

Nikolay Kostov
- 16,433
- 23
- 85
- 123
0
votes
1 answer
Genearting screenshot (BMP) with Windows Service and CreateProcessWithLogonW
I'm trying to create a screenshot application using windows service, that can capture complete screen at regular time intervals. To get started with, I took basic window service example…

paul zwerky
- 11
- 3
0
votes
0 answers
Using CreateProcessWithLoginW to elevate setup process in Win7
Am trying to modify a legacy VB6 application to be able to run on Windows 7. The application runs setup installers for individual sub applications. Yes, I know that's bad but I can't change that at the moment.
I've been trying to use…

Siegmund Nagel
- 1,321
- 2
- 11
- 19
0
votes
0 answers
CreateProcessAsUser fail,use GetLastError() to get the error code is 1314
I use win7 os and the develop environment is vs2005.
The situation is I want to create the process as current account's priviledge.(such as: in the normal account ,right click the program choice "run as admin" )
I refer to other people's way:
1.get…

lvshuchengyin
- 235
- 1
- 4
- 19
0
votes
1 answer
CreateProcessAsUser from service has security issues accessing a remote machine
I'm trying to synchronize my local (remote) database with a centralized consolidated database on the server (using Sybase database). The synchronization has to happen at a scheduled time, and i am using "CreateProcessByUser". To initiate the…

Hemanth
- 11
- 3
0
votes
1 answer
want thread to complete before process executes
I'm creating a process as a User(CreateProcessAsUser()) to launch an application on the users screen. I need to somehow get a function to run on the user's screen before the application launches. My thought were to CreateRemoteThread() and put my…

user1881918
- 33
- 6
0
votes
2 answers
CreateProcessAsUser, call dll function
With CreateProcessAsUser I can call an .exe file somewhere on the hard disk:
CreateProcessAsUser(IntPtr hToken, string lpApplicationName, string lpCommandLine,
ref SECURITY_ATTRIBUTES lpProcessAttributes, ref…

manton
- 541
- 1
- 6
- 26
-1
votes
1 answer
Bring browser to front that is started by ShellExec/Process.Start
The complex solution below is justified by the need of bringing a browser window to front. It is working ~90% of the time. The problem is the 10%, when it doesn't.
I have an application that is running on a different desktop than the user's active…

Peter Bulyaki
- 309
- 5
- 10
-3
votes
1 answer
A process created with CreateProcessAsUserW from a 64 bit process exits immediately with exception code 0xc06d007e on Windows 7 64 bit
I have a C# Application, which is launched from a C++ DLL using CreateProcessAsUserW api. The process is launched successfully, but terminates immediately. It works properly on Windows 10 [both as 32 bit and 64 bit] and 32 bit on Windows 7. I found…

Sagar Kapadia
- 105
- 1
- 9