- Updated SDK_DECODER_SEMVER to "1.3.0" and GUI_SEMVER to "1.2.4" in config.ini. - Updated MailViewer component to handle PDF already open error and improved iframe handling. - Removed deprecated useMsgConverter setting from settings page. - Added IsDebuggerRunning function to check for attached debuggers and quit the app if detected. - Enhanced PDF viewer to prevent infinite loading and improved error handling. Co-Authored-By: Laky-64 <iraci.matteo@gmail.com>
12 lines
288 B
Go
12 lines
288 B
Go
package utils
|
|
|
|
import "syscall"
|
|
|
|
// IsDebugged reports whether a debugger is attached (Windows).
|
|
func IsDebugged() bool {
|
|
kernel32 := syscall.NewLazyDLL("kernel32.dll")
|
|
isDebuggerPresent := kernel32.NewProc("IsDebuggerPresent")
|
|
ret, _, _ := isDebuggerPresent.Call()
|
|
return ret != 0
|
|
}
|