microsoft / ProjFS-Managed-API

A managed-code API for the Windows Projected File System
Other
142 stars 34 forks source link

Asynchronous QueryFileName? #39

Open edemartel opened 4 years ago

edemartel commented 4 years ago

The OnQueryFileName callback has the following signature:

HResult OnQueryFileName(string relativePath)

Since, unlike its native counterpart, it lacks a commandId parameter, we cannot treat this callback asynchronously and therefore return HResult.Pending to complete the request later.

Is there a reason why the managed version of this method works so differently from its native equivalent?

abhijeet-gautam commented 4 years ago

Thanks @edemartel for pointing it out. This is a bug that we will address this in a future update of the API.