MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / GetDocumentsFolder

Function GetDocumentsFolder

source/util.cpp:3143–3149  ·  view source on GitHub ↗

Caller must call CoTaskMemFree() on the result when done.

Source from the content-addressed store, hash-verified

3141
3142// Caller must call CoTaskMemFree() on the result when done.
3143PWSTR GetDocumentsFolder()
3144{
3145 PWSTR path;
3146 if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_Documents, KF_FLAG_DONT_VERIFY, NULL, &path)))
3147 return path;
3148 return nullptr;
3149}
3150
3151
3152

Callers 2

InitMethod · 0.85
InitFuncLibrariesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected