1
0

explorerservice_other.go 522 B

1234567891011121314151617181920212223
  1. //go:build !windows
  2. package main
  3. // isForegroundExplorer 非 Windows 平台不支持,恒返回 false。
  4. func isForegroundExplorer() bool {
  5. return false
  6. }
  7. // readHoveredExplorerItem 非 Windows 平台不支持。
  8. func readHoveredExplorerItem() (string, bool) {
  9. return "", false
  10. }
  11. // initComThread 非 Windows 平台不需要初始化 COM。
  12. func initComThread() error {
  13. return nil
  14. }
  15. // cursorPos 非 Windows 平台无鼠标坐标,恒返回 false。
  16. func cursorPos() (int32, int32, bool) {
  17. return 0, 0, false
  18. }