windows - How to read data using ReadFile when file has disabled sharing on read -


i have problem, have file opened other process , process defined in createfile non file sharing, have other application , want read data file in same time, how do.

i can't change file sharing in first application. can reach computer administrator right's, can changes in system, "code" solution better problem if can done code.

can me?

how using easyhook , hook in api createfile routine, in effect, code intercept api , possibly change dwsharemode parameter make file_share_read bitwise or file_share_write i.e. (file_share_read|file_share_write) , call original hook allow createfile work normally...


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -