Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
1.1 KB
Raw Blame
#pragma once

#include <cstdint>
#include <string>

namespace veyra {

struct FileIdentity {
    std::wstring path;
    uint64_t sizeBytes = 0;
    std::string sha256Upper;        // 64 uppercase hex characters when computed
    std::wstring fileVersion;       // "310.8.0.0" style, empty when absent
    std::wstring productVersion;
    bool signatureValid = false;
    uint32_t winTrustError = 0;
    std::wstring signerSubject;     // certificate subject when signature valid
    bool signerIsNvidia = false;
};

enum class IdentityError : int32_t {
    None = 0,
    FileOpen = 1,
    Read = 2,
    Hash = 3,
    VersionInfo = 4,
    Signature = 5,
};

const char* identityErrorString(IdentityError error);

// Computes size + SHA-256 + version strings + Authenticode status + signer
// subject for one file. Returns false and fills `error` when a stage fails;
// partial results remain in `out` for logging.
bool computeFileIdentity(const std::wstring& path, FileIdentity& out, IdentityError& error);

// Uppercase hex SHA-256 over an in-memory buffer (diagnostics/statistics).
std::string sha256Hex(const uint8_t* data, size_t size);

} // namespace veyra