Help us shape the future of Go! Take the 2026 Go Developer Survey

winnet

package
v1.104.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package winnet contains Windows-specific networking code.

Index

Constants

View Source
const CLSID_NetworkListManager = "{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"

Variables

View Source
var IID_INetwork = ole.NewGUID("{8A40A45D-055C-4B62-ABD7-6D613E2CEAEC}")
View Source
var IID_INetworkConnection = ole.NewGUID("{DCB00005-570F-4A9B-8D69-199FDBA5723B}")

Functions

This section is empty.

Types

type ConnectionList

type ConnectionList []*INetworkConnection

func (ConnectionList) Release

func (cl ConnectionList) Release()

type INetwork

type INetwork struct {
	ole.IDispatch
}

func (*INetwork) GetCategory

func (n *INetwork) GetCategory() (int32, error)

func (*INetwork) GetName

func (n *INetwork) GetName() (string, error)

func (*INetwork) SetCategory

func (n *INetwork) SetCategory(v int32) error

func (*INetwork) VTable added in v1.34.0

func (n *INetwork) VTable() *INetworkVtbl

type INetworkConnection

type INetworkConnection struct {
	ole.IDispatch
}

func (*INetworkConnection) GetAdapterId

func (v *INetworkConnection) GetAdapterId() (string, error)

func (*INetworkConnection) GetNetwork

func (v *INetworkConnection) GetNetwork() (*INetwork, error)

func (*INetworkConnection) VTable

type INetworkConnectionVtbl

type INetworkConnectionVtbl struct {
	ole.IDispatchVtbl
	GetNetwork                uintptr
	Get_IsConnectedToInternet uintptr
	Get_IsConnected           uintptr
	GetConnectivity           uintptr
	GetConnectionId           uintptr
	GetAdapterId              uintptr
	GetDomainType             uintptr
}

type INetworkVtbl added in v1.34.0

type INetworkVtbl struct {
	ole.IDispatchVtbl
	GetName                    uintptr
	SetName                    uintptr
	GetDescription             uintptr
	SetDescription             uintptr
	GetNetworkId               uintptr
	GetDomainType              uintptr
	GetNetworkConnections      uintptr
	GetTimeCreatedAndConnected uintptr
	Get_IsConnectedToInternet  uintptr
	Get_IsConnected            uintptr
	GetConnectivity            uintptr
	GetCategory                uintptr
	SetCategory                uintptr
}

type NetworkListManager

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

func NewNetworkListManager

func NewNetworkListManager(c *ole.Connection) (*NetworkListManager, error)

func (*NetworkListManager) GetNetworkConnections

func (m *NetworkListManager) GetNetworkConnections() (ConnectionList, error)

func (*NetworkListManager) Release

func (m *NetworkListManager) Release()

Jump to

Keyboard shortcuts

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