How to make File Copy Protect using WIN32

Discussion in 'Meet and Greet' started by Guru_Angadi, Mar 12, 2012.

  1. Guru_Angadi

    Guru_Angadi New Member

    Joined:
    Mar 12, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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..
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice