Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func CloseHandle(handle windows.Handle) error
- func OpenHandle() (windows.Handle, error)
- func RegisterNotification(handle windows.Handle, notificationSource uint32, callback uintptr, ...) error
- func UnregisterNotification(handle windows.Handle) error
- type AssociationAttributes
- type ConnectionAttributes
- type Dot11MacAddress
- type Dot11SSID
- type InterfaceInfo
- type InterfaceInfoList
- type NotificationCallback
- type NotificationData
- type SecurityAttributes
Constants ¶
View Source
const ( ClientVersion2 = 2 // InterfaceOpcode for WlanQueryInterface IntfOpcodeCurrentConnection = 7 // NotificationSource for WlanRegisterNotification NotificationSourceNone = 0 NotificationSourceACM = 0x00000008 // NotificationACM codes NotificationACMConnectionComplete = 10 NotificationACMDisconnected = 21 // InterfaceState InterfaceStateNotReady = 0 InterfaceStateConnected = 1 InterfaceStateAdHocNetworkFormed = 2 InterfaceStateDisconnecting = 3 InterfaceStateDisconnected = 4 InterfaceStateAssociating = 5 InterfaceStateDiscovering = 6 InterfaceStateAuthenticating = 7 // DOT11_SSID Dot11SSIDMaxLength = 32 )
Variables ¶
This section is empty.
Functions ¶
func CloseHandle ¶
func OpenHandle ¶
func RegisterNotification ¶
func UnregisterNotification ¶
Types ¶
type AssociationAttributes ¶
type ConnectionAttributes ¶
type ConnectionAttributes struct {
InterfaceState uint32
ConnectionMode uint32
ProfileName [256]uint16
AssociationAttributes AssociationAttributes
SecurityAttributes SecurityAttributes
}
func QueryCurrentConnection ¶
type Dot11MacAddress ¶
type Dot11MacAddress [6]byte
type Dot11SSID ¶
type Dot11SSID struct {
Length uint32
SSID [Dot11SSIDMaxLength]byte
}
type InterfaceInfo ¶
type InterfaceInfo struct {
InterfaceGUID windows.GUID
InterfaceDescription [256]uint16
InterfaceState uint32
}
func EnumInterfaces ¶
func EnumInterfaces(handle windows.Handle) ([]InterfaceInfo, error)
type InterfaceInfoList ¶
type InterfaceInfoList struct {
NumberOfItems uint32
Index uint32
InterfaceInfo [1]InterfaceInfo
}
type NotificationCallback ¶
type NotificationCallback func(data *NotificationData, context uintptr) uintptr
NotificationCallback is the type for notification callback functions. Use syscall.NewCallback to create a callback from a Go function.
type NotificationData ¶
Click to show internal directories.
Click to hide internal directories.