winnet

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

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 uint32) error

type INetworkConnection

type INetworkConnection struct {
	ole.IDispatch
}

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 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