detect

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WM_CLOSE = 0x0010
)

Variables

View Source
var (
	BOOST = []string{
		"Tortoise1Normal",
		"Tortoise2Modified",
		"Tortoise3Conflict",
		"Tortoise6Deleted",
		"Tortoise7Added",
		"Tortoise8Ignored",
		"Tortoise9Unversioned",
		"DropboxExt01",
		"DropboxExt02",
		"DropboxExt07",
		"OneDrive4",
	}

	KEY = `SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers`
)

Functions

func CloseProcessWindow

func CloseProcessWindow(processName string) error

func GetProcessPathByName

func GetProcessPathByName(processName string) (string, error)

func PushNotify

func PushNotify(appID, title, scheme string) error

Types

type IconDetect

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

func NewIconDetect

func NewIconDetect() *IconDetect

func (*IconDetect) Detect

func (i *IconDetect) Detect() (bool, error)

Detect should be ran as a new IconDetect instance, and only once

func (*IconDetect) Fix

func (i *IconDetect) Fix() error

Fix should be ran as a new IconDetect instance, and only once

func (*IconDetect) WriteBackup

func (i *IconDetect) WriteBackup(fileName string) error

write backup into file with name as fileName, in .reg format

Jump to

Keyboard shortcuts

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