pkg.re/essentialkaos/ek@v12.36.0+incompatible/system/process/processes_windows.go (about)

     1  // +build windows
     2  
     3  package process
     4  
     5  // ////////////////////////////////////////////////////////////////////////////////// //
     6  //                                                                                    //
     7  //                         Copyright (c) 2021 ESSENTIAL KAOS                          //
     8  //      Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>     //
     9  //                                                                                    //
    10  // ////////////////////////////////////////////////////////////////////////////////// //
    11  
    12  // ProcessInfo contains basic info about process
    13  type ProcessInfo struct {
    14  	Command  string         // Full command
    15  	User     string         // Username
    16  	PID      int            // PID
    17  	IsThread bool           // True if process is thread
    18  	Parent   int            // Parent process PID
    19  	Childs   []*ProcessInfo // Slice with child processes
    20  }
    21  
    22  // ////////////////////////////////////////////////////////////////////////////////// //
    23  
    24  // GetTree returns root process with all subprocesses on the system
    25  func GetTree(pid ...int) (*ProcessInfo, error) {
    26  	return nil, nil
    27  }
    28  
    29  // GetList returns slice with all active processes on the system
    30  func GetList() ([]*ProcessInfo, error) {
    31  	return nil, nil
    32  }