Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Barbara Peisch
  Where is Barbara Peisch?
 Oceanside
 California - United States
 Barbara Peisch
 To: Nilson Rishi
  Where is Nilson Rishi?
 Bangkok
 Thailand
 Nilson Rishi
 Tags
Subject: RE: how to protect my exe from being used on ot...
Thread ID: 64335 Message ID: 64553 # Views: 50 # Ratings: 0
Version: Visual FoxPro 8 Category: Security and Application Protection
Date: Wednesday, March 23, 2005 2:11:03 AM         
   


> One copy of my VFP program should be used on one specific PC only. I want to achive it by getting the serial No. for the hard disk of the target PC and then put a routine in the VFP program to check if the Serial No. written in the program is the same as the one of the current PC. If yes, the program will run, otherwise it will not run. I used diskserial.dll downloaded from foxite.com to do this. It works. But there is a problem. When I get the PC hard disk serial No. such as ABCD123 from a user,
> I add a routine to the VFP program to check if the serial NO. for the current PC is ABCD123. But the VFP program is a multiple-user version, and it will be installed in a server PC whose hard disk serial No. is ABCD123 and several users should use the program from different client PCs. The problem is that when users use the program installed on the server PC, the routine in the program will check the hard disk serial No. for the current client PC, not the server PC. And any client PC has different serial No. from the server PC whose serial No.ABCD123 is written in the program, so that the program could NOT run from those client PCs because their serial No. is not ABCD123, the one written in the VFP program. And I do NOT want to write serial No. for those client PCs in the program, because otherwise a user could use any of the client PCs as a server PC in another LAN network, it is against my intention to strictly enforce the rule that one copy of my VFP program could only be used on only ONE network for any user.
>
> What's your kind advise?
>
> Nilson

You need to use the drive letter that the EXE is on. Use SYS(5) to determine the drive letter. I'm not familiar with the DLL that's available here, so I don't know if it lets you pass a drive letter to it or not. If not, I have a routine you can use.


-BP
www.peisch.com

COMPLETE THREAD

how to protect my exe from being used on other PC Posted by Nilson Rishi @ 3/20/2005 1:27:53 AM
RE: how to protect my exe from being used on ot... Posted by Abdulla Rahiman @ 3/20/2005 7:39:41 AM
not work Posted by Nilson Rishi @ 3/21/2005 3:28:47 PM
RE: not work Posted by Abdulla Rahiman @ 3/22/2005 5:43:24 AM
RE: not work Posted by Nilson Rishi @ 3/22/2005 11:40:05 AM
RE: how to protect my exe from being used on ot... Posted by Barbara Peisch @ 3/23/2005 2:11:03 AM
RE: how to protect my exe from being used on ot... Posted by Nilson Rishi @ 3/23/2005 4:07:53 PM
RE: how to protect my exe from being used on ot... Posted by Nilson Rishi @ 3/23/2005 4:08:38 PM
RE: how to protect my exe from being used on ot... Posted by Barbara Peisch @ 3/23/2005 9:30:06 PM
RE: how to protect my exe from being used on ot... Posted by Nilson Rishi @ 3/30/2005 4:00:19 AM