Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2023 Changes in this version + const ERROR_ACCESS_DENIED — windows/amd64 + const ERROR_INVALID_FUNCTION — windows/amd64 + const ERROR_INVALID_MEMBER — windows/amd64 + const ERROR_MEMBER_IN_ALIAS — windows/amd64 + const ERROR_MEMBER_NOT_IN_ALIAS — windows/amd64 + const ERROR_NO_MORE_FILES — windows/amd64 + const ERROR_NO_SUCH_MEMBER — windows/amd64 + const ES_AWAYMODE_REQUIRED — windows/amd64 + const ES_CONTINUOUS — windows/amd64 + const ES_DISPLAY_REQUIRED — windows/amd64 + const ES_SYSTEM_REQUIRED — windows/amd64 + const ES_USER_PRESENT — windows/amd64 + const MAX_FULL_PATH — windows/amd64 + const MAX_PATH — windows/amd64 + const NERR_GroupNotFound — windows/amd64 + const NET_API_STATUS_ERROR_ACCESS_DENIED — windows/amd64 + const NET_API_STATUS_ERROR_INVALID_LEVEL — windows/amd64 + const NET_API_STATUS_ERROR_INVALID_NAME — windows/amd64 + const NET_API_STATUS_ERROR_INVALID_PARAMETER — windows/amd64 + const NET_API_STATUS_ERROR_MORE_DATA — windows/amd64 + const NET_API_STATUS_ERROR_NOT_ENOUGH_MEMORY — windows/amd64 + const NET_API_STATUS_ERROR_SESSION_CREDENTIAL_CONFLICT — windows/amd64 + const NET_API_STATUS_NERR_BadPassword — windows/amd64 + const NET_API_STATUS_NERR_InvalidComputer — windows/amd64 + const NET_API_STATUS_NERR_LastAdmin — windows/amd64 + const NET_API_STATUS_NERR_NotPrimary — windows/amd64 + const NET_API_STATUS_NERR_PasswordTooShort — windows/amd64 + const NET_API_STATUS_NERR_SpeGroupOp — windows/amd64 + const NET_API_STATUS_NERR_Success — windows/amd64 + const NET_API_STATUS_NERR_UserNotFound — windows/amd64 + const NET_API_STATUS_RPC_E_REMOTE_DISABLED — windows/amd64 + const NET_API_STATUS_RPC_S_SERVER_UNAVAILABLE — windows/amd64 + const NET_FW_ACTION_ALLOW — windows/amd64 + const NET_FW_ACTION_BLOCK — windows/amd64 + const NET_FW_FILE_AND_PRINTER_SHARING — windows/amd64 + const NET_FW_IP_PROTOCOL_ANY — windows/amd64 + const NET_FW_IP_PROTOCOL_ICMPv4 — windows/amd64 + const NET_FW_IP_PROTOCOL_ICMPv6 — windows/amd64 + const NET_FW_IP_PROTOCOL_TCP — windows/amd64 + const NET_FW_IP_PROTOCOL_UDP — windows/amd64 + const NET_FW_PROFILE2_ALL — windows/amd64 + const NET_FW_PROFILE2_CURRENT — windows/amd64 + const NET_FW_PROFILE2_DOMAIN — windows/amd64 + const NET_FW_PROFILE2_PRIVATE — windows/amd64 + const NET_FW_PROFILE2_PUBLIC — windows/amd64 + const NET_FW_REMOTE_DESKTOP — windows/amd64 + const NET_FW_RULE_DIR_IN — windows/amd64 + const NET_FW_RULE_DIR_OUT — windows/amd64 + const PROCESS_QUERY_INFORMATION — windows/amd64 + const PROCESS_QUERY_LIMITED_INFORMATION — windows/amd64 + const PROCESS_TERMINATE — windows/amd64 + const PROC_DOMAIN_ALIAS_RID_ADMINS — windows/amd64 + const PROC_ERROR_NO_SUCH_LOGON_SESSION — windows/amd64 + const PROC_ERROR_PRIVILEGE_NOT_HELD — windows/amd64 + const PROC_SECURITY_BUILTIN_DOMAIN_RID — windows/amd64 + const PROC_SE_DEBUG_NAME — windows/amd64 + const PROC_SE_PRIVILEGE_ENABLED — windows/amd64 + const PROC_SE_SYSTEM_ENVIRONMENT_PRIV — windows/amd64 + const PROC_TOKEN_ADJUST_PRIVILEGES — windows/amd64 + const PROC_TOKEN_DUPLICATE — windows/amd64 + const PROC_TOKEN_QUERY — windows/amd64 + const SVC_SC_ENUM_PROCESS_INFO — windows/amd64 + const SVC_SERVICE_ACCEPT_STOP — windows/amd64 + const SVC_SERVICE_STATE_ALL — windows/amd64 + const SVC_SERVICE_WIN32 — windows/amd64 + const USER_FILTER_NORMAL_ACCOUNT — windows/amd64 + const USER_MAX_PREFERRED_LENGTH — windows/amd64 + const USER_PRIV_ADMIN — windows/amd64 + const USER_PRIV_GUEST — windows/amd64 + const USER_PRIV_MASK — windows/amd64 + const USER_PRIV_USER — windows/amd64 + const USER_UF_ACCOUNTDISABLE — windows/amd64 + const USER_UF_DONT_EXPIRE_PASSWD — windows/amd64 + const USER_UF_LOCKOUT — windows/amd64 + const USER_UF_NORMAL_ACCOUNT — windows/amd64 + const USER_UF_PASSWD_CANT_CHANGE — windows/amd64 + const USER_UF_SCRIPT — windows/amd64 + func AddGroupMembership(username, groupname string) (bool, error) — windows/amd64 + func BackupBitLockerRecoveryKeys(persistentVolumeIDs []string) error — windows/amd64 + func ChangePassword(username string, password string) (bool, error) — windows/amd64 + func ConvertRawSidToStringSid(rawSid []byte) (string, error) — windows/amd64 + func ConvertWMITime(s string) (time.Time, error) — windows/amd64 + func DomainUserLocked(username string, domain string) (bool, error) — windows/amd64 + func FirewallDisable(profile int32) (bool, error) — windows/amd64 + func FirewallEnable(profile int32) (bool, error) — windows/amd64 + func FirewallGroupDisable(name string, profile int32) error — windows/amd64 + func FirewallGroupEnable(name string, profile int32) error — windows/amd64 + func FirewallIsEnabled(profile int32) (bool, error) — windows/amd64 + func FirewallPingEnable(name, description, group, remoteAddresses string, profile int32) (bool, error) — windows/amd64 + func FirewallRuleAdd(name, description, group, ports string, protocol, profile int32) (bool, error) — windows/amd64 + func FirewallRuleAddAdvanced(rule FWRule) (bool, error) — windows/amd64 + func FirewallRuleAddApplication(name, description, group, appPath string, profile int32) (bool, error) — windows/amd64 + func FirewallRuleCreate(name, description, group, appPath, port string, protocol int32) (bool, error) — windows/amd64 + func FirewallRuleDelete(name string) (bool, error) — windows/amd64 + func FirewallRuleExistsByName(rules *ole.IDispatch, name string) (bool, error) — windows/amd64 + func GetBitLockerConversionStatus() ([]*so.BitLockerConversionStatus, error) — windows/amd64 + func GetBitLockerConversionStatusForDrive(driveLetter string) (*so.BitLockerConversionStatus, error) — windows/amd64 + func GetBitLockerRecoveryInfo() ([]*so.BitLockerDeviceInfo, error) — windows/amd64 + func GetBitLockerRecoveryInfoForDrive(driveLetter string) (*so.BitLockerDeviceInfo, error) — windows/amd64 + func GetDefaultUserProfileDirectory() (string, error) — windows/amd64 + func GetProfilesDirectory() (string, error) — windows/amd64 + func GetRawSidForAccountName(accountName string) ([]byte, error) — windows/amd64 + func GetServices() ([]so.Service, error) — windows/amd64 + func GetSoftwareList(baseKey string, arch string) ([]so.Software, error) — windows/amd64 + func GetSystemProfile() (so.Hardware, so.OperatingSystem, so.Memory, []so.Disk, []so.Network, error) — windows/amd64 + func InstalledSoftwareList() ([]so.Software, error) — windows/amd64 + func IsDomainUserAdmin(username string, domain string) (bool, error) — windows/amd64 + func IsLocalUserAdmin(username string) (bool, error) — windows/amd64 + func ListLocalGroups() ([]so.LocalGroup, error) — windows/amd64 + func ListLocalUsers() ([]so.LocalUser, error) — windows/amd64 + func ListLoggedInUsers() ([]so.SessionDetails, error) — windows/amd64 + func LocalGroupAdd(name, comment string) (bool, error) — windows/amd64 + func LocalGroupAddMembers(groupname string, usernames []string) (bool, error) — windows/amd64 + func LocalGroupDel(name string) (bool, error) — windows/amd64 + func LocalGroupDelMembers(groupname string, usernames []string) (bool, error) — windows/amd64 + func LocalGroupGetMembers(groupname string) ([]so.LocalGroupMember, error) — windows/amd64 + func LocalGroupSetMembers(groupname string, usernames []string) (bool, error) — windows/amd64 + func LsatoString(p LSA_UNICODE_STRING) string — windows/amd64 + func ParseIPv4Mask(s string) net.IPMask — windows/amd64 + func ProcessKill(pid uint32) (bool, error) — windows/amd64 + func ProcessLUIDList() (map[uint32]SessionLUID, error) — windows/amd64 + func ProcessList() ([]so.Process, error) — windows/amd64 + func RemoveGroupMembership(username, groupname string) (bool, error) — windows/amd64 + func RevokeAdmin(username string) (bool, error) — windows/amd64 + func SetAdmin(username string) (bool, error) — windows/amd64 + func SetThreadExecutionState(state uint32) (uint32, error) — windows/amd64 + func StartService(name string) error — windows/amd64 + func StopService(name string) error — windows/amd64 + func UTF16toString(p *uint16) string — windows/amd64 + func UpdatesPending() (*so.WindowsUpdate, error) — windows/amd64 + func UserAdd(username string, fullname string, password string) (bool, error) — windows/amd64 + func UserAddEx(opts UserAddOptions) (bool, error) — windows/amd64 + func UserDelete(username string) (bool, error) — windows/amd64 + func UserDisablePasswordChange(username string, disabled bool) (bool, error) — windows/amd64 + func UserDisabled(username string, disable bool) (bool, error) — windows/amd64 + func UserPasswordNoExpires(username string, noexpire bool) (bool, error) — windows/amd64 + func UserSetProfile(username string, path string) (bool, error) — windows/amd64 + func UserUpdateFullname(username string, fullname string) (bool, error) — windows/amd64 + type ENUM_SERVICE_STATUS_PROCESS struct — windows/amd64 + ServiceStatusProcess SERVICE_STATUS_PROCESS + type FWProfiles struct — windows/amd64 + Domain bool + Private bool + Public bool + func FirewallCurrentProfiles() (FWProfiles, error) + type FWRule struct — windows/amd64 + Action int32 + ApplicationName string + Description string + Direction int32 + EdgeTraversal bool + Enabled bool + Grouping string + ICMPTypesAndCodes string + InterfaceTypes string + LocalAddresses string + LocalPorts string + Name string + Profiles int32 + Protocol int32 + RemoteAddresses string + RemotePorts string + ServiceName string + func FirewallRuleGet(name string) (FWRule, error) + func FirewallRulesGet() ([]FWRule, error) + func (r *FWRule) InProfiles() FWProfiles + type LOCALGROUP_INFO_0 struct — windows/amd64 + Lgrpi0_name *uint16 + type LOCALGROUP_INFO_1 struct — windows/amd64 + Lgrpi1_comment *uint16 + Lgrpi1_name *uint16 + type LOCALGROUP_MEMBERS_INFO_3 struct — windows/amd64 + Lgrmi3_domainandname *uint16 + type LSA_UNICODE_STRING struct — windows/amd64 + Length uint16 + MaximumLength uint16 + type LUID struct — windows/amd64 + HighPart int32 + LowPart uint32 + type LUID_AND_ATTRIBUTES struct — windows/amd64 + Attributes uint32 + LUID LUID + type PROCESSENTRY32 struct — windows/amd64 + CntThreads uint32 + CntUsage uint32 + DefaultHeapID uintptr + ExeFile [MAX_PATH]uint16 + Flags uint32 + ModuleID uint32 + ParentProcessID uint32 + PriorityClassBase int32 + ProcessID uint32 + Size uint32 + type PSID uintptr — windows/amd64 + type SECURITY_LOGON_SESSION_DATA struct — windows/amd64 + AuthenticationPackage LSA_UNICODE_STRING + DnsDomainName LSA_UNICODE_STRING + LogonDomain LSA_UNICODE_STRING + LogonId LUID + LogonServer LSA_UNICODE_STRING + LogonTime uint64 + LogonType uint32 + Session uint32 + Sid uintptr + Size uint32 + Upn LSA_UNICODE_STRING + UserName LSA_UNICODE_STRING + type SERVICE_STATUS_PROCESS struct — windows/amd64 + type SID_AND_ATTRIBUTES struct — windows/amd64 + Attributes uint32 + Sid uintptr + type SID_IDENTIFIER_AUTHORITY struct — windows/amd64 + Value [6]byte + type SessionLUID struct — windows/amd64 + IsAdmin bool + Value LUID + type TOKEN_PRIVILEGES struct — windows/amd64 + PrivilegeCount uint32 + Privileges [1]LUID_AND_ATTRIBUTES + type TOKEN_STATISTICS struct — windows/amd64 + AuthenticationId LUID + DynamicAvailable uint32 + DynamicCharged uint32 + ExpirationTime uint64 + GroupCount uint32 + ImpersonationLevel uint32 + ModifiedId LUID + PrivilegeCount uint32 + TokenId LUID + TokenType uint32 + type TOKEN_USER struct — windows/amd64 + User SID_AND_ATTRIBUTES + type USER_INFO_1 struct — windows/amd64 + Usri1_comment *uint16 + Usri1_flags uint32 + Usri1_home_dir *uint16 + Usri1_name *uint16 + Usri1_password *uint16 + Usri1_password_age uint32 + Usri1_priv uint32 + Usri1_script_path *uint16 + type USER_INFO_1003 struct — windows/amd64 + Usri1003_password *uint16 + type USER_INFO_1008 struct — windows/amd64 + Usri1008_flags uint32 + type USER_INFO_1011 struct — windows/amd64 + Usri1011_full_name *uint16 + type USER_INFO_1052 struct — windows/amd64 + Useri1052_profile *uint16 + type USER_INFO_2 struct — windows/amd64 + Usri2_acct_expires uint32 + Usri2_auth_flags uint32 + Usri2_bad_pw_count uint32 + Usri2_code_page uint32 + Usri2_comment *uint16 + Usri2_country_code uint32 + Usri2_flags uint32 + Usri2_full_name *uint16 + Usri2_home_dir *uint16 + Usri2_last_logoff uint32 + Usri2_last_logon uint32 + Usri2_logon_hours uintptr + Usri2_logon_server *uint16 + Usri2_max_storage uint32 + Usri2_name *uint16 + Usri2_num_logons uint32 + Usri2_parms *uint16 + Usri2_password *uint16 + Usri2_password_age uint32 + Usri2_priv uint32 + Usri2_script_path *uint16 + Usri2_units_per_week uint32 + Usri2_usr_comment *uint16 + Usri2_workstations *uint16 + type UserAddOptions struct — windows/amd64 + Comment string + FullName string + HomeDir string + Password string + PrivLevel uint32 + ScriptPath string + Username string