Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

docs(vcam): register through the app and note the Frame Server path limit (#117)

partyboy6277160a80be
diff --git a/docs/technical/building-and-testing.md b/docs/technical/building-and-testing.md
index 75b91a6..687e31e 100644
--- a/docs/technical/building-and-testing.md
+++ b/docs/technical/building-and-testing.md
@@ -67,12 +67,24 @@ The compiled executable is placed at `target/release/nectarlink-desktop.exe`.
cargo build --release -p nectarlink-vcam
```
-Produces `target/release/nectarlink_vcam.dll`. To register the COM virtual camera for testing with video conferencing apps, run in an elevated PowerShell prompt:
+Produces `target/release/nectarlink_vcam.dll`. The DLL exports only `DllGetClassObject` and `DllCanUnloadNow`; it does not export `DllRegisterServer`, so `regsvr32` cannot register it. The desktop app writes the COM and Frame Server registry keys instead. Build the desktop app (section 2), then run in an elevated PowerShell prompt:
```powershell
-regsvr32.exe target\release\nectarlink_vcam.dll
+target\release\nectarlink-desktop.exe --register-vcam
```
+`--unregister-vcam` removes the registration again.
+
+> **Debug builds and Frame Server.** The virtual camera is loaded by the Windows
+> Frame Server service, which runs as `NT AUTHORITY\LocalService` and cannot
+> read files under your user profile. Registering
+> `target\debug\nectarlink_vcam.dll` therefore succeeds, but starting the camera
+> fails with `0x80070005` (access denied). Test with the installed build, which
+> keeps the DLL in its install folder (under `C:\Program Files\Nectarlink` by
+> default); to test a local DLL, stop the `FrameServer` service
+> (`Stop-Service FrameServer`), copy it over the installed DLL, and run the
+> installed `nectarlink-desktop.exe --register-vcam` elevated.
+
### 4. Design Tokens and Third-Party Notices (`cargo xtask`)
[`tools/xtask`](../../tools/xtask/src/main.rs) generates platform design-system files from [`docs/design/tokens.json`](../../docs/design/tokens.json) and compiles the third-party license attribution bundle: