Skip to content

dave-tucker/wincputest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reliable VTX Detection for Windows

coreinfo -v only reports CPU capabilties, not if it is enabled in the BIOS

The IsProcesserFeatureEnabled SysInfo API gives us that information if given the right encouragement! Namely, PF_VIRT_FIRMWARE_ENABLED...

Doing it in C

Requires Mingw64

$ gcc main.c -o main.exe
$ main.exe
VTX Enabled: false

Simples!

Doing it in Go

This is much harder than it needs to be! According to the Golang wiki there are numerous ways to do this. I've created main1.go, main2.go, main3.go as examples. None of them work.

main1.go causes a panic! YAY!

main2.go and main3.go return the error Incorrect Function

Good old main.go is the only way to make this work so far, and it requires Cgo :(

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published