MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey-v1.0 / GetStartMenu

Method GetStartMenu

Source/script.cpp:10550–10560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10548}
10549
10550VarSizeType 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
10562VarSizeType Script::GetPrograms(bool aGetCommon, char *aBuf)
10563{

Callers 1

GetMethod · 0.80

Calls 1

RegReadStringFunction · 0.85

Tested by

no test coverage detected