Hello guys, I am very old member of VBF but I was disappreared for a long...

Hi 5 to all... Hope you all are doing well.

This time I have a new challange but I am thinking on it from a long time but didn't meet solution. I hope you will help me. My challange is to protect video.
I have few video files. I will distribute to people in DVD. What I plan is I will make a DVD having an exe, and user has to play video from exe only by passing registration number and user name password.

Along with the exe we can attach video either in resources or as a encrypted file.

Let me tell you I am using VB.Net as technology in VS2010.

As a first try I created encrypted video file and kept in startup folder with exe. When user will open exe then exe will decrypt the file but I don't want to leave a decrypted file on disk for a moment. Because crackers will see the file and they will copy decrypted file.

What I want is to decrypt file and play it from memory only so application will no play video from file but it will play from memory / stream.
I tried with WMP control but as per my knowledge AxWindowsMediaPlayer accepts only URL (That must be a file on disk).

Is it possible to play video in AxWindowsMediaPlayer (or any other control) from MEMORY / STREAM


After that I got another idea that, if I could attach video into resources and if I could play video from resources. I tried following code.


Code:
 Dim ResourceFilePath As String
        ' Determine the Resource File Path

        If System.Diagnostics.Debugger.IsAttached() Then

            'Debugging mode

            ResourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath & "\..\..\resources\")

        Else

            'Published mode

            'ResourceFilePath = Application.StartupPath & "\resources\"
            ResourceFilePath = My.Computer.FileSystem.CurrentDirectory & "\"
        End If



        MsgBox(ResourceFilePath)

        ' Specify the mp3 file
        If (System.IO.File.Exists(ResourceFilePath & "\tst.avi")) Then
            AxWindowsMediaPlayer1.URL = ResourceFilePath & "\tst.avi"
        End If
it doesn't work.


Is there any directory from where user can't copy the file while the file is in use in our application.???

I have been mad and I want the solution very urgently..
I need you please.