A windows service is supposed to launch an application, passing some
arguments to the executable. I am trying to do this using
CreateProcessWithLogonW(string principal,
string authority,
string password,
LogonFlags logonFlags,
string appName,
string cmdLine,
CreationFlags creationFlags,
IntPtr environmentBlock,
string currentDirectory,
ref StartupInfo startupInfo,
out ProcessInfo processInfo) API function.
I set the parameter "cmdLine" for passing string to the executable.
The following code doesn't get me anything ...
static void Main(string[] args)
{
// that doesn't give any value
string acrossprocessvalue = args[0];
//neither the following lines
string test = Process.GetCurrentProcess().StartInfo.Arguments;
}
any help ...