#C++ Starting a process in APPDATA with CreateProcess
28 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
uhh I don't see any SHGetFolderPath usage
also, the tcsCommandLine looks a little sus, what are you trying to accomplish there?
Okay so this is a plugin for a game called Rocket league, this plugin can find live streamers in your match but i need to start an external program, now in order to start it, i have to write command in C++, but i can't do that because anytime a window opens up while playing rocket league it kicks you out of the game, so this is a solution to it.
and the szPath is not it?
Aside from ethics and simply not caring for helping script kiddies, this content violates Discord's terms of service and we do not tolerate it.
• Our #rules, 6.
• Discord ToS - Rules of Conduct and Usage
this sounds like some sort of illegal modification
Nope, this is not any type of illegal activity
seems kinda sus tbh
Just explained to you why I'm using this solution
I get it, but this is the only way I can get my project to work
it’s not
He wants to check when streamers are online
you sure the CSIDL for Program Files is COMMON_APPDATA?
This might be getting the wrong version of program files
Could try this tbh
Wait, im trying to get the path for appdata
though an error returns with another path instead
for ex "Program files"... which I don't want
try this instead
std::filesystem::path path;
wchar_t* temp_path
auto szPath = SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, nullptr, &temp_path);
path = temp_path:
return path;
you can skip the std::file system if you want to do it in pre cpp17
AND, also how must I write the path for the tcsCommandLine section
path::posix( const boost::filesystem::path& path )
{
std::wstring temp = path.wstring();
std::transform( temp.begin(), temp.end(), temp.begin(), detail::forslash<wchar_t>() );
return temp;
}``` Pretty much in this format?
found this example online
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.