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

Method GetProgramFiles

Source/script.cpp:10529–10536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10527
10528
10529VarSizeType Script::GetProgramFiles(char *aBuf)
10530{
10531 char buf[MAX_PATH];
10532 RegReadString(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProgramFilesDir", buf, MAX_PATH);
10533 if (aBuf)
10534 strcpy(aBuf, buf);
10535 return (VarSizeType)strlen(buf);
10536}
10537
10538VarSizeType Script::GetDesktop(bool aGetCommon, char *aBuf)
10539{

Callers 1

GetMethod · 0.80

Calls 1

RegReadStringFunction · 0.85

Tested by

no test coverage detected