I figured it out. The sample placed the nikon files (NkdPtp.dll, etc.) in the root app directory. However, my new apps put them in a subfolder. They load fine, but DeviceAdded is never called. Moving them fixed the issues.
I've tried creating WinForms and Console apps (which run at trust level Medium, not AppContainer), on Win 11. The MD3 file loads correctly, and registers the DeviceAdded callback, but my Nikon D5100 never triggers the callback. Any idea what's going on? I downloaded the sample, and demo_video works fine. There must be something in my app configuration that is different in my new project, which was created from scratch. I modified the sample and got it working (x64 running on ARM64), but when I rebuilt...
I've tried creating WinForms and Console apps (running at trust level Medium, not AppContainer), on Win 11. The MD3 file loads correctly, and registers the DeviceAdded callback, but my Nikon D5100 never triggers the callback. Any idea what's going on? I downloaded the sample, and demo_video works fine. There must be something in my app configuration that is different in my new project, which was created from scratch. I modified the sample and got it working (x64 running on ARM64), but when I rebuilt...