sampledevicemft not working? no luck with mftrace

BS 1 Reputation point

Hi all

I'm trying to build a device MFT and I'm using this sample

The sample does not build out of the box, so I fixed the missing include for WIL - ./packages/Microsoft.Windows.ImplementationLibrary.1.0.210204.1/include/
I then was able to build the sample and register the DLL using regsvr32.exe.
I then started the camera app in windows 10 hoping I would see some kind of effect applied to the live video preview stream, but the video stream just looks normal.
I then enabled the MF_DEVICEMFT_ADD_GRAYSCALER_ define in stdafx.h thinking this was what was missing, but when I do that, I get a bunch of compilation errors. I tried my best to fix them and managed to build the code again and register the DLL, but still, nothing has changed in the video output when I start the camera app, so I thought I'd trace with mftrace, since the sample is using WPP for tracing?
However, that doesn't work either. here is my config.xml file -

<?xml version='1.0' encoding='utf-8'?>
<mfdetours level="Debug">
<keyword ID="All" />

<!-- Manifest-based traces -->

<provider level="verbose" ID="{0E313280-3169-4F41-A329-9E854169634F}">
<keyword ID="All" />


Any ideas on how I can get the sample working and how to verify the DLL is actually being loaded and used when the video stream of my camera is opened?

In the registry I manually added a string under this node -
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses{e5323777-f976-4f5b-9b55-b94699c46e44}##?#USB#VID_046D&PID_0821&MI_02#7&4c057cf&0&0002#{e5323777-f976-4f5b-9b55-b94699c46e44}#GLOBAL\Device Parameters

name = CameraDeviceMftClsid
data = {0E313280-3169-4F41-A329-9E854169634F}


Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,567 questions
0 comments No comments
{count} votes