silk.platform.windows.host_path.
Windows host path discovery for tools. These operations intentionally resolve links in the machine namespace; they do not establish a confined filesystem root.
Import as WindowsHostPath with import silk.platform.windows.host_path as WindowsHostPath.
Public declarations: 4.
wide#
pub effect fn wide(path: &Path) -> Option<List<u16>> ! OutOfMemoryError ? &mut AllocatorReturns a NUL-terminated UTF-16 host name for a machine path, or None for invalid names.
canonicalBytes#
pub effect fn canonicalBytes(bytes: &[u8]) -> Option<Bytes> ! OutOfMemoryError ? &mut AllocatorReturns a normalized machine path for an existing file or directory, following host links. Host failures and invalid names return None; allocation failure remains an Effect.
canonical#
pub effect fn canonical(path: string) -> Option<Bytes> ! OutOfMemoryError ? &mut AllocatorReturns a canonical machine path for an existing text host path, following host links. Host failures and invalid names return None; allocation failure remains an Effect.
executable#
pub effect fn executable() -> Option<Bytes> ! OutOfMemoryError ? &mut AllocatorFinds the loaded executable through the OS, independent of argv[0] or PATH. Returns a machine path; host failure returns None.
Category: Windows platform.
Profiles: x86_64-pc-windows-msvc.