H
SHGetFolderPath mit entsprechender CSIDL
char szAppDataPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_COMMON_STARTUP, NULL, SHGFP_TYPE_CURRENT, szAppDataPath);
MessageBox(NULL, szAppDataPath, "All Users Autostart (NT/2K/XP only!)", MB_OK|MB_ICONINFORMATION);
SHGetFolderPath(NULL, CSIDL_STARTUP, NULL, SHGFP_TYPE_CURRENT, szAppDataPath);
MessageBox(NULL, szAppDataPath, "Current Users Autostart", MB_OK|MB_ICONINFORMATION);