Windows Shell declarations for folder-path lookup through caller-supplied UTF-16 storage and raw owner-window or token inputs.
CSIDL_APPDATA: application-data folder identifier with value 26.SHGFP_TYPE_CURRENT: current-path selector with value 0.SHGFP_TYPE_DEFAULT: default-path selector with value 1."windows/shell32" use
"control" use
{} () {} [
CSIDL_APPDATA printStack _:;
SHGFP_TYPE_CURRENT printStack _:;
SHGFP_TYPE_DEFAULT printStack _:;
] "main" exportFunction
26
0
1
(hwnd csidl hToken dwFlags pszPath -- result)Writes one zero-terminated UTF-16 folder path into caller-supplied storage and returns one Int32 status.
hwnd is one owner-window input of schema HWND.csidl selects the requested folder identifier.hToken is one raw pointer-sized input declared as Natx.dwFlags selects current-path or default-path lookup through the SHGFP_TYPE_* constants.pszPath is one raw pointer-sized input declared as Natx and represents caller-owned writable UTF-16 storage.Printing imported names during compilation shows the exact imported signatures.
"windows/shell32" use
"control" use
{} Int32 {} [
@SHGetFolderPathW printStack _:;
0
] "main" exportFunction
{hwnd: {WND: (); unused: Int32;} Cref; csidl: Int32; hToken: Natx; dwFlags: Nat32; pszPath: Natx;} Int32 {convention: "";} codeRef