netapi32

package
v0.30.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var NetApiStatus = map[uint32]string{

	0: "NERR_Success",

	2351: "NERR_InvalidComputer",

	2226: "NERR_NotPrimary",

	2234: "NERR_SpeGroupOp",

	2452: "NERR_LastAdmin",

	2203: "NERR_BadPassword",

	2245: "NERR_PasswordTooShort",

	2221: "NERR_UserNotFound",

	5:    "ERROR_ACCESS_DENIED",
	8:    "ERROR_NOT_ENOUGH_MEMORY",
	87:   "ERROR_INVALID_PARAMETER",
	123:  "ERROR_INVALID_NAME",
	124:  "ERROR_INVALID_LEVEL",
	234:  "ERROR_MORE_DATA",
	1219: "ERROR_SESSION_CREDENTIAL_CONFLICT",
}

NetApiStatus is a map of Network Management Error Codes. https://docs.microsoft.com/en-gb/windows/win32/netmgmt/network-management-error-codes?redirectedfrom=MSDN

Functions

This section is empty.

Types

type WorkstationInfo

type WorkstationInfo struct {
	PlatformId    uint32
	ComputerName  string
	LanGroup      string
	VersionMajor  uint32
	VersionMinor  uint32
	LanRoot       string
	LoggedOnUsers uint32
}

WorkstationInfo is an idiomatic wrapper of WKSTAInfo102.

func GetWorkstationInfo

func GetWorkstationInfo() (WorkstationInfo, error)

GetWorkstationInfo is an idiomatic wrapper for netWkstaGetInfo.

Jump to

Keyboard shortcuts

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