Lines Matching defs:res

574             LRESULT res = RegOpenKeyExW(
581 if (res == ERROR_SUCCESS) {
582 res = RegQueryValueExW(hKey, L"LongPathsEnabled", nullptr, &dataType,
587 BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Failed to open SYSTEM\\CurrentControlSet\\Control\\FileSystem: error code %d", res);
589 if (res == ERROR_SUCCESS && dataType == REG_DWORD && buffer == 0) {
593 if (res == ERROR_SUCCESS)
594 BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Failed to read LongPathsEnabled value: error code %d", res);
677 HINSTANCE res = ShellExecuteW(0, L"runas", pythonw, arguments, NULL, SW_HIDE);
678 BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "return code 0x%08x", res);
2846 LRESULT res;
2849 res = RegOpenKeyExW(hkHive, subkey, 0, KEY_READ | KEY_WOW64_64KEY, &hKey);
2851 res = RegOpenKeyExW(hkHive, subkey, 0, KEY_READ | KEY_WOW64_32KEY, &hKey);
2853 if (res == ERROR_FILE_NOT_FOUND) {
2856 if (res != ERROR_SUCCESS) {
2857 return HRESULT_FROM_WIN32(res);
2861 res = RegQueryValueExW(hKey, p->regName, nullptr, nullptr, nullptr, nullptr);
2862 if (res == ERROR_FILE_NOT_FOUND) {
2864 } else if (res == ERROR_SUCCESS) {
2868 return HRESULT_FROM_WIN32(res);
2882 LRESULT res;
2888 res = RegOpenKeyExW(hkHive, subkey, 0, KEY_READ | KEY_WOW64_64KEY, &hKey);
2890 res = RegOpenKeyExW(hkHive, subkey, 0, KEY_READ | KEY_WOW64_32KEY, &hKey);
2892 if (res == ERROR_FILE_NOT_FOUND) {
2895 if (res != ERROR_SUCCESS) {
2896 return HRESULT_FROM_WIN32(res);
2899 res = RegQueryValueExW(hKey, nullptr, nullptr, &dataType, buffer, &bufferLen);
2900 if (res == ERROR_SUCCESS && dataType == REG_SZ && bufferLen < sizeof(buffer)) {
2904 return HRESULT_FROM_WIN32(res);
2913 LRESULT res;
2916 res = RegOpenKeyExW(hkHive, subkey, 0, KEY_READ | KEY_WOW64_32KEY, &hKey);
2918 if (res == ERROR_FILE_NOT_FOUND) {
2921 if (res != ERROR_SUCCESS) {
2922 return HRESULT_FROM_WIN32(res);
2925 res = RegQueryValueExW(hKey, L"AssociateFiles", nullptr, nullptr, nullptr, nullptr);
2926 if (res == ERROR_FILE_NOT_FOUND) {
2928 } else if (res == ERROR_SUCCESS) {
2931 hr = HRESULT_FROM_WIN32(res);