How to implement IStorageProviderCopyHook in a Desktop Bridge application

Stefan Angelov 26 Reputation points
2022-04-06T15:08:49.313+00:00

Greetings,

I would like to know what is a proper way to implement the IStorageProviderCopyHook interface in the context of a 'desktop bridge' application for a cloud sync engine (using the cloud filter API).
The available documentation (https://learn.microsoft.com/en-us/windows/win32/shell/nf-shobjidl-istorageprovidercopyhook-copycallback) states:

"To register a copy hook handler for cloud folders, set the CopyHook value under the HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Explorer/SyncRootManager/{SyncRootId} key to the CLSID of the copy hook object."

However, I am not sure how to achieve this in a 'desktop bridge' application. As I am aware, the code is containerized and has no access to HKLM, hence modifying the registry programatically will not work. I could also not find relevant configuration options for the Package.appmanifest file.

I'd appreciate any advice on how to implement this interface and incorporate that into the 'desktop bridge' application I am working on.

Thanks and regards,
Stefan

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
{count} vote