gpu: fix windows_gpu_info metric (#2130)

This commit is contained in:
Jan-Otto Kröpke
2025-07-13 01:05:59 +02:00
committed by GitHub
parent 6b8c895a68
commit 524fea08c4
12 changed files with 534 additions and 255 deletions

View File

@@ -23,12 +23,17 @@ import (
"golang.org/x/sys/windows"
)
const MAX_PATH = 260
type (
BOOL = int32 // BOOL is a 32-bit signed int in Win32
DATE_TIME = windows.Filetime
DWORD = uint32
LPWSTR struct {
*uint16
}
ULONG = uint32 // ULONG is a 32-bit unsigned int in Win32
UINT = uint32 // UINT is a 32-bit unsigned int in Win32
)
// NewLPWSTR creates a new LPWSTR from a string.