Skip to content

Instantly share code, notes, and snippets.

View abhijeet-gautam's full-sized avatar

ABHIJEET GAUTAM abhijeet-gautam

View GitHub Profile
@GeeLaw
GeeLaw / onedrive-bug-report.md
Created April 29, 2021 10:41
Bug in Cloud Filer / Placeholder / Reparse Point Disguising / OneDrive sync engine

Bug in Cloud Filer / Placeholder / Reparse Point Disguising / OneDrive sync engine

Starting from an unknown version of Windows 10, programs can no longer access dehydrated (online-only, placeholder) files with CreateFile(Ex) normally.

Consider the following excerpt:

// By default (if the program does not have a manifest, so it runs in Windows Vista mode),
// RtlQueryProcessPlaceholderCompatibilityMode returns PHCM_DISGUISE_PLACEHOLDER, and
// RtlQueryThreadPlaceholderCompatibilityMode returns PHCM_APPLICATION_DEFAULT.