feat: add tray control, priority restoration and session logging
This commit is contained in:
1 parent
4f8f6218ad
commit
4880aa46dc
25 files changed
+3072
-676
No files matched your search
@@ -0,0 +1,15 @@
|
||||
//go:build windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func TestMemoryCounterLayout(t *testing.T) {
|
||||
var m processMemoryCounters
|
||||
if unsafe.Offsetof(m.PagefileUsage) >= unsafe.Offsetof(m.PeakPagefileUsage) {
|
||||
t.Fatal("PagefileUsage must precede PeakPagefileUsage in the Windows ABI")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user