Lines Matching defs:hkeyVideo
650 static int checkVBoxVideoKey(HKEY hkeyVideo)
655 LONG status = RegQueryValueExA(hkeyVideo, "Device Description", NULL, &dwKeyType,
681 HKEY hkeyVideo = 0;
743 KEY_READ | (writable ? KEY_WRITE : 0), &hkeyVideo);
746 int rc = checkVBoxVideoKey(hkeyVideo);
749 /* Found, return hkeyVideo to the caller. */
753 RegCloseKey(hkeyVideo);
754 hkeyVideo = 0;
759 if (hkeyVideo == 0)
765 return hkeyVideo;
771 HKEY hkeyVideo = getVideoKey(false);
773 if (hkeyVideo)
779 status = RegQueryValueExA(hkeyVideo, "EnableVideoAccel", NULL, &dwKeyType, (LPBYTE)&fAcceleration, &len);
784 RegCloseKey(hkeyVideo);
792 HKEY hkeyVideo;
803 hkeyVideo = getVideoKey(true);
805 if (hkeyVideo)
811 status = RegSetValueExA(hkeyVideo, "EnableVideoAccel", 0, REG_DWORD, (LPBYTE)&fAccel, sizeof(fAccel));
816 RegCloseKey(hkeyVideo);
823 HKEY hkeyVideo = getVideoKey(false);
825 if (hkeyVideo)
830 ULONG status = RegQueryValueExA(hkeyVideo, "VBoxVideoFlags", NULL, &dwKeyType, (LPBYTE)&dwFlags, &len);
835 RegCloseKey(hkeyVideo);
844 HKEY hkeyVideo = getVideoKey(true);
846 if (hkeyVideo)
848 ULONG status = RegDeleteValueA(hkeyVideo, "VBoxVideoFlags");
851 RegCloseKey(hkeyVideo);
876 HKEY hkeyVideo = getVideoKey(true);
877 if (hkeyVideo)
882 ULONG status = RegQueryValueExA(hkeyVideo, "VBoxVideoFlags", NULL, &dwKeyType, (LPBYTE)&dwFlags, &len);
891 status = RegSetValueExA(hkeyVideo, "VBoxVideoFlags", 0, REG_DWORD, (LPBYTE)&dwFlags, sizeof(dwFlags));
898 RegCloseKey(hkeyVideo);
960 void getCustomModes(HKEY hkeyVideo)
976 status = RegQueryValueExA(hkeyVideo, valueName, NULL, &dwType, (LPBYTE)&xres, &dwLen);
980 status = RegQueryValueExA(hkeyVideo, valueName, NULL, &dwType, (LPBYTE)&yres, &dwLen);
984 status = RegQueryValueExA(hkeyVideo, valueName, NULL, &dwType, (LPBYTE)&bpp, &dwLen);
1008 void writeCustomModes(HKEY hkeyVideo)
1019 RegDeleteValueA(hkeyVideo, valueName);
1021 RegDeleteValueA(hkeyVideo, valueName);
1023 RegDeleteValueA(hkeyVideo, valueName);
1043 status = RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].xres,
1046 RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].yres,
1049 RegSetValueExA(hkeyVideo, valueName, 0, REG_DWORD, (LPBYTE)&customModes[tableIndex].bpp,
1067 HKEY hkeyVideo = getVideoKey(false);
1069 if (hkeyVideo)
1071 getCustomModes(hkeyVideo);
1082 RegCloseKey(hkeyVideo);
1110 HKEY hkeyVideo = getVideoKey(true);
1112 if (hkeyVideo)
1116 getCustomModes(hkeyVideo);
1141 writeCustomModes(hkeyVideo);
1143 RegCloseKey(hkeyVideo);
1160 HKEY hkeyVideo = getVideoKey(true);
1162 if (hkeyVideo)
1164 getCustomModes(hkeyVideo);
1177 writeCustomModes(hkeyVideo);
1178 RegCloseKey(hkeyVideo);