win

package module
v0.0.0-...-423d6a0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

README

About win
=========

win is a Windows API wrapper package for Go.

fork github.com/lxn/win


Documentation

Index

Constants

This section is empty.

Variables

View Source
var IID_IEnumIDList = IID{0x000214F2, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
View Source
var IID_IShellFolder = IID{0x000214E6, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
View Source
var IID_IShellFolder2 = IID{0x93f2f68c, 0x1d1b, 0x11d3, [8]byte{0xa3, 0xe, 0x0, 0xc0, 0x4f, 0x79, 0xab, 0xd1}}

Functions

func CreateEnvironmentBlock

func CreateEnvironmentBlock(lpEnvironment, hToken HANDLE, bInherit bool) bool

func DestroyEnvironmentBlock

func DestroyEnvironmentBlock(lpEnvironment HANDLE) bool

func GetModuleFileNameEx

func GetModuleFileNameEx(process, module HANDLE) (string, bool)

Types

type IEnumIDList

type IEnumIDList struct {
	LpVtbl *IEnumIDListVtbl
}

func (*IEnumIDList) Next

func (is *IEnumIDList) Next(celt uint32) (*ITEMIDLIST, uint32, HRESULT)

type IEnumIDListVtbl

type IEnumIDListVtbl struct {
	IUnknownVtbl
	Next  uintptr
	Skip  uintptr
	Reset uintptr
	Clone uintptr
}

type IShellFolder

type IShellFolder struct {
	LpVtbl *IShellFolderVtbl
}

func (*IShellFolder) EnumObjects

func (is *IShellFolder) EnumObjects(h HWND, flags SHCONTF) (IEnumIDList, HRESULT)

func (*IShellFolder) Release

func (is *IShellFolder) Release() HRESULT

type IShellFolder2

type IShellFolder2 struct {
	LpVtbl *IShellFolder2Vtbl
}

type IShellFolder2Vtbl

type IShellFolder2Vtbl struct {
	IUnknownVtbl
	GetDefaultSearchGUID  uintptr
	EnumSearches          uintptr
	GetDefaultColumn      uintptr
	GetDefaultColumnState uintptr
	GetDetailsEx          uintptr
	GetDetailsOf          uintptr
	MapColumnToSCID       uintptr
}

type IShellFolderVtbl

type IShellFolderVtbl struct {
	IUnknownVtbl
	ParseDisplayName uintptr
	EnumObjects      uintptr
	BindToObject     uintptr
	BindToStorage    uintptr
	CompareIDs       uintptr
	CreateViewObject uintptr
	GetAttributesOf  uintptr
	GetUIObjectOf    uintptr
	GetDisplayNameOf uintptr
	SetNameOf        uintptr
}

type ITEMIDLIST

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

type SHCONTF

type SHCONTF int
const (
	SHCONTF_CHECKING_FOR_CHILDREN SHCONTF = 0x10
	SHCONTF_FOLDERS               SHCONTF = 0x20
	SHCONTF_NONFOLDERS            SHCONTF = 0x40
	SHCONTF_INCLUDEHIDDEN         SHCONTF = 0x80
	SHCONTF_INIT_ON_FIRST_NEXT    SHCONTF = 0x100
	SHCONTF_NETPRINTERSRCH        SHCONTF = 0x200
	SHCONTF_SHAREABLE             SHCONTF = 0x400
	SHCONTF_STORAGE               SHCONTF = 0x800
	SHCONTF_NAVIGATION_ENUM       SHCONTF = 0x1000
	SHCONTF_FASTITEMS             SHCONTF = 0x2000
	SHCONTF_FLATLIST              SHCONTF = 0x4000
	SHCONTF_ENABLE_ASYNC          SHCONTF = 0x8000
	SHCONTF_INCLUDESUPERHIDDEN    SHCONTF = 0x10000
)

type SHITEMID

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

Jump to

Keyboard shortcuts

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