| 1234567891011121314151617181920 |
- // ============================================================================
- //go:build !windows || service
- // desktopicons_other.go — 隐藏/显示桌面图标(非 Windows 或服务模式)
- //
- // 仅 Windows 支持桌面图标显隐;其它平台返回明确的错误提示。
- // ============================================================================
- package main
- import "fmt"
- // setDesktopIconsVisible 非 Windows 平台不支持,返回错误。
- func setDesktopIconsVisible(hide bool) (string, error) {
- return "", fmt.Errorf("当前系统不支持桌面图标显隐")
- }
- // setDesktopIconOnlyVisible 非 Windows 平台不支持,返回错误。
- func setDesktopIconOnlyVisible(hide bool) (string, error) {
- return "", fmt.Errorf("当前系统不支持桌面图标显隐")
- }
|