static bool MM_Detour(AsyncOperation self) { if (ResourceRedirection.ShouldBlockAsyncOperationMethods(self)) { return(true); // do not believe this has an impact } return(_original(self)); }
static void MM_Detour(AsyncOperation self) { if (ResourceRedirection.ShouldBlockAsyncOperationMethods(self)) { return; } _original(self); }
static int MM_Detour(AsyncOperation self) { if (ResourceRedirection.ShouldBlockAsyncOperationMethods(self)) { return(0); } return(_original(self)); }