windows

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

********************************************************************

  • Copyright (c) Intel Corporation 2021
  • SPDX-License-Identifier: Apache-2.0 *********************************************************************

Index

Constants

View Source
const (
	SpDevinfoDataSz = 0x20

	DIGCF_PRESENT         = 0x2
	DIGCF_DEVICEINTERFACE = 0x10
)

Variables

This section is empty.

Functions

func SetupDiCallClassInstaller

func SetupDiCallClassInstaller(installFn uintptr, devInfoSet syscall.Handle, data *SpDevinfoData) (err error)

func SetupDiCreateDeviceInfo

func SetupDiCreateDeviceInfo(devInfoSet syscall.Handle, devName *uint16, g *windows.GUID, devDesc *uint16, hwnd uintptr, cflags uint32, dataOut *SpDevinfoData) (err error)

func SetupDiCreateDeviceInfoList

func SetupDiCreateDeviceInfoList(g *windows.GUID, hwnd uintptr) (devInfoSet syscall.Handle, err error)

func SetupDiDestroyDeviceInfoList

func SetupDiDestroyDeviceInfoList(devInfoSet syscall.Handle) (err error)

func SetupDiEnumDeviceInfo

func SetupDiEnumDeviceInfo(devInfoSet syscall.Handle, index uint32, diData *SpDevinfoData) (err error)

func SetupDiEnumDeviceInterfaces

func SetupDiEnumDeviceInterfaces(devInfoSet syscall.Handle, deviceInfoData *SpDevinfoData, class *windows.GUID, memberIndex uint32, deviceInterfaceData *SpDevInterfaceData) (idk syscall.Handle, err error)

func SetupDiGetClassDevs

func SetupDiGetClassDevs(class *windows.GUID, enum *uint16, parent syscall.Handle, flags uint32) (devInfoSet syscall.Handle, err error)

func SetupDiGetDeviceInstanceId

func SetupDiGetDeviceInstanceId(devInfoSet syscall.Handle, diData *SpDevinfoData, id []uint16, reqSz *uint32) (err error)

func SetupDiGetDeviceInterfaceDetail

func SetupDiGetDeviceInterfaceDetail(devInfoSet syscall.Handle, dintfdata *SpDevInterfaceData, detail *uint16, detailSize uint32, reqsize *uint32, devInfData *SpDevinfoData) (err error)

func SetupDiGetDeviceRegistryProperty

func SetupDiGetDeviceRegistryProperty(devInfoSet syscall.Handle, diData *SpDevinfoData, prop uint32, regDataType *uint32, buf []byte, size *uint32) (err error)

func SetupDiGetINFClass

func SetupDiGetINFClass(infPath *uint16, guid *windows.GUID, className []uint16, reqSz *uint32) (err error)

func SetupDiOpenDevRegKey

func SetupDiOpenDevRegKey(devInfoSet syscall.Handle, diData *SpDevinfoData, scope uint32, hwProfile uint32, keyType uint32, desiredAccess uint32) (h syscall.Handle, err error)

func SetupDiSetDeviceRegistryProperty

func SetupDiSetDeviceRegistryProperty(devInfoSet syscall.Handle, data *SpDevinfoData, prop uint32, buf *byte, sz uint32) (err error)

Types

type SpDevInterfaceData

type SpDevInterfaceData struct {
	CbSize             uint32
	InterfaceClassGuid windows.GUID
	Flags              uint32
	Reserved           uintptr
}

type SpDevInterfaceDetailData

type SpDevInterfaceDetailData struct {
	CbSize     uint32
	DevicePath [256]uint16
}

type SpDevinfoData

type SpDevinfoData struct {
	CbSize    uint32
	ClassGuid windows.GUID
	DevInst   uint32
	Reserved  uintptr
}

Jump to

Keyboard shortcuts

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