Questions tagged [createprocessasuser]

114 questions
1
vote
0 answers

How do I launch a exe file (will pop out GUI) with windows service correctly

I have a problem with launching a exe file with windows service. My service will call "CreateProcessasUser" function in MSDN, and it will launch the exe file correctly, however the launched exe task only shows in task manager but didn't prompt on…
1
vote
1 answer

vb.net CLR/SHIM error: This application could not be started. --> Unable to find a version of the runtime to use

Getting an unexpected, "This application cannot be started" popup error that is suggesting SHIM_NOVERSION_FOUND error in .NET CLR. Here's what's going on... I have two vb.net applications: 1- MyApp.exe -- Windows Forms App 2- Launcher.exe --…
Brian
  • 315
  • 5
  • 10
1
vote
1 answer

CreateProcessAsUser from Windows Service, WTSQueryUserToken function return false

I'm trying to create a process which a wpf application. In Visual Studio debugging mode, it runs perfectly but windows service cant create it with gui. I'm using CreateProcessAsUser() with WTSQueryUserToken(), DuplicateTokenEx(). But…
user5945979
1
vote
1 answer

CreateProcessWithUser fails to impersonate user with errors 87, 1349

On a windows 2003 server, running from a service, createprocessasuser fails with error 87, and an error from WLEXECSERVER that says fails to impersonate user. On a windows 2003 server 64 bit, running from a service, createprocessasuser fails with…
vakuras
  • 987
  • 6
  • 10
1
vote
1 answer

What's the meaning of the error value 0x16f returned by the GetLastError() function

When I call the function CreateProcessAsUser(), it returns a failure. And then the call to GetLastError() to check why the error occurred returns the value 0x16f. I couldn't find out what the error is supposed to mean.
1
vote
1 answer

exe started with CreateProcessAsUser randomly crashes on start

Here is the situation : I have a C# .NET Windows service (run as localsystem) that starts a satellite C# .NET executable (windowless WinForms) under the current logged in user account, using CreateProcessAsUser. Sometimes it works, sometimes... it…
1
vote
0 answers

Why does the CreateProcessAsUser have error 1314 in my code?

I need to create process as user. However during creating the process some error appears. The error is: 1314 CreateProcessAsUser A required privilege is not held by the client. import win32api import win32security import win32process import…
Frenky
  • 35
  • 8
1
vote
1 answer

CreateProcessAsUser not working correctly in my experiments

I am trying to do the following: 1. I am logged in as Administrator account in my XP with SP2 machine running VS.NET 2005 2. This machine also has another account user1 which is a guest account 3. I am running a program as Administrator, from this…
user41118
  • 11
  • 1
  • 2
1
vote
1 answer

Run app from a service using CreateProcessAsUser

I'm still trying to run an app calling it from windows service. I tried to use the way described by Scott Allen. It works. But still I can't bring the app to the screen to interact with it. Help me pls. Even if I'm telling it to run the service…
1
vote
2 answers

Get Window Station for a non-interactive user per process, user or session?

When using CreateProcessAsUser we pass STARTUPINFO and with lpDesktop NULL, the target is winsta0/default, the interactive desktop of the interactive user. I wish to target a window station in another session of a second, non-interactive user, say a…
BillyG
  • 51
  • 1
  • 5
1
vote
0 answers

cant load dll that contains call to CreateProcessAsUserW

i have a program that loads dlls, all dlls have only one simple c function "run". one dll contains call to CreateProcessAsUserW and when i try to load it, LoadLibrary reports error 127 "ERROR_PROC_NOT_FOUND". when i comment it out, dll loads…
user4442454
1
vote
0 answers

How to use CreateProcessWithLogonW with extended attributes (STARTUPINFOEX)

I really want to be able to do file redirection via shared pipes, and filter the list of inherited handles to only those stdout/stderr/stdin handles, and as far as I can find STARTUPINFOEX and extended attributes are the way to do that. I also need…
zackrun
  • 11
  • 2
1
vote
2 answers

CreateProcessWithLogonW Error 1783: The stub received bad data

I have this test code: int main(int argc, char *argv[]) { setlocale(LC_ALL, ""); std::string user; std::string pass; std::cout << "user: "; getline(std::cin, user); std::cout << "\npass: "; getline(std::cin, pass); …
UndeadDragon
  • 717
  • 8
  • 23
1
vote
1 answer

redirect output to file from createprocessasuser

I made a windows service which download a file from an address that I give and then execute with createprocessasuser function, all worked good till I tried to redirect the output to a file I see the new window of the program thats running with…
ohad
  • 11
  • 1
  • 5
1
vote
0 answers

python: handling stderr stream when using createprocessasuser api in windows

Need some help debugging this issue. I tried searching online and stackoverflow but could not find a solution for this. I am fairly new to the windows api so please pardon my ignorance. Basically, I am trying to run a c++ application that outputs to…
salkesh
  • 11
  • 1