process

package
v0.0.0-...-9625d7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWin32Proc

func GetWin32Proc(pids ...int32) ([]process.Win32_Process, error)

func GetWin32ProcWithContext

func GetWin32ProcWithContext(ctx context.Context, pids ...int32) ([]process.Win32_Process, error)

Test in PowerShell: Get-WmiObject -Query "SELECT Name,ProcessId,CreationDate,CommandLine FROM Win32_Process"

func WMIQueryWithContext

func WMIQueryWithContext(ctx context.Context, query string, dst interface{}, connectServerArgs ...interface{}) error

WMIQueryWithContext - wraps wmi.Query with a timed-out context to avoid hanging

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL