system

package
v0.0.0-...-021ab65 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	INTERNET_PER_CONN_FLAGS               = 1
	INTERNET_PER_CONN_PROXY_SERVER        = 2
	INTERNET_PER_CONN_PROXY_BYPASS        = 3
	INTERNET_OPTION_REFRESH               = 37
	INTERNET_OPTION_SETTINGS_CHANGED      = 39
	INTERNET_OPTION_PER_CONNECTION_OPTION = 75
)

Variables

This section is empty.

Functions

func CPUType

func CPUType() int

CPUType 获取cpu类型

func CheckPermission

func CheckPermission(p string) (bool, error)

CheckPermission 检测是否为管理员权限目录下

func CreateWindowsServe

func CreateWindowsServe()

func ExecuteMoreCmd

func ExecuteMoreCmd()

ExecuteMoreCmd 执行多条cmd

func FileMapping

func FileMapping()

FileMapping 文件映射

func GetHardDiskSpace

func GetHardDiskSpace(s string) float64

GetHardDiskSpace 获取该路径下磁盘容量

func Occupy

func Occupy(path string) bool

func Permit

func Permit()
func QuickLink(absPath, workDir string)

func RegisterTable

func RegisterTable() error

RegisterTable 用于windows注册表

func SetCmdTitle

func SetCmdTitle(title string)

SetCmdTitle 设置cmd的title

func SetProxy

func SetProxy(proxy string) error

Types

type INTERNET_PER_CONN_OPTION

type INTERNET_PER_CONN_OPTION struct {
	// contains filtered or unexported fields
}
typedef struct {
  DWORD dwOption;
  union {
    DWORD    dwValue;
    LPSTR    pszValue;
    FILETIME ftValue;
  } Value;
} INTERNET_PER_CONN_OPTIONA, *LPINTERNET_PER_CONN_OPTIONA;
typedef struct _FILETIME {
  DWORD dwLowDateTime;
  DWORD dwHighDateTime;
} FILETIME, *PFILETIME, *LPFILETIME;

type INTERNET_PER_CONN_OPTION_LIST

type INTERNET_PER_CONN_OPTION_LIST struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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