windows/shell32

Windows Shell declarations for folder-path lookup through caller-supplied UTF-16 storage and raw owner-window or token inputs.


Constants

Constant example

"windows/shell32" use
"control" use

{} () {} [
  CSIDL_APPDATA printStack _:;
  SHGFP_TYPE_CURRENT printStack _:;
  SHGFP_TYPE_DEFAULT printStack _:;
] "main" exportFunction

Expected Output During Compilation

26
0
1

SHGetFolderPathW (hwnd csidl hToken dwFlags pszPath -- result)

Writes one zero-terminated UTF-16 folder path into caller-supplied storage and returns one Int32 status.


Signature examples

Printing imported names during compilation shows the exact imported signatures.

"windows/shell32" use
"control" use

{} Int32 {} [
  @SHGetFolderPathW printStack _:;
  0
] "main" exportFunction

Expected Output During Compilation

{hwnd: {WND: (); unused: Int32;} Cref; csidl: Int32; hToken: Natx; dwFlags: Nat32; pszPath: Natx;} Int32 {convention: "";} codeRef

See also