Hi,
I am trying to create a process with the API: CreateProcessWi thLogonW.
The
process (say, CMD.EXE) which gets created doesnt have the environment
variables which I have explicitly passed into it as the parameter. The
same
environment block works for CreateProcessAs User, but doesnt give me
the same
results when used with CreateProcessWi thLogonW(). The difference in
the list
of the environment variables could be seen using the "set" command in
the
command prompts that I am creating using the APIs. (I am getting only
a few environment variables, the rest are not getting available to the
newly created process)
I really would appreciate any help regarding this.
Many thanks in advance,
Ashish 1 2081
<as*******@gmai l.comwrote in message
news:58******** *************** ***********@y5g 2000hsf.googleg roups.com...
Hi,
I am trying to create a process with the API: CreateProcessWi thLogonW.
The
process (say, CMD.EXE) which gets created doesnt have the environment
variables which I have explicitly passed into it as the parameter. The
same
environment block works for CreateProcessAs User, but doesnt give me
the same
results when used with CreateProcessWi thLogonW(). The difference in
the list
of the environment variables could be seen using the "set" command in
the
command prompts that I am creating using the APIs. (I am getting only
a few environment variables, the rest are not getting available to the
newly created process)
I really would appreciate any help regarding this.
Many thanks in advance,
Ashish
Impossible to help you out without seeing your code.
Willy. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Arne |
last post by:
Hi,
I'm working on an asp.net application that reads a users username and
password, and starts a process with the username read.
The problem is that the program returns value 2(ERROR_FILE_NOT_FOUND).
Here's my code:
public class Class1
{
|
by: jerry |
last post by:
I'm trying to run an application under another user within a winform
app writen in C#. I have tried a number of different things, but it
seems that the CreateProcessWithLogonW function should work to do what
I need to do. This appears to work just fine in Windows 2000 and XP
with service pack 1, but it doesn't work with XP service pack 2
installed.
I'm sure it's one of the "Enhanced security features" of service pack
2, but I can't...
|
by: Alireza Haghshenass |
last post by:
Dear All
I am already using CreateProcessWithLogonW() to create a process under an
specific user but when i try to load that program again from an xml file I
get an error like this. File not found. I mean the executable file is not
recognized. until I open the open dialog and go to the folder of the program
and this time the program starts the saved program. Do you know what is the
problem?
This problem does not exist for the executable...
|
by: David Davidson |
last post by:
I am attempting to use CreateProcessWithLogonW from the server-side code of a
web page (yes, I want to create a process on the server) and not having much
luck.
I am attempting to run VPScan, an unsupported command-line virus scanner
from Symantec, to check an uploaded file for viruses. At first, I wrapped
VPScan with a DLL and ran it as a COM+ component and found that it would work
only when someone was logged on and it was set to run...
|
by: chris |
last post by:
Hi!
I'm trying to start a process with different credentials. But I cannot even
compile my code as the compiler (VC++.NET) says "error C3861:
'CreateProcessWithLogonW': identifier not found, even with
argument-dependent lookup".
I have included the following headers etc, which I belive should be
sufficient:
#include "stdafx.h"
| |
by: Todd B |
last post by:
Hello,
I posted this in the aspnet.security group a few days ago but haven't
received any feedback, so I thought I would try this group. Apologies if
this is the wrong place.
I am developing an ASP.NET application that allows users to enter data using
web forms, then run an EXE when they click the appropriate button. The EXE
needs certain security rights not available to the ASPNET user.
|
by: ashu.nitc |
last post by:
Hi,
I am trying to create a process with the API:
CreateProcessWithLogonW.
The process (say, CMD.EXE) which gets created doesnt have the
environment
variables which I have explicitly passed into it as the parameter.
The
same environment block works for CreateProcessAsUser, but doesnt give
me
the same results when used with CreateProcessWithLogonW(). The
|
by: ashu.nitc |
last post by:
Hi ,
I am trying to create process using CreateProcessWithLogonW() API.
This works fine on Win2000 and NT, but in Vista it gives a UAC popup
before the process (say, notepad, calc, etc) kicks off.
This is the sample program that I am compiling on .NET
/* START OF PROGRAM */
|
by: None |
last post by:
What's the difference between StartInteractiveClientProcess in
http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx, and
CreateProcessWithLogonW?
http://msdn.microsoft.com/en-us/library/ms682431(VS.85).aspx
They look different, e.g. it seems that CreateProcessWithLogonW requires
that the user account must be allowed to log on interactively.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |