diff --git a/system/documents_dir.c b/system/documents_dir.c new file mode 100644 index 0000000..f6910de --- /dev/null +++ b/system/documents_dir.c @@ -0,0 +1,20 @@ +#include +#include +#include +#include +#include + +int wmain(void) { + + PWSTR path = NULL; + + HRESULT hr = SHGetKnownFolderPath(&FOLDERID_Documents, 0, NULL, &path); + + if (SUCCEEDED(hr)) { + wprintf(L"%ls\n", path); + } + + CoTaskMemFree(path); + + return 0; +}