Copy VFP9 exe file  
Author Message
seth_hickel





PostPosted: Fri Dec 16 07:54:50 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file

Is there any ways to prevent to copy the VFP9 exe file from the server or
from the local PC? Or if it's impossible how do I know the exe file had been
copied by someone?
Many thanks in advanced.
--
Sandor

Exchange Server16  
 
 
Man-wai





PostPosted: Fri Dec 16 07:54:50 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file
> Is there any ways to prevent to copy the VFP9 exe file from the server or
> from the local PC? Or if it's impossible how do I know the exe file had been
> copied by someone?

Not a solution. Set its Hidden bit.


--
.~. Might, Courage, Vision. SINCERITY. http://www.linux-sxs.org
/ v \
/( _ )\ (Ubuntu 5.10) Linux 2.6.14.4
^ ^ 21:54:03 up 59 min 0 users 5.50 5.51
 
 
Christopher





PostPosted: Fri Dec 16 07:58:42 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file You may not be able to prevent the copying of the EXE file, but you could
build something like a secondary DLL file that is loaded somewhere else on
the user's computer. By doing this, when some tries to copy the EXE and run
it on a computer where it wasn't installed, then your EXE will attempt to
access the DLL which is not present, thus forcing the EXE to shutdown.

If this doesn't help, please provide more information with respect to what
you're trying to accomplish.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."



> Is there any ways to prevent to copy the VFP9 exe file from the server or
> from the local PC? Or if it's impossible how do I know the exe file had
> been
> copied by someone?
> Many thanks in advanced.
> --
> Sandor


 
 
Josh





PostPosted: Fri Dec 16 08:46:27 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file You'll need to use a serial # based control on the hard drive when 1st
installed.

We've done this in the past -- we install a temporary small program that
generates a key in the exe's directory -- this key is encrypted & is the hard
drive serial #. This small exe is then deleted.

The program will refuse to run if the license.key is missing, or if the hard
drive serial # doesn't match (it's been copied).

It's only resulted in one major end user complaint when their hard drive crashed
& they restored from a backup and we wouldn't run -- but it was trivial to get
them going again.

On Fri, 16 Dec 2005 05:39:03 -0800, Sandor Hajdu


>Is there any ways to prevent to copy the VFP9 exe file from the server or
>from the local PC? Or if it's impossible how do I know the exe file had been
>copied by someone?
>Many thanks in advanced.


--- AntiSpam/harvest ---
Remove X's to send email to me.
 
 
Man-wai





PostPosted: Fri Dec 16 08:55:12 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file
> You'll need to use a serial # based control on the hard drive when 1st
> installed.

What'x the tool's URL?

--
.~. Might, Courage, Vision. SINCERITY. http://www.linux-sxs.org
/ v \
/( _ )\ (Ubuntu 5.10) Linux 2.6.14.4
^ ^ 22:54:02 up 7 min 0 users 1.36 0.64
 
 
MichelRoy





PostPosted: Fri Dec 16 13:22:02 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file are you asking about vfp9.exe ,or an exe created with vfp9?




> Is there any ways to prevent to copy the VFP9 exe file from the server or
> from the local PC? Or if it's impossible how do I know the exe file had been
> copied by someone?
> Many thanks in advanced.
> --
> Sandor
 
 
Dan





PostPosted: Fri Dec 16 15:42:05 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file This method does have its draw backs. If your running a multi user
environment, does each PC gets its own license or just the server? If it
is just the server, how can the workstations tell if the server is the
original licensed server. We are currently using this method, but I just
recently added a new twist.

The server is expected to run a software that waits for connections on a
specific port. If the incoming message is formatted as expected, I count
the connections and the server software decides if it wants to hand out a
license. If not, it refuses the connection. The workstations are coded to
close down alerting the user to the problem.

Hope this gives you some ideas
Dan





> You'll need to use a serial # based control on the hard drive when 1st
> installed.
>
> We've done this in the past -- we install a temporary small program that
> generates a key in the exe's directory -- this key is encrypted & is the
hard
> drive serial #. This small exe is then deleted.
>
> The program will refuse to run if the license.key is missing, or if the
hard
> drive serial # doesn't match (it's been copied).
>
> It's only resulted in one major end user complaint when their hard drive
crashed
> & they restored from a backup and we wouldn't run -- but it was trivial to
get
> them going again.
>
> On Fri, 16 Dec 2005 05:39:03 -0800, Sandor Hajdu

>
> >Is there any ways to prevent to copy the VFP9 exe file from the server or
> >from the local PC? Or if it's impossible how do I know the exe file had
been
> >copied by someone?
> >Many thanks in advanced.
>
>
> --- AntiSpam/harvest ---
> Remove X's to send email to me.


 
 
Jan





PostPosted: Fri Dec 16 17:55:41 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file Christopher,

This would be the case anyway as the exe needs the Fox runtime.

Rgds
Jan



> You may not be able to prevent the copying of the EXE file, but you could
> build something like a secondary DLL file that is loaded somewhere else on
> the user's computer. By doing this, when some tries to copy the EXE and
> run it on a computer where it wasn't installed, then your EXE will attempt
> to access the DLL which is not present, thus forcing the EXE to shutdown.
>
> If this doesn't help, please provide more information with respect to what
> you're trying to accomplish.
> --
> Christopher A. Reed
> "The oxen are slow, but the earth is patient."
>


