#pragma once
// ── CS2 External C++ WebRadar — Module ────────────────────────────────────────
// Wraps a process module (client.dll), holding process handle, base address,
// and module size.

#include <cstdint>
#include <windows.h>

struct Module {
    HANDLE process = nullptr;
    std::uintptr_t base = 0;
    std::size_t size = 0;

    bool valid() const { return process != nullptr && base != 0; }

    void reset() {
        process = nullptr;
        base = 0;
        size = 0;
    }
};
