Files
piik/native/capture/windows/capture_target.h
T
AAA 1332473513 feat: rename product and runtime to Piik
Rename the active product, Go module, binaries, configuration, protocols and documentation to Piik while retaining the TV mascot and existing media/room behavior.

Use one current private contract without old-name aliases. Preserve SQLite authority and copy compatible local settings once; other settings start fresh. Git-message cleanup and the infrastructure name cutover are coordinated with this phase, with original history and deployment data archived externally.

Validated locally with Web and Go checks, Windows capture compilation, matched Client/Server builds, packaged Client control handshake and history-rewrite integrity checks. Skip duplicate hosted CI for this owner-authorized local release.

[skip ci]
2026-09-10 11:10:12 +08:00

36 lines
911 B
C++

#pragma once
#include <windows.h>
#include <cstdint>
namespace piik::capture {
enum class TargetKind { window, display };
int WriteSourceList();
HRESULT WriteSourcePreview(TargetKind kind, UINT64 source_id, DWORD pid,
UINT64 expected_creation_time);
HRESULT ValidateProcessTarget(DWORD pid, UINT64 expected_creation_time);
HRESULT ValidateWindowTarget(UINT64 source_id, DWORD pid,
UINT64 expected_creation_time);
HRESULT ValidateDisplayTarget(UINT64 source_id);
class CapturePresentation final {
public:
CapturePresentation(TargetKind kind, UINT64 source_id)
: kind_(kind), source_id_(source_id) {}
SIZE Resolve(UINT32 width, UINT32 height, bool key_frame);
private:
TargetKind kind_;
UINT64 source_id_;
HMONITOR monitor_ = nullptr;
RECT bounds_{};
SIZE captured_{};
SIZE presentation_{};
};
} // namespace piik::capture