MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / checkInstallation

Function checkInstallation

windrv.c:557–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557DWORD checkInstallation()
558{
559 HDEVINFO hDevInfo;
560 DWORD ret = 0;
561
562 /* Enumerate all display adapters */
563 hDevInfo = DYN(SetupDiGetClassDevsA)(&GUID_DEVCLASS_DISPLAY, NULL, NULL, DIGCF_PRESENT);
564
565 if(hDevInfo == INVALID_HANDLE_VALUE)
566 {
567 REPORT("SetupDiCreateDeviceInfoList: %ld", GetLastError());
568 return CHECK_DRV_FAIL;
569 }
570
571 /* Read the drivers from the inf file */
572 if (!DYN(SetupDiBuildDriverInfoList)(hDevInfo, NULL, SPDIT_CLASSDRIVER))
573 {
574 REPORT("SetupDiBuildDriverInfoList: %ld", GetLastError());
575 DYN(SetupDiDestroyDeviceInfoList)(hDevInfo);
576 return CHECK_DRV_FAIL;
577 }
578
579 ret = checkInstallatioListLookup(hDevInfo);
580
581 /* Cleanup */
582 DYN(SetupDiDestroyDeviceInfoList)(hDevInfo);
583
584 return ret;
585}
586
587static void setBPP(int bpp)
588{

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected