i want to make a program which block any file(like autorun.inf),so that no other program can read from it(just like a way,antivirus do) with c++ in windows.
please help me.
thanks.
i want to make a program which block any file(like autorun.inf),so that no other
Share
You can open a file with a
dwShareModeof 0, which willSo once your process opens the file, no other process will be able to open it, delete it, etc.
MSDN Reference