Skip to content

Instantly share code, notes, and snippets.

View hosct's full-sized avatar

Hajo Schulz hosct

  • Heise Medien, c't
  • Hannover, Germany
  • 06:57 (UTC +01:00)
View GitHub Profile
@hosct
hosct / ctBiosKey.cpp
Last active October 12, 2024 15:55
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) {