Site Tools


zos:zos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zos:zos [2025/02/16 12:54] – [Literatura] 2a00:1028:919d:bcb2:da5e:d3ff:fe59:4914zos:zos [2025/02/24 19:46] (current) – [Poznámky] 2001:718:2:1901:0:1:94bc:a64a
Line 233: Line 233:
  
 XV6 https://pdos.csail.mit.edu/6.S081/2020/xv6/book-riscv-rev1.pdf XV6 https://pdos.csail.mit.edu/6.S081/2020/xv6/book-riscv-rev1.pdf
 +
 +<code C++>
 +
 +// #undef UNICODE
 +#include <Shlobj.h>  // need to include definitions of constants
 +
 +#include <iostream>
 +using namespace std;
 +
 +int main()
 +{
 +    WCHAR path [MAX_PATH];
 +    
 +    if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PROFILE, NULL, 0, path)))
 +    {
 +        wcout << "Home direcory: " << path << endl;;
 +    }
 +
 +    if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, path)))
 +    {
 +        wcout << "Documents directory: " << path << endl;;
 +    }
 +}
 +
 +</code>
 +
zos/zos.1739710485.txt.gz · Last modified: 2025/02/16 12:54 by 2a00:1028:919d:bcb2:da5e:d3ff:fe59:4914