| 10548 | } |
| 10549 | |
| 10550 | VarSizeType Script::GetStartMenu(bool aGetCommon, char *aBuf) |
| 10551 | { |
| 10552 | char buf[MAX_PATH] = ""; |
| 10553 | if (aGetCommon) |
| 10554 | RegReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Start Menu", buf, MAX_PATH); |
| 10555 | if (!*buf) // Either the above failed or we were told to get the user/private dir instead. |
| 10556 | RegReadString(HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Start Menu", buf, MAX_PATH); |
| 10557 | if (aBuf) |
| 10558 | strcpy(aBuf, buf); |
| 10559 | return (VarSizeType)strlen(buf); |
| 10560 | } |
| 10561 | |
| 10562 | VarSizeType Script::GetPrograms(bool aGetCommon, char *aBuf) |
| 10563 | { |