>> Is there any ways to prevent to copy the VFP9 exe file from the server or
>> from the local PC? Or if it's impossible how do I know the exe file had
>> been
>> copied by someone?
>> Many thanks in advanced.
>> --
>> Sandor
>
>


 
 
Josh





PostPosted: Fri Dec 16 18:11:50 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file Check the universalthread -- I believe there's a dll there that handles serial #
of hard drives.
If not -- I can come up with a pre-coded bit for you.






>> You'll need to use a serial # based control on the hard drive when 1st
>> installed.
>
>What'x the tool's URL?


--- AntiSpam/harvest ---
Remove X's to send email to me.
 
 
Josh





PostPosted: Fri Dec 16 18:18:29 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file >This method does have its draw backs. If your running a multi user

*** EVERY METHOD *** of copy protection has draw backs.

>environment, does each PC gets its own license or just the server? If it
>is just the server, how can the workstations tell if the server is the

you need to define your environment, target etc. if it's "1 user at 1` time
anywhere" simply lock a record in a shared admin table -- if this record is
locked, bam, no other users can get in.


--- AntiSpam/harvest ---
Remove X's to send email to me.
 
 
Josh





PostPosted: Fri Dec 16 18:18:29 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file Good question!

I ass-u-med it was a application exe developed in vfp9. (my bad)

On Fri, 16 Dec 2005 11:22:02 -0800, "Michel Roy"


>are you asking about vfp9.exe ,or an exe created with vfp9?
>
>

>
>> Is there any ways to prevent to copy the VFP9 exe file from the server or
>> from the local PC? Or if it's impossible how do I know the exe file had been
>> copied by someone?
>> Many thanks in advanced.
>> --
>> Sandor


--- AntiSpam/harvest ---
Remove X's to send email to me.
 
 
Sandor





PostPosted: Sat Dec 17 11:34:02 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file You are right. Of course I was talking about an application.
Sorry for my mistake.



> Good question!
>
> I ass-u-med it was a application exe developed in vfp9. (my bad)
>
> On Fri, 16 Dec 2005 11:22:02 -0800, "Michel Roy"

>
> >are you asking about vfp9.exe ,or an exe created with vfp9?
> >
> >

> >
> >> Is there any ways to prevent to copy the VFP9 exe file from the server or
> >> from the local PC? Or if it's impossible how do I know the exe file had been
> >> copied by someone?
> >> Many thanks in advanced.
> >> --
> >> Sandor
>
>
> --- AntiSpam/harvest ---
> Remove X's to send email to me.
>
 
 
Christopher





PostPosted: Sun Dec 18 01:03:14 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file I think the assumption is that the user copying the file already has the
runtime.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."



> Christopher,
>
> This would be the case anyway as the exe needs the Fox runtime.
>
> Rgds
> Jan
>


>> You may not be able to prevent the copying of the EXE file, but you could
>> build something like a secondary DLL file that is loaded somewhere else
>> on the user's computer. By doing this, when some tries to copy the EXE
>> and run it on a computer where it wasn't installed, then your EXE will
>> attempt to access the DLL which is not present, thus forcing the EXE to
>> shutdown.
>>
>> If this doesn't help, please provide more information with respect to
>> what you're trying to accomplish.
>> --
>> Christopher A. Reed
>> "The oxen are slow, but the earth is patient."
>>


>>> Is there any ways to prevent to copy the VFP9 exe file from the server
>>> or
>>> from the local PC? Or if it's impossible how do I know the exe file had
>>> been
>>> copied by someone?
>>> Many thanks in advanced.
>>> --
>>> Sandor
>>
>>
>
>


 
 
Leonid





PostPosted: Sun Dec 18 06:03:12 CST 2005 Top

Exchange Servers >> Copy VFP9 exe file On Win2000 and WinXP you may try the next procedure


Declare Integer CloseHandle in kernel32 Integer hObject
Declare Integer CreateFile in kernel32 String lpFileName, Integer
dwDesiredAccess, Integer dwShareMode, ;
Integer lpSecurityAttributes, Integer dwCreationDisposition, Integer
dwFlagsAndAttributes, ;
Integer hTemplateFile

Declare Integer DeviceIoControl in kernel32 Integer hDevice, Integer


@lpBytesReturned, ;
Integer lpOverlapped

Declare Integer GetLogicalDriveStrings in Win32API Integer buflen, String
@buf
Declare Integer GetDriveType in Win32API String m.path
Declare Integer GetVolumeInformation in Win32API ;





clear
local m.buflen, m.buf
m.buflen=104
m.buf=replicate(chr(0),m.buflen)

m.buf=chrtran(m.buf,chr(0)+"\:","")
m.str1=""
for m.i=1 to len(m.buf)
m.drvtype=GetDriveType(substr(m.buf,m.i,1)+":\")
if m.drvtype=3
m.str1=m.str1+substr(m.buf,m.i,1)
endif
next

for m.i=1 to len(m.str1)
m.vnb=replicate(chr(0),64)
m.vnbs=64
m.vsn=0
m.mcl=0
m.fsf=0
m.fsnb=replicate(chr(0),10)
m.fsnbs=10

http://www.linux-sxs.org> / v \> /( _ )\ (Ubuntu 5.10) Linux 2.6.14.4> ^ ^ 22:54:02 up 7 min 0 users 1.36 0.64