Skip to content

Instantly share code, notes, and snippets.

View hosct's full-sized avatar

Hajo Schulz hosct

  • Heise Medien, c't
  • Hannover, Germany
  • 13:14 (UTC +02:00)
View GitHub Profile
@hosct
hosct / ctBiosKey.cpp
Last active January 5, 2024 23:03
ctBiosKey
#include <iostream>
#include <Windows.h>
int main()
{
DWORD firmwareTableProviderSignature = 0x41435049; // "ACPI"
DWORD firmwareTableMSDMID = 0x4d44534d; // "MSDM"
UINT structSize = EnumSystemFirmwareTables(firmwareTableProviderSignature, NULL, 0);
if (structSize == 0) {