Skip to content

getProcessesSnapshotWin32

getProcessesSnapshotWin32<O, R>(_options?): Promise<R[]>

Defined in: packages/app-system/src/os/get-processes-snapshot.ts:298

Not supported on Windows.

The POSIX implementation reads ps, which Windows has no equivalent of: tasklist and WMI both report a different field set under different names, so this would be a second implementation rather than a port. Until one exists, the call fails loudly instead of returning a partial snapshot a caller would read as complete.

O extends GetProcessesSnapshotOptions = GetProcessesSnapshotOptions

R = O["fields"] extends never[] ? ProcessInfo : Pick<ProcessInfo, TupleToUnion<O["fields"]>>

O

Promise<R[]>

Always.