Create a Symbolic link to the file

My mini filter driver is intercepting file create and open calls. Now when user creates file c:\a.txt driver should store it as d:\a.txt (some other storage) and create a link c:\a.txt.

example:

  1. user creates c:\a.txt
  2. driver should intercepte create call and
    i. create file in d:\ (instead of c:)
    ii. create link ‘c:\a.txt’ pointing to ‘d:\a.txt’
    Output:
    c:\a.txt should be link
    d:\a.txt actual file

Can you please point me to some references for APIs for the same?

> Can you please point me to some references for APIs for the same?

Reparse points. The “link” should actually be a reparse point.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com