I am not advanced with Windows.h header file. How do I make this work? When I use full directory path with my local user's name it works, but when I use %appdata%, it doesn't. I need to have %appdata% here for portability.
#include <stdio.h>
#include <Windows.h>
int main() {
ShellExecuteA(0,0, "%%appdata%%\\Roaming\\Zoom\\bin\\Zoom.exe","--url=zoommtg://zoom.us/join?action=join&confno=SECRET&pwd=SECRET",0,0);
}
"SECRET" is intentional, on actual usage they would be replaced with appropriate codes. Sorry for adding 'c++' tag for this question, but perhaps someone who knows how to solve this, could help me as well.