Files
GVFG_Standalone/sdk/giga_ioctl/README.md
T
Mark.lin b5b045a41a Refine giga_ioctl DLL boundary
Keep giga_ioctl as an independently maintained driver ABI DLL while simplifying its implementation around shared DeviceIoControl helpers and named request layouts.

Preserve the existing C exports, IOCTL values, GetLastError behavior, and GVFG capture ownership. Add concise maintainer guidance and document that capture state remains outside this module.

Validation: MSVC Release giga_ioctl target built successfully; dumpbin confirmed all 10 exports; git diff --check passed.
2026-08-25 09:40:00 +08:00

17 lines
709 B
Markdown

# giga_ioctl
`giga_ioctl` is the private DLL boundary between GVFG and the Windows driver.
It owns only the driver IOCTL codes, request layouts, and thin
`DeviceIoControl` wrappers. Device discovery, capture state, threads, buffers,
and frame lifetime remain in `gvfg`.
When adding a driver operation:
1. Add its private IOCTL code and request layout to `src/giga_ioctl_private.h`.
2. Add a small C function to `include/giga_ioctl.h`.
3. Implement that function in `src/giga_ioctl.cpp` with no capture state.
4. Preserve `GetLastError()` on driver failures; use `ERROR_INVALID_PARAMETER`
for invalid caller output pointers.
The header is an internal dependency of `gvfg`; it is not a customer SDK API.