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

Method SetFDConfigDigit

pidgen/hardware.cpp:327–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325
326
327VOID CHardware::SetFDConfigDigit()
328{
329 DWORD dwFDConfig;
330
331#if defined(WIN32) || defined(_WIN32)
332 if ( IsPlatformNT() )
333 {
334 dwFDConfig = CalculateDriveCapacityNT( 1 ) << 2;
335 dwFDConfig += CalculateDriveCapacityNT( 2 );
336 } else
337#endif
338 {
339#ifndef _WIN64
340 dwFDConfig = CalculateDriveCapacity95( 1 ) << 2;
341 dwFDConfig += CalculateDriveCapacity95( 2 );
342#endif
343 }
344
345 m_szHardwareID[ FD_CONFIG_DIGIT ] = (CHAR)( dwFDConfig % 9 ) + '0';
346}
347
348#ifndef _WIN64
349DWORD CHardware::CalculateDriveCapacity95( INT nDrive )

Callers

nothing calls this directly

Calls 1

IsPlatformNTFunction · 0.85

Tested by

no test coverage detected