From 92042ea4305ded0b44ae538b9fe31d56a4bb80e2 Mon Sep 17 00:00:00 2001 From: Gerrit Swaneveld <55601905+gerritsMSFT@users.noreply.github.com> Date: Thu, 12 Jan 2023 13:47:18 -0800 Subject: Remove invalid INF DeviceInstall32 (#811) * Remove invalid INF DeviceInstall32 Removes from the sample an invalid API call. * Update to SimpleMediaSource.inf Fixes to use public installation path --- general/SimpleMediaSource/README.md | 9 +++++++-- .../SimpleMediaSourceDriver.inf | Bin 8500 -> 6712 bytes 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/general/SimpleMediaSource/README.md b/general/SimpleMediaSource/README.md index 4467f16b..baa17a30 100644 --- a/general/SimpleMediaSource/README.md +++ b/general/SimpleMediaSource/README.md @@ -27,6 +27,11 @@ For more information, see the accompanying documentation at [Frame Server Custom 1. Deploy the driver package with the following command: - `devcon dp_add SimpleMediaSourceDriver.inf` + `devgen /add /bus ROOT /hardwareid root\SimpleMediaSource` + `pnputil /add-driver SimpleMediaSourceDriver.inf /install` -1. In Device Manager, locate **SimpleMediaSource Capture Source**, under the Camera category. Open the Microsoft Camera App, switch cameras if necessary until the camera is streaming from the SimpleMediaSource. You should see a scrolling black and white gradient. +1. Verify installation with Device Manager, locate **SimpleMediaSource Capture Source**, under the Camera category. If device does not appear there, check %windir%\inf\setupapi.dev.log for installation logs. The device instance ID will be available as the output of the devgen command and can be used as input to pnputil to determine status of the device. + + `pnputil /enum-devices /instanceid "" /deviceids /services /stack /drivers` + +1. Open the Microsoft Camera App, switch cameras if necessary until the camera is streaming from the SimpleMediaSource. You should see a scrolling black and white gradient. diff --git a/general/SimpleMediaSource/SimpleMediaSourceDriver/SimpleMediaSourceDriver.inf b/general/SimpleMediaSource/SimpleMediaSourceDriver/SimpleMediaSourceDriver.inf index dabb3237..e2d228fe 100644 Binary files a/general/SimpleMediaSource/SimpleMediaSourceDriver/SimpleMediaSourceDriver.inf and b/general/SimpleMediaSource/SimpleMediaSourceDriver/SimpleMediaSourceDriver.inf differ -- cgit v1.3.1