Compare commits

..

3 commits

Author SHA1 Message Date
599472a176 agent-vs2022/ -> agent/ 2024-11-30 04:01:03 -05:00
c6ce36e2f0 Add README 2024-11-30 04:00:17 -05:00
af557a0dba Make vs2022 path shared 2024-11-30 03:54:47 -05:00
31 changed files with 30 additions and 14 deletions

8
.gitignore vendored
View file

@ -1,7 +1,7 @@
/target /target
# agent # agent
/agent-vs2022/.cache /agent/.cache
/agent-vs2022/bin /agent/bin
/agent-vs2022/obj /agent/obj
/agent-vs2022/compile_commands.json /agent/compile_commands.json

14
README.md Normal file
View file

@ -0,0 +1,14 @@
# Hazelnut
A semi-prototype of CollabVM 3.0 agent functionality (specifically display).
Currently NVIDIA-specific; support for DXGI duplication (for post Win7) should be added at some point
The agent should run on Windows 7 x64 onwards. Lower (or x86) is currently not supported as a target.
TCP sockets are currently used; this will be replaced with virtio-serial (mediated on top of agent pluggable support) and IVSHMEM.
This repository contains:
- The agent.
- A simple server end, written in Rust, which displays the framebuffer (in rather unoptimal fashion, both networking and graphics-wise.). Written for testing only.

View file

@ -23,14 +23,14 @@ OBJS := $(OBJDIR)/capture.o \
$(OBJDIR)/nvfbc_library.o \ $(OBJDIR)/nvfbc_library.o \
$(OBJDIR)/main.o \ $(OBJDIR)/main.o \
LINK_LIBS := ~/vs2022/ucrt/lib/$(ARCH)/libucrt$(D).lib \ LINK_LIBS := $(VS2022_PATH)/ucrt/lib/$(ARCH)/libucrt$(D).lib \
~/vs2022/crt/lib/$(ARCH)/libcmt$(D).lib \ $(VS2022_PATH)/crt/lib/$(ARCH)/libcmt$(D).lib \
~/vs2022/crt/lib/$(ARCH)/libcpmt$(D).lib \ $(VS2022_PATH)/crt/lib/$(ARCH)/libcpmt$(D).lib \
~/vs2022/crt/lib/$(ARCH)/libvcruntime$(D).lib \ $(VS2022_PATH)/crt/lib/$(ARCH)/libvcruntime$(D).lib \
~/vs2022/winsdk/lib/$(ARCH)/kernel32.lib \ $(VS2022_PATH)/winsdk/lib/$(ARCH)/kernel32.lib \
~/vs2022/winsdk/lib/$(ARCH)/user32.lib \ $(VS2022_PATH)/winsdk/lib/$(ARCH)/user32.lib \
~/vs2022/winsdk/lib/$(ARCH)/comctl32.lib \ $(VS2022_PATH)/winsdk/lib/$(ARCH)/comctl32.lib \
~/vs2022/winsdk/lib/$(ARCH)/ws2_32.lib $(VS2022_PATH)/winsdk/lib/$(ARCH)/ws2_32.lib
.PHONY: all dumpinfo clean matrix .PHONY: all dumpinfo clean matrix

View file

@ -1,8 +1,10 @@
# Base compiler flags. Only change if you *explicitly* know what you're doing. # Base compiler flags. Only change if you *explicitly* know what you're doing.
# replace this
VS2022_PATH := ~/vs2022
RC_INCLUDES := /I ~/vs2022/winsdk/include/um /I ~/vs2022/winsdk/include/shared RC_INCLUDES := /I $(VS2022_PATH)/winsdk/include/um /I $(VS2022_PATH)/winsdk/include/shared
SDK_INCLUDES := -isystem ~/vs2022/ucrt/include -isystem ~/vs2022/crt/include -isystem ~/vs2022/winsdk/include/shared -isystem ~/vs2022/winsdk/include/um SDK_INCLUDES := -isystem $(VS2022_PATH)/ucrt/include -isystem $(VS2022_PATH)/crt/include -isystem $(VS2022_PATH)/winsdk/include/shared -isystem $(VS2022_PATH)/winsdk/include/um
# Windows 6.1 # Windows 6.1
BASE_CCFLAGS := $(SDK_INCLUDES) -D_WIN32_WINNT=0x0601 -Ires -std=c17 BASE_CCFLAGS := $(SDK_INCLUDES) -D_WIN32_WINNT=0x0601 -Ires -std=c17