sys

package
v0.0.0-...-2f48622 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NOTIFYICON_VERSION_4 win32.UINT = 4

Variables

This section is empty.

Functions

func Shell_NotifyIconW

func Shell_NotifyIconW(message Message, data *NOTIFYICONDATAW) error

Types

type Flag

type Flag win32.UINT
const (
	NIF_MESSAGE  Flag = 0x00000001
	NIF_ICON     Flag = 0x00000002
	NIF_TIP      Flag = 0x00000004
	NIF_STATE    Flag = 0x00000008
	NIF_INFO     Flag = 0x00000010
	NIF_GUID     Flag = 0x00000020
	NIF_REALTIME Flag = 0x00000040
	NIF_SHOWTIP  Flag = 0x00000080
)

type InfoFlag

type InfoFlag win32.DWORD
const (
	NIIF_NONE               InfoFlag = 0x00000000
	NIIF_INFO               InfoFlag = 0x00000001
	NIIF_WARNING            InfoFlag = 0x00000002
	NIIF_ERROR              InfoFlag = 0x00000003
	NIIF_USER               InfoFlag = 0x00000004
	NIIF_ICON_MASK          InfoFlag = 0x0000000F
	NIIF_NOSOUND            InfoFlag = 0x00000010
	NIIF_LARGE_ICON         InfoFlag = 0x00000020
	NIIF_RESPECT_QUIET_TIME InfoFlag = 0x00000080
)

type Message

type Message win32.DWORD
const (
	NIM_ADD        Message = 0x00000000
	NIM_MODIFY     Message = 0x00000001
	NIM_DELETE     Message = 0x00000002
	NIM_SETFOCUS   Message = 0x00000003
	NIM_SETVERSION Message = 0x00000004
)

type NOTIFYICONDATAW

type NOTIFYICONDATAW struct {
	Size            win32.DWORD
	Wnd             win32.HWND
	ID              win32.UINT
	Flags           Flag
	CallbackMessage win32.UINT
	Icon            win32.HICON
	Tip             [128]win32.WCHAR
	State           State
	StateMask       State
	Info            [256]win32.WCHAR
	Version         win32.UINT
	InfoTitle       [64]win32.WCHAR
	InfoFlags       InfoFlag
	GuidItem        win32.GUID
	BalloonIcon     win32.HICON
}

type State

type State win32.DWORD
const (
	NIS_HIDDEN     State = 0x00000001
	NIS_SHAREDICON State = 0x00000002
)

Jump to

Keyboard shortcuts

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