MCPcopy Create free account
hub / github.com/Endermanch/XPKeygen / SetVideoBIOSDigit

Method SetVideoBIOSDigit

pidgen/hardware.cpp:557–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555#endif
556
557VOID CHardware::SetVideoBIOSDigit()
558{
559 DWORD dwVideoBIOSChecksum;
560
561#if defined(WIN32) || defined(_WIN32)
562 if ( IsPlatformNT() )
563 {
564 dwVideoBIOSChecksum = CalculateRegKeyChecksum( "VideoBiosDate" );
565 dwVideoBIOSChecksum += CalculateRegKeyChecksum( "VideoBiosVersion" );
566
567#ifdef HWID_DETAIL ////////////////////////////////////////////////////////////
568 m_dwVideoBiosCrc32 = dwVideoBIOSChecksum;
569#endif
570
571 } else
572#endif
573 {
574
575 LPBYTE pbMemoryByte;
576
577#if defined(WIN32) || defined(_WIN32)
578 pbMemoryByte = (LPBYTE)0xC0000;
579#else
580 pbMemoryByte = (LPBYTE)MAKELONG(0, &_C000H);
581#endif
582 dwVideoBIOSChecksum = CalculateMemoryRegionChecksum(pbMemoryByte, 2048);
583
584#ifdef HWID_DETAIL ////////////////////////////////////////////////////////////
585 m_dwVideoBiosCrc32 = CRC_32(pbMemoryByte, 2048);
586#endif
587
588 }
589
590 m_szHardwareID[ VIDEO_BIOS_DIGIT ] = (CHAR)( dwVideoBIOSChecksum % 9 ) + '0';
591}
592
593#ifndef NO_HWID_GUID //////////////////////////////////////////////////////////
594

Callers

nothing calls this directly

Calls 2

IsPlatformNTFunction · 0.85
CRC_32Function · 0.85

Tested by

no test coverage detected