How to make File Copy Protect using WIN32

Hello..

I have created a file using Core WIN32 & code is like this :



HANDLE hFile = CreateFile("E:\\FileName123.txt", GENERIC_READ,0,0,OPEN_ALWAYS, FILE_ATTRIBUTE_READONLY, 0);


This will create a file with name FileName123 in E:Drive.

My question is: When it will create the file in E:Drive, it must become Copy Protect. That is., File should not copy to other location.

Please can u suggest any solution for this ..

Thanks..
Topic archived. No new replies allowed.