Hey, I have a slight problem. I have managed to figure out how to copy and move files to XP's start up folder, and in some accounts Vista's startup folder. Now with Vista I can successfully copy and move the file to my own user account, but how do I move it to a another users account if I don't know the name?
CopyFile("welcome.exe","C:\\Users\\miclo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\welcome.exe",0);
That works fine, but like I said, how do I do it if I don't know the users name? I have googled and found very few places that mention something about it but I'm finding it very hard to understand.
I hope you understand what I am trying to do, if not as a small example:
C:\\Users\\*\\AppData\\Roaming\\
C:\\Users\\%s\\AppData\\Roaming\\
Kind of like wildcards and matches, but what actually works in C++, this is a win32 app just in case you need to know, not an MFC.