You should specify also the module name in parameters: LPTSTR cmdArgs = "App [email protected]";
It should be the whole command line (including argv[0]).
More Related Contents:
- How can I run a child process that requires elevation and wait?
- How to run application which requires admin rights from one that doesn’t have them [closed]
- Use CreateProcess to Run a Batch File
- Windows threading: _beginthread vs _beginthreadex vs CreateThread C++
- How to make thread sleep less than a millisecond on Windows
- What’s “wrong” with C++ wchar_t and wstrings? What are some alternatives to wide characters?
- How can I get a process handle by its name in C++?
- What does “WINAPI” in main function mean?
- What is the easiest way to parse an INI File in C++? [closed]
- Cannot convert parameter from ‘const char[20]’ to ‘LPCWSTR’
- Creating a transparent window in C++ Win32
- Get current cursor position
- SetupDiGetDeviceProperty usage example
- WaitForInputIdle doesn’t work for starting mspaint programmatically
- Can I download the Visual C++ Command Line Compiler without Visual Studio?
- How can I change the background color of a button WinAPI C++
- How to query a running process for its parameters list? (Windows, C++)
- Intercept windows open file
- What does LPCWSTR stand for and how should it be handled?
- How might I wrap the FindXFile-style APIs to the STL-style Iterator Pattern in C++?
- How to effectively kill a process in C++ (Win32)?
- Find what directory the running process EXE is stored in [duplicate]
- Why is RegOpenKeyEx() returning error code 2 on Vista 64bit?
- Name of process for active window in Windows 8/10
- Convert bitmap to PNG in-memory in C++ (win32)
- Getting another process command line in Windows
- Visual Studio 2013: CL.exe exited with code -1073741515
- C++: What’s the simplest way to read and write BMP files using C++ on Windows?
- Getting a list of user profiles on a computer in C++ Win32
- How make FILE* from HANDLE in WinApi?